Hello All,
I am scripting a test application (web).
I setup the runtime parameters "Reset user session and emulate new browser between each iteration" = Yes
But the execution...
If you use the option to reset the session between each iteration then all user information like cookies, cache, variables are reset. That's why you get that "Session Expired"...
Finally, I created a script as below. I hope it will help someone one day.
var text ="";
var i = 1;
var temp = 0;
var agree = "";
var TotalGrps = 0;
var TotalMembers...
Hi all,
I created a script to construct a new variable (text) thanks to multiple extracted variables (ID, NUM, DATE).
I am able to see the new variable on debug log.
But...
Hello David,
Sorry, I forget to replace the value "myvalue" by "max" in my example.
My purpose was to add a "," until the last variable was added.
Thanks.
From a webpage response, we are extracting all occurrences of the data.
example: {id:1,ref:001},{id:2,ref:002},{id:3,ref:003}
Now, we have to post the all occurrences but...
Another way to do that is to split the value and join it again with that function:
function decode(encodedValue) { var decodedValue = encodedValue.split("ref:").join("ref...
From a webpage response, I extracted in a variable, a list of data (type timestamp).
Then I have to post a message with this data but in datetime format (AAAA-MM-DDThh:mm:ss)...
This kind of Javascript should convert a timestamp to a date format:
var myvalue = context.variableManager.getValue("Extracted");// Extracted is your variable extractor namevar...