Showing posts with label WebDriver Datadriven Framework. Show all posts
Showing posts with label WebDriver Datadriven Framework. Show all posts

In our WebDriver data driven framework creation, We have Implemented calc software tests In all calc test cases of WebDriver data driven framework In STEP 30. Now supposing, You wants to capture screenshot of software web page when your test fails. It will helps you to analyse the test failure reason. Based on web page screenshot,
you can easily find out the test failure reason. Same way, Supposing you wants to capture screenshot when your test pass. This step will describe you how to capture screenshot on test failure or software automation test pass.

STEP 31

We have already Implemented calc summation test In "SuiteOneCaseOne.java" test case of our webdriver DDF creation STEP 26. Now, Its time to Implement Calc test In remaining three test cases of our webdriver DDF. We will Implement calc subtraction, multiplication and division tests In "SuiteOneCaseTwo.java",  "SuiteTwoCaseOne.java" and "SuiteTwoCaseTwo.java" test cases respectively In this step.

STEP 30

We have Implemented getElementByXPath function to locate element by XPath In PREVIOUS STEP. As you know, There are many different element locators available In web driver. So obviously, Sometimes you needs to locate elements by other locator types too ( cssSelector, ID, Name etc..) when It Is not possible to locate element by XPath. Let us Implement those functions In our DDF.

STEP 29

We have created object repository In selenium webdriver data driven framework creation STEP 27. So now, our all web element's xpath or CSSPath or any other locators will be stored In object repository Instead of test cases files. Now let us try to compact webdriver code by creating getElementByXPath function to return web page element on demand.

STEP 28

In Selenium WebDriver software test data driven framework creation STEP 26, We have Implemented simple calc software test. Now In this step, We will create object repository using .properties file to store software web page element's locators like xpath Locator, cssSelector Locator, className Locator, id Locator, linkText Locator, name Locator,
partialLinkText Locator and tagName Locator. We can call It as object repository because we are storing objects In that .properties file.
STEP 27

In Previous Step, We have Implemented URL centralization In DDF to make your future URL maintenance easy and you can change test site URL from one place. Now next step Is to write some WebDriver test code. In this step We will Implement simple calc test In our SuiteOneCaseOne.java test case.

STEP 26

In selenium WebDriver Datadriven Framework Creation, We have Implemented functionality of running test cases In different browsers In Previous Step. And for that, you have to change your test browser name at one place only. So now you can set your test browser In Param.properties file. Now next step Is reading site URL from Param.properties file.

STEP 25

As you know, We have already Introduced Selenium webdriver In our test data driven framework during PREVIOUS POST. And now we are going ahead very slowly to use data driven framework In selenium webdriver tests.
STEP 23

We have successfully generated XSLT reports for our selenium webdriver software test data driven framework In STEP 20. If you see In STEP 20, We need to open command prompt, Then need to type many different commands to clean, compile, run and generate XSLT reports. So now let us Implement all these things In batch file to perform all actions by double clicking on batch file.

STEP 21

ANT and other file's configuration to generate XSLT Reports for selenium webdriver software automation test Is already done In previous STEP 19. So now configuration part Is over to generate XSLT reports. In this step, We will learn how to generate XSLT reports for selenium software test data driven framework.

STEP 20

To generate XSLT reports, We have to use Apache Ant. Apache Ant Is open source command-line tool which will help us to generate XSLT reports for our selenium webdriver data driven software automation testing framework. In STEP 18, We have successfully Implemented Logging functionality In our data driven framework for software web application. Now let us configure our data driven framework project to generate XSLT Interactive reports.

STEP 19

Data driven framework for selenium webdriver software testing tool must have facility to Insert test execution log to track the execution process, debugging and failures after completion of software test. Test execution logs will helps you to track your software test execution steps. In STEP 17, We have successfully reported test cases results In excel file. Now let us Implement log generation function In our selenium webdriver software automation testing framework.

STEP 18

Data driven software testing framework for selenium webdriver should be able to report the software test suite results In excel files. We have achieved goal of reporting test failure In testng reports In STEP 16. Now let us try to achieve our next goal of reporting software test cases's results In excel files.

STEP 17

In selenium webdriver automated data driven framework creation process, We have Implemented total 15 steps till now and we have successfully achieved our goal of reporting software application's test data results In excel sheets In step 15. We are going very slowly to create data driven framework for your better understanding.

STEP 16

STEP 15
Prerequisite : Selenium WebDriver Framework creation steps from STEP 1 to STEP 14 should be Implemented as described In previous posts.

We have Implemented software test data skip function In STEP 14. Now let we go ahead one more step In selenium testing data driven framework creation. If you know, We have a "Pass/Fail/Skip" column In our excel data

STEP 14
Prerequisite : STEP 1 to STEP 13 of creating data driven framework for selenium webdriver software testing tool should be Implemented.

If you know, we need very custom data driven framework for selenium webdriver where you can skip specific software test suite, specific test case or specific data set line too from your software test execution whenever required.

STEP 13
PrerequisiteSTEP 1 to STEP 12 should be Implemented as described.

In previous two steps, We have learnt how to skip specific software automation test suite's execution from your test and then reported software test suite execution status In excel file. So this was our basic requirement of our selenium software automation framework which Is driven by data of external excel sheet.

STEP 12
Prerequisite : All previous (STEP 1 to STEP 11) selenium test framework creation steps should be Implemented.

As described In previous post, Your test execution status will be reported In testng report automatically by

STEP 11
Prerequisite : All previous selenium framework creation steps starting from STEP 1 to STEP 10 should be Implemented.

Right now we are at the middle of selenium Webdriver software automation framework creation process. Now next step Is to Implement software automation test suite skipping functionality In selenium data driven automation framework.

STEP 10
Prerequisite
1. All the previous steps starting from STEP 1 to STEP 9 should be Implemented properly.
2. TestNG software unit testing framework should be Installed properly In eclipse. VIEW TESTNG INSTALLATION GUIDE.

Now our all four test cases from both the suites are able to read data from related excel file as described In STEP 9 of data driven framework creation. But right now main Issue Is we need to run all four test cases