Quantcast
Channel: LoadRunner Practitioners Forum topics
Viewing all articles
Browse latest Browse all 3978

Please Help A Newbie

$
0
0

Hi

 

Can anyone please help?

 

I've been doing the Loadrunner tutorial & i'm struggling with what syntax to use adding a 'char' I've created & adding it back in the web_submit_form ITEMDATA

 

Below is a short example of the code im having trouble with;

 

char * FlightVal;

 

web_reg_save_param("outFlightVal", 
        "LB=outboundFlight\" value=\"", "RB=>", 
           "ORD=ALL",
        "SaveLen=18",
        LAST );

 

FlightVal = lr_paramarr_random("outFlightVal");
 
lr_output_message("Flight Value is %s", FlightVal);

 

web_submit_form("reservations.pl_2",
        "Snapshot=t5.inf",
        ITEMDATA,
        "Name=outboundFlight", "Value={?}", ENDITEM,
        "Name=reserveFlights.x", "Value=44", ENDITEM,
        "Name=reserveFlights.y", "Value=9", ENDITEM,
        LAST);

 

If anyone can help me with what I add in "Value={?}",   in order to display the value of  FlightVal would be very much appreciated.

 

Sorry if this is very newbie im just trying my best to learn.


 


Viewing all articles
Browse latest Browse all 3978

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>