cancel
Showing results for 
Search instead for 
Did you mean: 

How To Use Parameters To Change The URL

SOLVED
Occasional Contributor

How To Use Parameters To Change The URL

Hello,

 

I am working on automating test scripts for staging and prod environment where I need to set dynamic values for the URL. I am trying to use parameters which takes different values for URL. How can I set the parameter value in Sys.Browser().page() function and use the parameter for web comparison.

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Community Hero

Re: How To Use Parameters To Change The URL

You can use data-driven testing to test a list of different urls

https://support.smartbear.com/testcomplete/docs/testing-with/data-driven/index.html

 

If you just change the url every once in a while, then I would just use a project variable for the parameter.

2 REPLIES 2
Community Hero

Re: How To Use Parameters To Change The URL

You can use data-driven testing to test a list of different urls

https://support.smartbear.com/testcomplete/docs/testing-with/data-driven/index.html

 

If you just change the url every once in a while, then I would just use a project variable for the parameter.

Occasional Contributor

Re: How To Use Parameters To Change The URL

Thanks! I was able to run the scripts using data driven testing.  

New Here?
Join us and watch the welcome video:
Join the September Hub-bub to show off, learn and win