Search: Advanced search
Please enter a keyword or ID
Modifying Web Scripts to Run Against a Different Web Server
If you want to test a web application hosted on multiple servers, you can use repository variables and URL format rules to handle URL changes so scripts that were recorded on a different web server can run correctly.
Modify the URL value with a repository variable
When you switch to a different web server, the application URL most likely changes. To ensure that QA Wizard Pro can run scripts on different servers, you can use a repository variable with values for each server address.
For example, you want to test an application on a development server and a test server. You can create a URLROOT variable with values of http://dev.example.com and http://test.example.com. Add the URLROOT variable to the script and assign it the value for the server you are running the script on.
Modify the search criteria with URL format rules
By default, QA Wizard Pro uses the URL of a web page as a search criteria. To ensure that QA Wizard Pro can locate windows and controls during playback, you can use URL format rules to search on individual parts of the URL.
For example, you recorded a script on a development server that logs in to a web page. Now you want to run the same script on a test server. The script fails on the test server because the application repository was populated with information associated with the development server. You can create a URL format rule that searches for only the specific part of the URL that does not change. If you create a URL format rule to search for the login.php file value, QA Wizard Pro will bypass the server information in the URL and the script will run correctly.