· Application Type:
· Project Type:
Target readers: Performance Testers
Keywords: Correlation, Performance
Introduction
While creating vuser script some data of object will be taken in to the script and few data values has to be generated by the application during time. User can not exit or pass any parameter to it. So we can write some programs which takes this value and output some other values again we pass it to other function like …show more content…
Insert five web_reg_save_param functions using "Ord=1" (2, 3, ...) attribute:
1. web_reg_save_param ("ID1Value", "LB= value="", "RB="", "Ord=1", LAST); 2. web_reg_save_param ("ID2Value", "LB= value="", "RB="", "Ord=2", LAST); 3. web_reg_save_param ("ID3Value", "LB= value="", "RB="", "Ord=3", LAST); 4. web_reg_save_param ("ID4Value", "LB= value="", "RB="", "Ord=4", LAST); 5. web_reg_save_param ("ID5Value", "LB= value="", "RB="", "Ord=5", LAST);
Please, note that web_reg_save_param function does not perform correlation. web_reg_save_param function just registers a request for correlation from the next server response. That's why web_reg_save_param function should be placed before action functions, such as: web_url, web_submit_form, and others.
[pic] OK, let's execute our script and see results - whether values will be captured or not: [pic]
As you can see, web_reg_save_param functions executed correctly and parameters contain values.
Just to clarify, we used "Ord" attribute. It indicates the ordinal position or instance of the match. Read LoadRunner Help on web_reg_save_param function for detailed …show more content…
Instead of it, we will extend boundaries to capture values from a server response.
2. Insert five web_reg_save_param functions with extended boundaries:
1. web_reg_save_param ("ID1Value", "LB=ID1" value="", "RB="", LAST); 2. web_reg_save_param ("ID2Value", "LB=ID2" value="", "RB="", LAST); 3. web_reg_save_param ("ID3Value", "LB=ID3" value="", "RB="", LAST); 4. web_reg_save_param ("ID4Value", "LB=ID4" value="", "RB="",