How do I change the URL of a website being tested

Wednesday, February 15, 2012
Avatar
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
Avatar
re: inflectra.david Wednesday, February 15, 2012

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
Avatar
re: inflectra.david Wednesday, February 15, 2012

Also please refer to this KB article:

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

Regards

Adam

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Wednesday, February 15, 2012
  • Last Reply: Friday, August 31, 2012
  • Replies: 2
  • Views: 17823