I am getting so many random numbers in my script as below.
"Name=TabBar:PolicyTab:PolicyTab_SubmissionNumberSearchItem", "Value=", ENDITEM,
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?
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.
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?
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)
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.
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.