The following document is to be used only with 1.0 which is currently available only in source format. The installers for 1.0 is expected to be release around 15th May 2007*
Steps to automate squirrel mail ia as follows :
Preconditions :
1) RPC Server is up and running.
2) WET Manager is launched.
Step 1: Open SimulatedIE and script editor from the wet manager .
Step 2: open IE and navigate it to "webmail.qantom.int".
Step 3: Sync simulatedid with the opened login in page of squirrel mail.
step 4: click on Associated -> Editor and select the opened editor.
Steps for adding precondition :
Note : Login to squirrel mail is the precondition.
Step 1: Right click on the text field of login name and set the value to "webmailtester"
Step 2: Right click on the text field of password and set the value as "1234"
Step 3: Click on signin/login button
Step 4: Save the script as PreCon.wet.rb in to a folder precondition.
Result : login to webmailtester is sucessfull and the scripts for abow steps will be added to the opened associated editor.
Steps to create test defs for precondition :
step 1: Open a Test definition from the wet manager.
Step 2: Edit the name of the test to "Automating squirrel mail"
Step 3: Delete precondition and teardown from the test.
Step 4: Add the following command to the script in transaction =>
Browser.new().goto('webmail.qantom.int')
Step 4: Save the folder as Login
Step 5: Select the transcation(here Login) from 'Transcation to use' combobox
Step 6: Set the path of the script PreCon.wet.rb using the set option of the script.path
Step 7: Save the above test.defs in Login folder
Steps to add Transaction :
Note : The following steps are the continuation of the previous steps.
Step 1: open a new script editor.
Step 2: open a new object depot.
Step 3: Add the associated object depot and script editor to the simulatedie.
Step 4: Click on compose and send a mail to "webmailtester@qantom.com"
Step 5: Save the object depot file as ostore.xml and script as trans1.wet.rb.
Steps to add teardown:
Note : The following steps are the continuation of the previous steps.
Step 1: open a new script editor.
Step 2: open a new object depot.
Step 3: Add the associated object depot and script editor to the simulatedie.
Step 4: Click on Signout.
Step 5: Save the script as Teardown.wet.rb .
Result : logout to webmailtester is sucessfull and the scripts for abow steps will be added to the opened associated editor.
Steps to create test defs for Teardown :
step 1: Open a Test definition from the wet manager.
Step 2: Edit the name of the test to "Automating squirrel mail"
Step 3: Delete precondition and teardown from the test.
Step 4: Save the folder as Logout
Step 5: Set the path of the script Teardown.wet.rb using the set option of the script.path
Step 6: open test.defs and edit as follows:
Step 7: Save the above test.defs in Logout folder
Steps to create test.defs for Transcation:
Step 1: Open a Test definition from the wet manager.
Step 2: Edit the name of the test to "Automating squirrel mail"
Step 3: Save the folder as AutomateMail.
Step 3: Set the path of Precondition to Login directory path and Teardowns to Logout directory path
Step 4: Set the path of the ostore.xml file by using the set option of repository path
Step 5: Save the test.defs
Steps to create Batch Runner:
Step 1: Create a .bat file outside the Transcation folder. i.e AutomateMail.
Step 2: Save the following command inside the .bat file
ruby %QWT_HOME%/core/BatchRunner.rb AutomateMail
pause
Step 3:Run the .bat file to playback the scripts.
Step 4:The results can be seen in the html page created within result folder .