cancel
Showing results for 
Search instead for 
Did you mean: 

How To Use Parameters To Change The URL

SOLVED
Highlighted
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
Highlighted
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.

View solution in original post

2 REPLIES 2
Highlighted
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.

View solution in original post

Highlighted
Occasional Contributor

Re: How To Use Parameters To Change The URL

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