Design and Implementation of Data Driven Framework Using Selenium
Design and Implementation of Data Driven Framework Using Selenium
ABSTRACT
Software testing is a process of executing a program or application with the intent of finding the software bugs. Testing
Automation would allow us to reduce the cost and will help us in increasing the quality of Software. Automation
Framework follows Data Driven Approach which passes data stored in Spreadsheet as input to the number of test scripts
written for executing test cases. Data-Driven Framework is where test input and output values are from data files and are
loaded into variables in captured or manually coded scripts. The framework should include navigation through the
program, reading of the data files, and logging of test status and information. All the processes should be in the test scripts
and each process finds the errors in the software and generates a list of errors. Those errors are properly listed in a
Spreadsheet and at the same time also contain the code area and line where it appeared, type of error and its possible
solutions. This paper includes integration of selenium and JMeter for load testing.
Keywords: Automation Testing, Selenium Webdriver, Data Driven Approach, Driver Script, Test Case, JMeter.
IJSRSET151162 | Received: 16 Feb 2015 | Accepted: 22 Feb 2015 | January-February 2015 [(1)1: 283-286] 283
for the same. If the test was executed without any problems The new testing automation framework integrated by
and all comparisons between actual and expected outcomes Selenium and Jmeter can share the test steps and test data
match the test gets a pass status. In every other case the status among different testing, such as UI testing, backend testing,
is fail. Besides the status every test case should also get a loading test and so on. It is convenient to switching in various
short but descriptive status message. For passed tests this types of testing for web applications. It supports multiple
message is normally not that important but with failed tests it browsers and a variety of operating system. It can be widely
can give details about the cause of the problem. used in web application test automation.
In the year 2012, Fei Wang and Wencaai Du [1] explained C. Implementation of Selenium with JUNIT and Test-Ng
about the design the new test automation framework. The test
automation framework that was integrated by the two kinds of In the year 2012, Deepti Gaur, Dr. Rajender Singh Chhillar [3]
test automation tool Selenium and Jmeter. Jmeter developed implements selenium with different frameworks that is, junit
by Apache organization is an open source pressure test tool and testng. To create and run integration tests with
based on Java. It can be used on the server, the network or Selenium,you must complete the following steps:
other object to simulate huge loading, in different pressure Use the Selenium IDE to record and play tests.
under a variety of testing their strength and analyze the overall Export tests created with the Selenium IDE as JUnit tests.
performance. Add the JUnit tests to your Java project in your IDE and
Step 1: The information about the same type of web run the tests.
applications abstracts way from the web-based test automation
framework and form into a single configuration file. A good test case is one that has high probability of finding an
Step 2: Testing the framework undiscovered error. A successful test is one that uncovers an
undiscovered error. Test Cases in Selenium are nothing but