top of page

How to handle Dynamic Boundaries in LoadRunner Script?


How to handle Dynamic Boundaries in LoadRunner Script?

Correlation Tips: - How to handle Dynamic Boundaries in LoadRunner Script.

Sometimes LB and RB becomes Dynamic in this case we can use text flags.

Example:-

Case1: Suppose Captured LB = lb3ga Captured RB= rb

Captured LB = lb4ga Captured RB= rb

In this case LB is changing every time

We can capture the desired string by putting the following correlation function in place, using the /DIG text flag in combination with LB: web_reg_save_param(“DynamicCapture”, “LB/DIG=lb#ga\=”, “RB=rb”, LAST);

The corresponding place, which we expect to be dynamically filled in with a digit, should be replaced by a pound sign (#).

If letters are changing case, we can modify the function as below to include the /IC flag:

web_reg_save_param(“DynamicCapture”, “LB/IC/DIG=lb#ga\=”, “RB/IC=rb”,LAST);

For multiple digits, you have to put a pound sign (#) sing for each digit:

Captured LB = lb5463ga Captured RB= rb

web_reg_save_param(“DynamicCapture”, “LB/IC/DIG=lb####rb\=”, “RB/IC=rb”, LAST);

Case 2: Captured LB = lb5463ga Captured RB= rb

Captured LB = lbxy54ga Captured RB= rb

Captured LB = lbxymvga Captured RB= rb

Here we are seeing LB changed every time intermittently (i.e. sometimes only later, sometimes only digits and sometimes both) in this case we can modify our function as below.

Use /ALNUM instead of /DIG text flag, and use caret sign (^) instead of # (for 4 place use 4 caret sign)

web_reg_save_param(“DynamicCapture”, “LB/ALNUM=lb^^^^ga\=”, “RB/IC=rb”, LAST);


bottom of page