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

Switching paramethers based on conditions

$
0
0

Hi There,

 

I need to switch parameter used based on condition

like

 

if[ condition] {

parameter=parameter1;}

else {

parameter=parameter2;}

 

to use further in the script.

web_submit_data("tffcweb.dll",
                 "Name=UN", "Value={parameter}", ENDITEM,
                  LAST);

where value of parameter equals value of parameter 1 or parameter 2 based on condition.

so far I was able to find solution using only conversion into string like lr_save_string(strParam,"Value={parameter1}");

 

web_submit_data("tffcweb.dll",
                 "Name=UN", strParam, "ENDITEM,
                  LAST);

 

 

I'd like to find route to work stricly with parameters, rather then going to string path. Any ideas are highly appreciated.

thanks!

 

 

 


Viewing all articles
Browse latest Browse all 3978

Trending Articles



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