Parameters - Different values how to add it in the script
I have created a parameter called dataType with values - dataType : KHB, KAN, DBR . iset its as Sequential and each iteration.
I called that parameter in my script- Init () as
var Name="Test_"+ TC.getParam("dataType")+"_" + currentDate + "_"+ currentTime;
Type Name in Name textbox
value = Name which is a parameter
But my problem is it always takes first element for all 3 iterations.
I want everytime when it runs (made 3 in runtime settings) it should type Test_KHB (furst time)
Test_KAN(Second Time) etc.
How to solve this.
Re: Parameters - Different values how to add it in the script
The Init action runs only once hence it is not affected by the number of iterations.
If you wish different Vusers to get different values you should configure the parameter to be unique.