Highlighted
Visitor.
1637 views

Correlation For Dynamic Boundaries

Jump to solution

Hello There!!,

Can I have somehelp to understand how to Correlate when the right boundaries keep changing. PFB the scenario

Scenario: Uploading a Video.

Applicaiton Behavior: Once the Video is uploaded, an ID is generated and shared in the response. This ID needs to be captured and passed in the Request of the next Transaction. When the Transactions are repeated for multiple Iterations, the ID keeps adding to the response. 

Response after the Upload(Iteration1) : <input Value>Video Upload<input Value> <Video id>1234<Video id>

Response after the Upload(Iteration2) : <input Value>Video Upload<input Value> <Video id>1234,5678<Video id>

Response after the Upload(Iteration3) : <input Value>Video Upload<input Value> <Video id>1234,5678,9876<Video id>

Around 30 iterations would be done for each user and the test will be executed for 1500 Users. 

Kindly share me ur advice to handle correlation for the above scenario. 

Thanks in Advance.

 

 

 

 

 

 

0 Likes
1 Solution

Accepted Solutions
Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

Re: Correlation For Dynamic Boundaries

Jump to solution

When the list of video ID numbers starts at a fixed offset of any number in the response you might do something like:

web_reg_save_param_regexp("ParamName=VideoID","RegExp=(\\d+)[,<]","Ordinal=All");

Note: each number followed by a ',' or '<' is captured.

It will find all numbers. Checkout the functions lr_paramarr_idx() to access the right number from the obtained list of parameters.

See example code of LR help of function lr_save_param_regexp()

Signature:
Reward community members who take time to respond and help.

View solution in original post

0 Likes
3 Replies
Highlighted
Honored Contributor.
Honored Contributor.

Re: Correlation For Dynamic Boundaries

Jump to solution
0 Likes
Highlighted
Visitor.

Re: Correlation For Dynamic Boundaries

Jump to solution

Hi,

Thanks for the reply.

The condition here is for the First Iteration first value needs to be extracted and for the second Iteration second value needs to be extracted and so on. Any suggestions for this case?

0 Likes
Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

Re: Correlation For Dynamic Boundaries

Jump to solution

When the list of video ID numbers starts at a fixed offset of any number in the response you might do something like:

web_reg_save_param_regexp("ParamName=VideoID","RegExp=(\\d+)[,<]","Ordinal=All");

Note: each number followed by a ',' or '<' is captured.

It will find all numbers. Checkout the functions lr_paramarr_idx() to access the right number from the obtained list of parameters.

See example code of LR help of function lr_save_param_regexp()

Signature:
Reward community members who take time to respond and help.

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.