Open source web testing tool
The future of automated web testing is open source

Quickstart Tutorial


WWW http://wet.qantom.org
Search powered by Google
 
Overview       Features       Quickstart       User guide       API Guide      




WET Quick start guide




















(http://www.qantom.com)

Bangalore




















WET is a framework to facilitate automated testing of web applications. WET uses Watir as the underlying library to automatically drive web pages. This guide gets you started with WET and its powerful features.

In this guide, we will see how to start using wet and automate a simple set of tests.

Download and Install WET

The install guide has the instructions on the installation process.


Plan your test


The key to the success of any test automation project is the amount of planning that goes into it. First we will list the scenario and test points around that.


Scenario :


The sample test scenario is to navigate to the sample page and submit a bug. Finally we will verify whether we get a confirmation for that page. Let us list the above scenario as test statements.


No.

Test Step Details

Object + Action

Verification step

1.

Open Bug Submission Form

Launch Browser from WET UI.




Navigate to http://www.wet.qantom.org/handson.html

Verify that the Bug Submission Form is open.

2.

In the Bug submission page, enter all the values and Click Submit Query.


In the Name textfield, enter "Support"



In the Email textfield, enter "support@qantom.com"




In the summary text field enter – "This is a sample bug"




In the product List select "Customer Management"




In the problem type List select "Cosmetic issue"




In the problem details textarea enter "When you click on customer Foo, customer bar is actually shown"




In the Special Notes textarea enter "My machine is a Win XP running sp4"




In the about yourself textarea enter "I am a new WET user"




Click on the "Submit Query" button.





A new web page is shown which has the header text
"Web Bug Report"




This page accurately displays the information that you wrote in the previous page.


Ok that's it. We are done with planning a simple scenario. Let's start off with the task of recording our scenario. Note that record in Wet doesn't mean record-playback in the way that other test automation tools refer to this term. The benefits and flip side of record-playback are beyond the scope of this tutorial. The following points should make it clear:



So in the context of WET, recording is more like the making of a movie. There's a lot more people involved than the cameraman and the casts! Enough said. Let's start recording our scenario now



Start WET

To start WET, Click Start -> Programs -> Qantom -> WET. The WET application starts up as shown below:


Illustration 1: Wet Manager - The gateway of WET




Step1 = Open Bug Submission Form


Recall the manual test steps and the actions to be take:


Test Step

Action

Verification

1.

Open Bug Submission Form

Launch Browser from WET UI




Navigate to http://www.wet.qantom.org/handson.html

Verify that the Bug Submission Form is open.


To accomplish this task using WET:


Drawing 1: Screen shot of the Function assistant





Step 2 = Enter all the valid values in the submit bug form.


2.

In the Bug submission page, enter all the values and Click Submit Query.


In the Name textfield, enter "Support"




In the Email textfield, enter "support@qantom.com"




In the summary text field enter "This is a sample bug"




In the product List select "Customer Management"




In the problem type List select "Cosmetic issue"




In the problem details textarea enter "When you click on customer Foo, customer bar is actually shown"




In the Special Notes textarea enter "My machine is a Win XP running sp4"




In the about yourself textarea enter "I am a new WET user"




Click on the "Submit Query" button.





A new web page is shown which has the header text
"Web Bug Report"




This page accurately displays the information that you wrote in the previous page.


Drawing 2: Screenshot of the page after submitting a bug



Note: Due to Jira Issue WET-350, you will have to do a View->Sync-><whichever browser> manually after doing the 'submit' operation. This issue will be fixed before the final release of 1.0


Organize your test and save.

If you have used WET 0.9.8, the way to save WET tests in 1.0 may appear to be a regression in the way WET works. Trust us – it is not! Before creating the WET Tests, the individual artifacts generated in the 'record' step must be saved separately. In this case, it is only the WET script.


Congrats! You have now completed creating your first WET test. Its the time to run it.


Execute the WET test.



Drawing 4: Result of executing the first tutorial test



Summary
You have seen as to how easy it was to create your first set of WET tests and generate results for that. We have used only some of the basic functionality that wet offers. WET has much more power under its hood like integrated datatable support, support for storing objects in a centralized object depot, integrated batch runner and more. Jump into the excitement, join the WET users community at
http://lists.sourceforge.net/lists/listinfo/wet-users and check out all the features that WET has to offer.


Hope you enjoy getting your test automation hands WET!

 
WET is a opensource automated web testing tool which uses Watir as the library to drive web pages. WET drives an IE Browser directly and so the automated testing done using WET is equivalent to how a user would drive the web pages. WET extends the scripting abilities of Watir and also offers the convenience of recorders. It is licensed under LGPL and BSD style open source licenses.