Forum Discussion
Marsha,
Thanks for your input and confirmation that I took the only approach available for this situation
The idea is for visibility
- Live_URL
- Test_URL
are clearer and shorter to read for a non-programmer, rather than something like:
Which I can create in another structure
Hi,
Why not to create a new variable (TestedURL), assign it (somewhere) value of either Live_URL or Test_URL and use this new variable in your KW tests?
- Lee_M4 years agoCommunity Hero
This is what I have done
Marsha_R suggested an excel spreadsheet - I have used a table variable, which is just a different type of variable but I feel can be used a little more ablatively than the excel solution for my purposes.
Either way, the answer I was looking for was that you CAN'T make a DDT loop over a series of variables unless it is a structured data type
- AlexKaras4 years ago
Champion Level 2
Hi,
> you CAN'T make a DDT loop over a series of variables unless it is a structured data type
Yes, correct for the built-in data loop operation.
Actual implementation may vary and some code sample might help to better understand your needs and idea.
For example (untested jscript pseudocode)
var test_url = ...;
var pod_url = ...;
var arr = [test_url, prod_url];
for each (var url in arr) { // DDT loop
...
}
P.S.
From initial message:
> Live and test on different URLs - both MUST URLs be stored as separate string vars (liveUrl, testUrl)
I do not see the reason to store these two URLs in a separate variables (unless both of them are used within one test), but probably due to the fact that I know almost nothing about your actual test.
Store them as separate data entries for DDT or just easy switching between tested environments - yes, but store them in a separate standalone variables (i.e. not array, table variable, etc.) - no.
- Lee_M4 years agoCommunity Hero
AlexKaras, this is similar to the way I am making the DDT loop var.
Live and Test as separate vars
All programmatic tests can have the vars together as I know where and what they are called/
For creating new tests I would like to have the distinction of 2 uniquely named vars for visibility (make it easier for people to create tests