Highlighted
Absent Member.
Absent Member.
257 views

how can i dynamically change the BOARDING POINT values accordin to the bus

Hi

 

i am trying to write a script which will pick  dynamic values for the below boarding point  according to the bus, but i am getting the default values which are captured in recording .how can i dynamically change the BOARDING POINT values accordin to the bus

 

 

my code is 

 

 

For Bus:

 

<h2 class='TravelAgntNm' title='APSRTC'>APSRTC</h2><a href='javascript&colon;void(0);' rel='' class='canclbtn custom-width cancel' id='canclP249285670'>Cancellation Policy  </a>
    web_reg_save_param("Buses","LB='>","RB=</h2><a href='","ORD=ALL",LAST);

 

For Boardig Point

//<option value="151^MARATHALLI (M) 8453415795  080 - 22971202 / 03 /04 /05 /06^07:45 PM^NEAR BMTC BUS STAND,MARATHALLI,BENGALURU-560037 +918453415795 , 080 - 25401882 , 42099909 SINOSH TOURS & TRAVES OPP  KALAMANDIR^^">MARATHALLI (M) 8453415795  080 - 22971202 / 03 /04 /05 /06-07:45 PM</option>
    web_reg_save_param("Boarding_point","LB=^^\"","RB=PM</option>","ORD=ALL",LAST);

 

0 Likes
4 Replies
Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..

Re: how can i dynamically change the BOARDING POINT values accordin to the bus

Please check this article which explains how to correlate dynamic values.


Thank you,
NaveenKumar Namachivayam | www.QAInsights.com
Learn TruWeb - my Udemy Course "Performance Testing using TruWeb" | https://www.udemy.com/performance-testing-using-truweb/?couponCode=YOUTUBE
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: how can i dynamically change the BOARDING POINT values accordin to the bus

Hi Naveen ,

 

Thank you for your time.

 

I have several buses with several  boarding points for each one. i have structed to get boarding points on each bus. i am getting default boarding points.

 

my concer is

 

Example :

 

Bus A have 1,2,3,4 boading points and bus B have 5,6,7,8 boarding points but when select the  bus B i am getting boarding points of Bus A(1,2,3,4).

 

so how can get bus B Boarding points(5,6,7,8)

 

 

My code here;

 

For Bus:

 

//<h2 class='TravelAgntNm' title='APSRTC'>APSRTC</h2><a href='javascript&colon;void(0);' rel='' class='canclbtn custom-width cancel' id='canclP249285670'>Cancellation Policy  </a>
    web_reg_save_param("Buses","LB='>","RB=</h2><a href='","ORD=ALL",LAST);

 

Random Function

 

lr_save_string(lr_paramarr_random("Buses"),"Buses1");
lr_output_message("The Selected Bus is ::: %s",lr_eval_string("{Buses1}"));

 

For Boarding Points:

//<option value="151^MARATHALLI (M) 8453415795  080 - 22971202 / 03 /04 /05 /06^07:45 PM^NEAR BMTC BUS STAND,MARATHALLI,BENGALURU-560037 +918453415795 , 080 - 25401882 , 42099909 SINOSH TOURS & TRAVES OPP  KALAMANDIR^^">MARATHALLI (M) 8453415795  080 - 22971202 / 03 /04 /05 /06-07:45 PM</option>
    web_reg_save_param("Boarding_point","LB/IC/DIG=value=\"##^","RB=^^\">","ORD=ALL",LAST);

 

i am not getting dynamic values where i am expecting the numbers. i am not able to predict how many numbers will come to repalce with #.

 

 

 

<option value="151^MARATHALLI (M) 8453415795  080 - 22971202 / 03 /04 /05 /06^07:45 PM^NEAR BMTC BUS STAND,MARATHALLI,BENGALURU-560037 +918453415795 , 080 - 25401882 , 42099909 SINOSH TOURS & TRAVES OPP  KALAMANDIR^^">MARATHALLI (M) 8453415795  080 - 22971202 / 03 /04 /05 /06-07:45 PM</option>
<option value="202^MADIWALA{NEXT TO VENKATESHWAR HOSPITAL:NEAR AYAPPA TEMPLE}  PH 080 - 41554321 / 41554322 / 41554323^08:45 PM^NO.3 HOSUR MAIN ROAD MARUTI NAGAR MADIWALA -76 080 - 41554321 / 080 - 41554323 MANISH TOURS N TRAVELS NEAR  VENKATESHWARA  HOSPITAL^^">MADIWALA{NEXT TO VENKATESHWAR HOSPITAL:NEAR AYAPPA TEMPLE}  PH 080 - 41554321 / 41554322 / 41554323-08:45 PM</option>
<option value="10^ANAND RAO CIRCLE 080 - 22971202 /03 / 04/ 05 /06^09:45 PM^VRL BUS STAND, SHESHADRI ROAD , ANAND RAO CIRCLE 080 - 22971202 / 03 / 04 / 05 / 06 MAIN OFFICE ANAND RAO CIRCLE^^">ANAND RAO CIRCLE 080 - 22971202 /03 / 04/ 05 /06-09:45 PM</option>
<option value="176^HEBBAL (M) 7483070725 / 080 - 22971201 / 204^10:05 PM^NO 721  HEBBAL  BUS STOP BENGALURU +917483070725 / 080 - 22971201 / 204 BMTC BUS STOP OPP HEBBAL POLICE STATIO^^">HEBBAL (M) 7483070725 / 080 - 22971201 / 204-10:05 PM</option>                    </select>

 

 

 

Thank you very much in advance.

 

 

 

 

 

 

 

 

 

 

 

 

0 Likes
Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..

Re: how can i dynamically change the BOARDING POINT values accordin to the bus

Your correlation will not work as your LB is ">" which will not extract the details you want. I think you are new to LoadRunner, I suggest you to go thru the help manual, blogs (QAInsights), and attend training sessions.

 

 

<h2 class='TravelAgntNm' title='APSRTC'>APSRTC</h2><a href='javascript&colon;void(0);' rel='' class='canclbtn custom-width cancel' id='canclP249285670'>Cancellation Policy  </a>
    web_reg_save_param("Buses","LB='>","RB=</h2><a href='","ORD=ALL",LAST);

 


Thank you,
NaveenKumar Namachivayam | www.QAInsights.com
Learn TruWeb - my Udemy Course "Performance Testing using TruWeb" | https://www.udemy.com/performance-testing-using-truweb/?couponCode=YOUTUBE
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: how can i dynamically change the BOARDING POINT values accordin to the bus

Hi Naveen

 

 

I am new to loadrunner so please help me how can i select the bounderies for correlation

 

 

 

 

 

Thanks in Advance

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.