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.


We have already Implemented calc summation test In "" 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 "",  "" and "" test cases respectively In this step.


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.


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.


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.

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 test case.


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 file. Now next step Is reading site URL from file.


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.

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.


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.


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.


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.


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.


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.


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

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.

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.

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

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.

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