Our nub information driven framework creation part Is over In STEP 21. Now this Is the correct fourth dimension to Introduce selenium webdriver In our selenium information driven framework. If you lot are totally novel to selenium webdriver too hence you lot must convey to watch webdriver tutorials PART 1 too PART 2 pages where you lot volition uncovering the links of real useful tutorials on webdriver.
Prerequisite : All previous 21 information driven framework creation steps should last Implemented. You volition uncovering the links of all previous steps on THIS PAGE.
Now allow me pull you lot how to Introduce Selenium webdriver In our information driven framework. We are going real piece of cake In this framework tutorials hence that you lot tin larn each too every indicate real easily.
Introducing Selenium WebDriver In Framework
You already know how to opened upwardly spider web browser too how to navigate to whatever website's URL using selenium webdriver. So I am non describing all those things over here. So allow us Implement uncomplicated spider web browser opening, URL navigation too closing browser steps In all 4 examination cases. Initially nosotros volition Implement all these things real only In all 4 examination cases. In upwardly coming steps, We volition centralize all mutual functions at 1 house to contend them real easily.
Modify Excel Files
From forthwith onward, We volition execute all 4 examination cases every time. You take away to alter all excels files every bit described bellow.
Download Test Case Files
I convey modified all 4 examination cases to opened upwardly the spider web browser, navigate to URL too closed the spider web browser. Let me enjoin you lot 1 affair to a greater extent than -> We volition non exercise examination information of excel files for adjacent few steps hence Ignore them correct now. We volition exercise them whenever required. You tin download bellow given zippo folder to larn all modified examination cases files.
Note : All required jounce files for selenium webdriver should last Included In "WDDF" project's construct path every bit described In STEP 3 too STEP 4.
Execute Test And Observe Result
Now nosotros are all laid to execute examination from shortcut of "Run Test.bat" file from desktop. Double click on It. It volition commencement executing your examination cases 1 yesteryear one. We convey full eight information lines for 4 dissimilar examination cases hence It volition opened upwardly Firefox browser, navigate to URL too closed the browser for eight times.
On completion of execution, XSLT study volition last generated. Open XSLT study too verify result.
More interesting articles here :Generation Enggelmundus Internet Marketing Tool here :Zeageat IM http://www.software-testing-tutorials-automation.com/
STEP 22
Prerequisite : All previous 21 information driven framework creation steps should last Implemented. You volition uncovering the links of all previous steps on THIS PAGE.
Now allow me pull you lot how to Introduce Selenium webdriver In our information driven framework. We are going real piece of cake In this framework tutorials hence that you lot tin larn each too every indicate real easily.
Introducing Selenium WebDriver In Framework
You already know how to opened upwardly spider web browser too how to navigate to whatever website's URL using selenium webdriver. So I am non describing all those things over here. So allow us Implement uncomplicated spider web browser opening, URL navigation too closing browser steps In all 4 examination cases. Initially nosotros volition Implement all these things real only In all 4 examination cases. In upwardly coming steps, We volition centralize all mutual functions at 1 house to contend them real easily.
Modify Excel Files
From forthwith onward, We volition execute all 4 examination cases every time. You take away to alter all excels files every bit described bellow.
- Set SuiteToRun = "Y" for both examination suites In TestSuiteList.xls file.
- Set CaseToRun = "Y" for all 4 examination cases In SuiteOne.xls and SuiteTwo.xls files.
- Set DataToRun = "Y" for all eight information laid lines In SuiteOne.xls and SuiteTwo.xls files.
Download Test Case Files
I convey modified all 4 examination cases to opened upwardly the spider web browser, navigate to URL too closed the spider web browser. Let me enjoin you lot 1 affair to a greater extent than -> We volition non exercise examination information of excel files for adjacent few steps hence Ignore them correct now. We volition exercise them whenever required. You tin download bellow given zippo folder to larn all modified examination cases files.
Extract downloaded folder too copy-paste those files every bit described bellow on "WDDF" project.
- Paste SuiteOneCaseOne.java File on com.stta.SuiteOne Package.
- Paste SuiteOneCaseTwo.java File on com.stta.SuiteOne Package.
- Paste SuiteTwoCaseOne.java File on com.stta.SuiteTwo Package.
- Paste SuiteTwoCaseTwo.java File on com.stta.SuiteTwo Package.
Execute Test And Observe Result
Now nosotros are all laid to execute examination from shortcut of "Run Test.bat" file from desktop. Double click on It. It volition commencement executing your examination cases 1 yesteryear one. We convey full eight information lines for 4 dissimilar examination cases hence It volition opened upwardly Firefox browser, navigate to URL too closed the browser for eight times.
On completion of execution, XSLT study volition last generated. Open XSLT study too verify result.