03-19-2013 08:31 AM
I am getting so many random numbers in my script as below.
I am not sure but I think these are timestamps(bcoz of 'ts') and there are so many different values throughout the script.
The script is working fine with these original recorded values .
My question is do I need to correalte or make these values dynamically appear by any other means?
03-19-2013 09:00 AM
Pls check with generation log whether its related to time .Also, make sure that, only last 3 or 4 digits only changes in the timestamp number. if each number is different, then its not a timestamp. If you are sure it is a timestamp , you can use web_save_timestamp_param function before each hits where timestamp value occurs.
03-20-2013 06:35 AM
Thnks for the response.
Here all digits are different and not only the last four.So we cannot use 'web_save_timestamp_param()'
I was considering it as something like time stamp because of the word 'ts' before it,
The script is working fine without correlating it or even when i am deleting this number.
But as a general practice we should get rid of any kind of dynamic values from script.
So is correlation the only solution or there is any other means to make it dynamically appear?
03-20-2013 08:44 AM - edited 03-20-2013 08:47 AM
What are those numbers used for in the application?
Once you know what the numbers are used for then you will know if you need to correlate them or not. So instead of playing a guessing game why not just go and get the information? (Ask the developers)
03-20-2013 11:50 AM
What you have in your sample code is a typical way web based applications pass variables from page to page, but LoadRunner is only telling you that the page you requested was present. So "ts" is the variable throughout your application being tested and each of the numbers are the values being used on those pages. Your developers should be able to explain how they are used. If they're dynamic you'll need to correllate them.
You can't trust LR to send back any errors or failures for invalid URL variables unless you have error checking in the script code. Since Mywebpage.do is a file and does respond to a request to that file LR will report it as success. The page may be working as you expect or just be one big error message, but unless your script is specifically looking for a valid response you won't know.
04-07-2013 08:15 AM
I agree with LoadRunner421 - just ask the developers.
Sometimes timestamps may represent the current time declared by the browser, and other times they may represent an event that occured on the server side.
So using LR API to save the current timestamp will not always be the correct behavior.