2. Agenda of Training
Introduction of VooDooDriver.
How to setup VooDooDriver.
VooDooDriver demo script.
How to execute VooDooDriver.
VooDooDriver Elements.
3. Introduction of VooDooDriver
Automation Framework
Coded in Java
Based on Selenium WebDriver
Test script in xml format
4. Advantages of VooDoo over
Selenium
No need to write code for initializing browser.
No need to write code for reading input file.
No need to write code for handling pop up
window.
Facilitates to use simple tag elements to use
web elements in your test script.
No need to use action builder for advanced
user interactions.
5. Challenges
To write to a file using XML.
Does not generate interactive report.
Conditions and looping doesn’t work in XML.
17. How to execute VooDoo script?
Go to src->VoodooDriver.java.
Right click -> Run As -> Run Configuration.
Select tab "Arguments".
Input the command line arguments
--browser=firefox --
suite=C:UsersSanjeevworkspacevoodoote
stssuitesVooDooTest.xml.
--browser=firefox -- suite=C:UsersSanjeev
workspacevoodootestssuitesVooDooTest.
xml.
27. VooDooDriver Elements
Wait
<wait /> //wait for a period of 5 seconds
<wait timeout = “2” /> //wait for a period
of 2 seconds
Puts
<puts text=”Hello World” /> // print the text
“Hello World”
31. VooDooDriver Elements
Unordered List (UL)
<UL name=”user_select” click=”true” />
/* looks for the Unordered List by the name and
then clicks on it */
35. VooDooDriver Elements
Div
<div id="list_div_win"> //focus
on the ‘list_div_win’ section of the page
<button value="Add" click="true" />//click the
button in the page section
</div>
/* goes to the div field ‘list_div_win’ and clicks
the button ‘Add’ and the performs an
‘onmouseup’ event for the button */
40. Data Driven using CSV
<csv file="C:/scripts/sugarcrm/csvs/users.csv
var="user" />
<puts text="{@user.username}" />
</csv>
41. Test Scenarios and Test Cases
You can create script for multiple test cases
under tests folder.
You can create Test Scenario in the form of
test suites that will contain the set of test
cases which will contain under tests->suites.
42. VooDooDriver Log
After running your script the test report
generates in the form of log file.
Soda Test Report:--
testlog:C:UsersSanjeevworkspaceCrmdev
06-19-2013-12-38-
02.588CheckCreateLeave-06-19-2013-12-
38-08-331.log
Select the path of the testlog and view it on
another window.