LR parameterization-500 concurrent iterations 1 cycles fetch 5 data

Source: Internet
Author: User

LR parameterization-500 concurrent iterations 1 cycles fetch 5 data

Like Vuser1, Vuser2, vuser3..........,vuser500.

Shuju1,shuju2,shuju3,shuju4,shuju5

Want to realize Vuser1 take Shuju1,vuser2 take Shuju1,vuser3 take shuju1,vuser4 take Shuju1,vuser5 take shuju1..........vuser100 take shuju1.

Vuser101 take shuju2,vuser102 take shuju2,vuser103 take shuju2,vuser104 take shuju2,vuser105 take shuju2..........vuser200 take SHUJU2

。。。。。。。

vuser401 take shuju5,vuser402 take shuju5,vuser403 take shuju5,vuser404 take shuju5,vuser405 take shuju5..........vuser500 take Shuju5

Or

Vuser1 take Shuju1,vuser2 take Shuju2,vuser3 take shuju3,vuser4 take Shuju4,vuser5 take Shuju5,

VUSER6 take Shuju1,vuser7 take Shuju2,vuser8 take Shuju3,vuser9 take Shuju4,vuser10 to take shuju5 ....

Method 1, make the data, 5 each of the data is copied into 100, a total of 500, the only one can be

2, write if statement take the remainder judgment 5 times

if (switch) statement notation
int A;
Action ()
{
Lr_save_string (Lr_eval_string ("{newparam_1}"), "I");

A=atoi (lr_eval_string ("{i}"));


Lr_output_message ("newparam_int=%d", a);

Switch (a/100)
{Case 0:lr_output_message ("0=%d", 0);
Case 1:lr_output_message ("1=%d", 1); Break
Case 2:lr_output_message ("2=%d", 2); Break
Case 3:lr_output_message ("3=%d", 3); Break
Case 4:lr_output_message ("4=%d", 4); Break
Case 5:lr_output_message ("5=%d", 5); Break
Case 6:lr_output_message ("6=%d", 6); Break
Case 7:lr_output_message ("7=%d", 7); Break
Case 8:lr_output_message ("8=%d", 8); Break
Case 9:lr_output_message ("9=%d", 9); Break
Default:lr_output_message ("10=%d", 10); Break
}

return 0;
}


Newparam_1 parameter type (prarmeter type) Select VUser ID text is%s

LR parameterization-500 concurrent iterations 1 cycles fetch 5 data

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.