Quantcast
Channel: All LoadRunner Practitioners Forum posts
Viewing all articles
Browse latest Browse all 12134

Want to capture Ordinal only upto a certain number

$
0
0

Hello,

 

The application I am trying to create LoadRunner scripts for has two different types of correlation variables occuring at the same place with same boundary. Both of them are occuring multiple times in multiple lines as follows:

 

Group-A:

<OPTION Row="318" VALUE="5187">5187 - abc</OPTION>
<OPTION Row="319" VALUE="5370">5370 - xyz</OPTION>
<OPTION Row="320" VALUE="5372">5372 - efg</OPTION>
<OPTION Row="321" VALUE="5378">5378 - jkl</OPTION>

upto 20...

 

 

Group-B:

<OPTION Row="318" VALUE="Boy">Boy - abc</OPTION>
<OPTION Row="319" VALUE="Cat">Cat - xyz</OPTION>
<OPTION Row="320" VALUE="Dog">Dog - efg</OPTION>
<OPTION Row="321" VALUE="Cow">Cow - jkl</OPTION>

20 upto 40...

 

I want to use ORD=ALL to capture the numbers 5187, 5370, 5372, 5378 from group A, but since the boundaries are same for the both groups, I am trying to use the following with two different varaiable i and j respectively:

 

int i;

for (i=1; i<20; i++)

{

  web_reg_save_param("Date",
        "LB=VALUE=\"",
        "RB=\">",
        "Ord=i",
        "Search=Body",
        LAST);

}

 

But when I replay the script, the following occurs in the response:

 

Error -27289: Unrecognized value ("i") for the "Ord" argument (number 4), 

 

Can anybody please guide me on how to overcome this? Are there any other approaches you suggest?

 

Also, once these values are captured, in subsequent requests, I want to pass them as comma separted such as: abc,xyz,efg,jkl

 

Any suggestion on how to pass them all as such a comma separated line?

 

Thanks


Viewing all articles
Browse latest Browse all 12134

Trending Articles



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