How do I change the URL of a website being tested

Wednesday, February 15, 2012 6:59:00 PM
I need to vary the recorded script to be used on a different system than was used for recording the script. What i see in the test objects seems that the URL seems to be set on every object. Does this mean, that we can not use recorded scripts for different web-site/base-urls and have to re-record them every time our test system changes? How can i set the base URL to use programmatically in the script at the start of the test?
2 Replies
Wednesday, February 15, 2012 6:59:28 PM
Avatar
re: inflectra.adam on Wednesday, February 15, 2012 6:59:00 PM

You can use the

Navigator.Navigate("http://....");

command as a first line in the script. That will allow you to modify the URL being tested.

Friday, August 31, 2012 7:28:31 PM
Avatar
re: inflectra.adam on Wednesday, February 15, 2012

Also please refer to this KB article:

http://www.inflectra.com/Support/KnowledgeBase/KB11.aspx

Regards

Adam

Statistics
  • Started: Wednesday, February 15, 2012 6:59:00 PM
  • Last Reply: Friday, August 31, 2012 7:28:31 PM
  • Replies: 2
  • Views: 8643