Why Automation is Required in Software Testing - OSSCamp 2014
TESTING AUTOMATION SOLUTION
April 19, 2014
Devraj Singh and Vaibhav Singh
We Started with Selenium IDE
CHALLENGES FACED WHILE USING IDE
Iteration or looping
Logging and reporting of test results
Error handling, particularly unexpected errors
Test case grouping
Capture screenshots on test failures
Results Report generations
Solution to IDE challenges is
SELENIUM WEB DRIVER
It helps us for cross browser automated testing of web
It supports IE, Firefox, Chrome.
User can writes Scripts in JAVA , PERL , PHP and other
And a Major fact we say
“Learning about web driver helps us to get closer to JAVA , HTML and
XPATH etc. its more like a fun rather just clicking in IDE”
Optimized Automation Process
BY USING MODULAR FRAME WORK
—The functionality is available in easy to use test libraries so
creating new Driver scripts for different tests is easy and fast.
The main problem with modular frameworks is that the test
script have test data & Element Locators embedded in them. So
when the test data needs to be updated we need to change the
code of the script. This becomes a big problem when the test
script is large.
Less amount of code is required to generate all the test cases.
The test cases created are similar and creating new kind of tests
requires creating new driver scripts that understand different
data. Thus the test data and driver scripts are strongly related
that changing either requires changing the other.
Keyword- Driven Approach
—Keywords are reused across multiple test cases.
—The main problem is that this requires a more complicated
framework than the data driven framework.
Hybrid testing framework is the combination of modular, data-
driven and keyword driven testing frameworks.
This combination of frameworks helps the data driven scripts
take advantage of the libraries which usually accompany the
keyword driven testing.