Forum Discussion

Xman1's avatar
Xman1
Occasional Contributor
7 years ago

Is it possible to run a data loop with keyword tests inside the loop?

I want to run a data loop to test the same actions but in two different websites. However, when I make the data loop, my keyword tests are not included in the loop.
  • tristaanogre's avatar
    tristaanogre
    7 years ago

    OK... what I would do is this:

     

    1) Step one in your data driven loop is to set a project level variable to equal the URL that you get from the loop data.

    2) Then, in your different keyword tests, whenever you need to reference the URL, use that project level variable.