Highlighted
Absent Member.
Absent Member.
821 views

How to add dynamic Item data(Passenger Names) in sample Flight application

In sample filght application if I added 2 passengers 

 

script as below

My question is if I select option 3 passengers , then how to add 3rd passenger dynamycally throught the script

 

 like below

"Name=pass3", "Value=Third Person", ENDITEM,

0 Likes
4 Replies
Highlighted
Super Contributor.
Super Contributor.

Re: How to add dynamic Item data(Passenger Names) in sample Flight application

you need to use web_custom_request() then build and pass the data dynamically based on the number of passengers.

 

Thanks, Ajay

Highlighted
Absent Member.
Absent Member.

Re: How to add dynamic Item data(Passenger Names) in sample Flight application

Could you please provide sample syntax 

0 Likes
Highlighted
Super Contributor.
Super Contributor.

Re: How to add dynamic Item data(Passenger Names) in sample Flight application

The below post help's you in building the web_custom_request.

 

 

http://h30499.www3.hp.com/t5/LoadRunner-Support-Forum/Need-code-for-the-web-custom-request/td-p/6031137

 

Thanks, Ajay

0 Likes
Highlighted
Regular Contributor.
Regular Contributor.

Re: How to add dynamic Item data(Passenger Names) in sample Flight application

I am not able to access the link mentioned above, can anyone help please

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.