If LB and RB are Dynamic…so you can perform the followings actions
Action_1 (Regular expression in Loadrunner)
1.
LB/DIG or RB/DIG
Can be used as (#) as a wildcard for a single digit.
2.
/ALNUM
LB/ALNNUM or RB/ALNUM
Can be used as (^) as a wildcard for a single alphanumeric character.
1.1 ALNUMIC to ignore case.
1.2 ALNUMLC to match only lower case.
1.3 ALNUMUC to match only upper case.
e.g
Server respone =
“sever_name returned session_id_101=12bmklju789”so you can visit or download site under the followings linke”
Assume …
LB is dynamic as session_id_101 is changing(101,102,103…) for each iteration.
Here we want to capture string as “12bmklju789”.
LB = “session_id_"
So use
saveOffset=3 ( Here 101,102 are changing so length of digit is 4 including "101=" )
saveOffSet = can be used to capture Left dynamic characters.
RB =”
Finally it goes like ..
Web_reg_save_param(“sessionID”,
”LB= session_id_“,
“RB=\””,
“ORD=all”,
“SaveOffSet=4”,
LAST);
No comments:
Post a Comment