Using current URL?
Is there a way for Test Complete to use the currently opened URL instead of navigating to pre populated URL from within the test?
Our product has different URL's for each client version, so I have to modify my tests each time for the client under test.
Solved! Go to Solution.
I would use a project variable that your tests call for the URL. This way you only have to change in one place.
You could even use the start test event handler to set the value from a config file or environment variable at run time.
Click the Accept as Solution button if my answer has helped
Or you could use the different URLs as part of a data-driven test and read them from a file into that variable. That way you could run one set of tests or multiple ones just by changing the data file.
Also be sure to shut down the browser at the end of your test.
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.