Forum Discussion

JamesF1's avatar
JamesF1
Frequent Visitor
10 years ago

Running tests against multiple instances of the same site.

Is it possible to determine URL's  tests will run against when executing?

For example - If you have 2 instances of a website - e.g. www.test1.com and www.test2.com, which are identical, and I create a project or suite, and record a regression test against test1.com, can I easily run against test2.com without have a test project for each?

Im working with keyword tests.

Thanks for any help..

 

1 Reply

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi JamesF1,

     

    You can simply change the URL of the test site. For example, you can store the URL in a project variable and assign the needed value at the beginning of the test. In your test, change the code where you are addressing the site by the URL – you will need to specify the project variable name there.