Forum Discussion

Xman1's avatar
Xman1
Occasional Contributor
6 years ago
Solved

How do i run the same Keyword Test on a different urls?

How do i run the same Keyword Test on a different urls?   For example: I want to go to https://eoffice.epartconnection.com and fill in the login info and click submit. Then, I want to go to https...
  • Marsha_R's avatar
    Marsha_R
    6 years ago

    If you want to go in and change the value manually every time, use the project variable directions from your original thread:

    https://community.smartbear.com/t5/TestComplete-Functional-Web/Is-it-possible-to-run-a-data-loop-with-keyword-tests-inside-the/m-p/167436

     

    Then in your test, you will build the object name 

    "Aliases.browser." + myvariablename + ".formForm1.passwordboxPasswordtextbox" 

     

    and use eval to make it an actual object that you can enter text into or click or whatever.

     

    ------

     

    If you want to enter the value automatically and have the test run in a loop, you can put the URL values in a spreadsheet and at the top of the loop, read the URL into the project variable and the rest will be the same as above.