Handling correlation with blank RB

884 views
Skip to first unread message

Mital Majmundar

unread,
Jul 27, 2012, 8:01:17 AM7/27/12
to lr-loa...@googlegroups.com

Hello all

I have a correlation where the parameter which i need to capture is at the end of the line on which it appears.

Something like below:

&cassRegion=NA

In the above part i want to capture NA. If i dont put anything in RB (blank RB) it, obviously, captures everything till the first character encountered.

Any ideas how can i handle this?

James Pulley

unread,
Jul 27, 2012, 11:42:28 AM7/27/12
to LoadRunner
You will need a RB condition, this is not an optional attribute. So
you may need to move further beyond end the end of your data to find
one.

Take a look at the SaveLen and SaveOffset attributes to
web_reg_save_param(). Once you combine this with an ORD reference
you may be able to pull just what you need.

'Pulley

Mital Majmundar

unread,
Jul 28, 2012, 2:32:48 AM7/28/12
to lr-loa...@googlegroups.com

Hello James

I actually found a solution to this one.
Just run it with RB as " " and see wht it captures. It will capture something extra along with wht we require.
In my case it captures "NA\r". Now in the next run take the extra boundary and you got what you want.

--
You received this message because you are subscribed to the Google "LoadRunner" group.
To post to this group, send email to LR-Loa...@googlegroups.com
To unsubscribe from this group, send email to
LR-LoadRunne...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/LR-LoadRunner?hl=en

James Pulley

unread,
Jul 28, 2012, 4:13:40 PM7/28/12
to lr-loa...@googlegroups.com

So, you do have a right boundary, just not one which was visible, “\r”

Mital Majmundar

unread,
Jul 30, 2012, 12:30:07 AM7/30/12
to lr-loa...@googlegroups.com

Yes..the right boundary which was missing is '\r'.
It actually represents a long space.

James Pulley

unread,
Jul 30, 2012, 10:46:43 AM7/30/12
to lr-loa...@googlegroups.com

No, “\r” is not a long space.   This is a control character for carriage return.   It is often paired with “\n” as the newline character.

Mital Majmundar

unread,
Jul 30, 2012, 11:00:35 AM7/30/12
to lr-loa...@googlegroups.com

Yes..ok thanks James.

Reply all
Reply to author
Forward
0 new messages