Ignore whitespace / newlines on left / right boundaries when using web_reg_save_param in loadrunner
♥ 0 |
When setting up the LB and RB strings for capturing a dynamic value with web_reg_save_param(), is there a way to have the boundaries ignore whitespace and newlines? EDIT (more info): I’m trying to capture a dynamic value and the left bound would be the following (as returned by the server):
I tried the following for the web_reg_save_param:
This should account for the newlines and tabs, but I still don’t get matches. Anything I can do to get this left bound to work? Thanks.
Marked as spam
|
Private answer
Instead, I would take a different approach. You may have to grab a bigger chunk, and then parse it down using string functions in C to get to the real value that you need to capture. I would start by using the ORD argument in the web_reg_save_param to capture the nth occurence of the LB
You should be able use this approach to eventually parse down to the part of the string you are interested in capturing. Marked as spam
|
|||
Private answer
I faced the same problem as mentioned,and even i tried with multiple ways of using string functions but as i was new to the language i couldnt make it . But the solution that helped me is saveLen and SaveOffset paramaters in web_reg_save_param function. In the mentioned case initially i used as '''' LB and '''''' as RB and then i found the position of required value and then placed the value in saveOffset. Marked as spam
|
|||
Private answer
Hello Cab, Please let me know if you found a workaround for capturing multiple lines. I am trying to capture what is shown below, Marked as spam
|
|||
Private answer
Please let me know if you found a workaround for capturing multiple lines. I am trying to capture what is shown below. Marked as spam
|
|||
Private answer
From below text, I need the get the value ''56767 - Business Apps'' How to specify the LB and the RB. LB and RB are in different lines. We cant take LB as''value='' because there are many other data with same value. We have to specify the LB as ''name=''billToDept'' ''. Please Suggest readOnly=''readOnly'' id=''departmentName_0? name=''billToDept'' Marked as spam
|