Skip to main content

Creation of Data Driven Framework with Selenium WebDriver Using POI, TestNG And ANT

If you are using selenium webdriver as automation tool to test software web application and wants to create selenium webdriver data driven framework from scratch then follow bellow given steps. It will guide how to create data driven framework in selenium webdriver step by step to test software web application.

Peoples are using different frameworks like keyword driven framework, data driven framework, hybrid framework and POM with selenium webdriver to test software web application. Which framework to use is depends you software web application type. If you are testing software web application where need to use very large data in automation test process then you can use data driven or hybrid framework.

Data Driven Framework Introduction

STEP 1 : Create Workspace And Project For Framework.
STEP 2 : Creating Project Structure For Framework.
STEP 3 : Download Required Jar Files.
STEP 4 : Add jar Files In Project's Build Path.
STEP 5 : Creating Required Class Files
STEP 6 : Add Required .xls Files Of Data
STEP 7 : Add .xls File Reading And Writing Utility In Framework
STEP 8 : Creating Sample Data Reading Test In Framework
STEP 9 : Implementing Data Reading Test In Both Test Suites
STEP 10 : Adding testng.xml file To Run Suites From One Place 
STEP 11 : Add Suite Skip Function In selenium Testing Framework
STEP 12 : Reporting Test Suite Execution Status
STEP 13 : Add Test Case Skip Function In automation framework
STEP 14 : Add Data Skip Function In Framework For Selenium
STEP 15 : Reporting Test Data Result In Excel
STEP 16 : Reporting Test Failure In TestNG Reports
STEP 17 : Reporting Test Cases Results In Excel
STEP 18 : Implement Logging Using Log4j
STEP 19 : ANT - Generate XSLT Reports - Part 1
STEP 20 : ANT - Generate XSLT Reports - Part 2
STEP 21 : Run WebDriver Test From Batch(.bat) File
STEP 22 : Introduce Selenium WebDriver In Framework
STEP 23 : Implement Load Browser Function
STEP 24 : Running Test In Different Browsers
STEP 25 : URL Centralization For Easy Future Maintanance
STEP 26 : Implement Calc Sum Test In DDF
STEP 27 : Create Object Repository For Framework
STEP 28 : Create getElementByXPath Function
STEP 29 : Create Functions For All Other Locator Types
STEP 30 : Implement Calc Tests In All Test Cases
STEP 31 : Capturing Screenshot On Failure Or Pass

Comments

Popular posts from this blog

JMeter Exceeded Maximum Number of Redirects Error Solution

While running performance test, JMeter allows maximum 5 redirects by default. However, if your system demands more than 5 redirects, it may result in JMeter exceeded maximum number of redirects error. In this post, we have listed down steps to overcome this error. Actual error in JMeter: Response code: “Non HTTP response code: java.io.IOException” Response message: “Non HTTP response message: Exceeded maximum number of redirects: 5” This error is noticed because  JMeter  allows maximum 5 redirects by default and your system may be using more than 5 redirects. You need to increase this count to more than 5 in jmeter.properties file. Follow below steps to achieve this. Navigate to /bin directory of your JMeter installation. Locate jmeter.properties file and open it in any editor. Search for “httpsampler.max_redirects” property in opened file. Uncomment the above property by removing # before it. Change to value to more than 5 Eg. 20. Save the file and restart JMet...

Performance Testing in the Cloud with JMeter & AWS

JMeter is a wonderful tool  to stress test your website and  your application architecture , however if you are trying to simulate many users (>1000) one JMeter instance (=pc) will not be sufficient. You will have to set up a JMeter cluster with multiple machines. JMeter is capable or running  distributed tests , but it comes with limitations. Since most of us don’t have multiple servers laying around somewhere, we usually go to cloud service providers like  AWS , spin up a couple of  EC2 instances  and turn them off whenever we’re done. Here is the problem, JMeter uses  Java RMI (Remote Method Invocation)  to communicate to its slaves, but these connections require all machines to be on the same subnet and this is not feasible with EC2 instances. Below, I explain how to get around this problem using a 3 node configuration in AWS to execute tests. I assume that you have a written the test already and have the .jmx file r...

Difference Between Redirect Automatically and Follow Redirects in JMeter

In this post, we will highlight important difference between Redirect Automatically and Follow Redirects options. These options are found in HTTP Request sampler of JMeter. Knowing the difference will help you decide your performance test strategy. When you check Redirect Automatically option, JMeter will not consider redirect as separate HTTP request. This in turn may result as lower response time in your overall performance test. Whereas Follow Redirect option will consider each redirection as separate requests. This may result in comparatively higher response time. This only has any effect if “Redirect Automatically” is not enabled. To see the difference between these two, record a sample script and run it by checking Redirect Automatically and Follow Redirects option. The second option will generate more requests in your result listener. As you can see from the above post, knowing the difference between Redirect Automatically and Follow Redirects option makes difference i...