Forum Discussion
Hflower
13 years agoOccasional Contributor
The Groovy Script is a Test Step that iterates through the (sibling) test steps in this Test Case and sets the headers for each Test Step.
I'm not sure how it 'runs' each test step once it's set the headers
Maybe because the Test Step hasn't been run at the point this script is working, the URL (and parameters etc) hasn't been interpreted yet.
I though there might/must be a function/method/routine that figures out what the complete URL is going to be when a Test Step runs, and I could use that rather than write my own one using regex's (or something) in a language I'm not familiar with.
thanks for reading Erik
I'm not sure how it 'runs' each test step once it's set the headers
Maybe because the Test Step hasn't been run at the point this script is working, the URL (and parameters etc) hasn't been interpreted yet.
I though there might/must be a function/method/routine that figures out what the complete URL is going to be when a Test Step runs, and I could use that rather than write my own one using regex's (or something) in a language I'm not familiar with.
thanks for reading Erik
