Google+

320. Identifying few sample real time tests for implementing the Refactoring concept







Lets Identify few tests for implementing the Refactoring concept.

First lets identify a website which allows us to identify the tests:

I feel http://book.theautomatedtester.co.uk/ is the best website which lets us identify the few real time test scenarios which we need for implementing the Refactoring concept.

So lets identify the following 3 Tests:

Test 1

1. Open http://book.theautomatedtester.co.uk/
2. Click on 'Chapter1' link as shown below:


3. In the 'Chapter1' page of the website, verify whether the 'Selenium: Beginners Guide' heading text is available as shown below:



Test 2

1. Open http://book.theautomatedtester.co.uk/
2. Click on 'Chapter1' link as shown below:


3. In the 'Chapter1' page of the website, verify whether the 'Assert that this text is on the page' text is available as shown below:



Test 3

1. Open http://book.theautomatedtester.co.uk/
2. Click on 'Chapter1' link as shown below:


3. In the 'Chapter1' page of the website, verify whether the 'Home Page' link is available as shown below:


Now we've identified all the tests for writing the Selenium Automation Code.

In the next post, lets write Selenium Automation Code for all the above tests without Refactoring the code.





Please comment below to feedback or ask questions.

Non-Refactored Selenium Automation Code for the Identified tests will be explained in the next post.





No comments: