| T09 - Automate Website Testing |
| Test Description |
Automate website testing even if the layout or content of the web page changes. Due to marketing programs or due to design changes often your website changes. If your website testing software is not designed to handle it, you will have to create thousands of test cases again.
Testing Anywhere Web Recorder offers advanced features so that your test cases will still work as intended even if your website changes.
T09.tamn
Note: This sample test uses test pages on our server to illustrate feature. It can be applied to any similar scenario on any website.
|
| Solutions |
 |
Record a new test
- Click on Tools->Web Recorder.
- Type in http://www.tethyssolutions.com/Test-Links1.htm and click on Start
- Click on Link1. It will take you to http://www.tethyssolutions.com/automation-software.htm
- Click on ‘Download Free Trial’ link.
- Stop Recording and save the test.
|

Screenshot 1

Screenshot 2

Screenshot 3

Screenshot 4

Screenshot 5

Screenshot 6
|
 |
Test your changed web page
- When you run this test, it will open Test-Links1.htm web page and look for a hyperlink named Link1 and click on it. Now let's say your web page changes and of the following scenario occurs.
Scenario 1 (Link name is same but URL changes):
- Let's say your web page changed and the name of the Hyperlink (for e.g. Link1) remains the same but the actual link that it points to (in above example http://www.tethyssolutions.com/automation-software.htm) changes.
- When you run the above recorded test, it will still look for Link1 and click it, whatever the URL. (This is the default behavior of Web Recorder. You do not need to make any additional setting for this.)
Scenario 2 (Link name changed but URL is same):
- On a website, due to marketing programs or new design layouts, often the name of the hyperlink changes but the actual URL points to the same web page. e.g. http://www.tethyssolutions.com/Test-Links2.htm
- In this case, for website testing you still want to click the link and continue testing.
- Testing Anywhere Web recorder offer advanced setting that allows you to specify this. Select your test and click on Edit. Double-click the Click event and click on the ‘Advanced View’ button.
- Select the checkbox ‘Attribute’ as shown in Screenshot 3
- Checking this option will tell Testing Anywhere not to look for the hyperlink named Link1, instead look for the recorded URL and navigate there.
Scenario 3 (Link and URL both changed):
- Similarly let's say that both the name of the Hyperlink and the URL that it points to changed. For e.g. in http://www.tethyssolutions.com/Test-Links3.htm
- But you still want to click on the Hyperlink that appears at that location.
- In order to account for this select your test and click on Edit. Double-click the Click event and click on the Advance View button.
- Select the checkbox Index as shown in the Screenshot 4. Checking this option will tell Testing Anywhere not to look for the Hyperlink named Link1 or actual URL, instead look for the link that has the same index.
- To simulate this, you can change the first line of the test to go to http://www.tethyssolutions.com/Test-Links3.htm and then run the test.
|
|
| This test illustrate the usage of the Advanced options that you can set in your Web Recorder Link command to automate website testing. |
|
 |
| We are currently using the software to do functional and performance testing of our customized version of Microsoft CRM. In addition, we are also using it for functional testing of a custom, in-house, financial application, and to do quality assurance on a CD that contains encrypted Adobe .pdf files, that are distributed for us by a third-party vendor. It allows us to do repeatable, reliable performance and functional testing, load test data with only “one-click”, and verify third-party vendors work. It saves us time and money, because after the initial “ramp-up” time learning it, we can quickly write tests that perform hours of work in only minutes. A great test tool, that we highly recommend! Thank you !!! |
- David Abrahams,
Manager - Quality Assurance, Commonwealth Financial Network
|
| Read Customer Testimonies >> |
|