Highlighted
Visitor.
270 views

How to send parameters for dymanic values in URL

Hi,

I have recorded A Script in Load runner 12.02 using web  HTTP/HTML protocol.

To parse different courses i used web_reg_save_param( )  function,

found below  results:

vuser_init.c(435): Notify: Saving Parameter "Courseid_1 = 11".
vuser_init.c(435): Notify: Saving Parameter "Courseid_2 = 10".
vuser_init.c(435): Notify: Saving Parameter "Courseid_3 = 9".
vuser_init.c(435): Notify: Saving Parameter "Courseid_4 = 8".
vuser_init.c(435): Notify: Saving Parameter "Courseid_5 = 7".
vuser_init.c(435): Notify: Saving Parameter "Courseid_6 = 6".
and so on ...

Now sending request containing corseid as parameter in URL.

I gets an error on replay , application doesn't recognize parameter [courseid]

Error -26627: HTTP Status-Code=404 (Not Found) for "http://localhost/course/view.php?id=[Courseid]" [MsgId: MERR-26627]

Can anyone help me in this?

 

0 Likes
1 Reply
Highlighted
Honored Contributor.
Honored Contributor.

Re: How to send parameters for dymanic values in URL

Please check the settings to see what are the correlations brackets are defined for parameterization on the machine. The default ones are '{' and '}'.

If the so, it might be that you need to modify the script to use them instead of '[' and ']' to wrap the patameter you are saving.

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.