Jump to content
WAPT Forum
vprashanth23

How to reset the loop variables after the loop?

Recommended Posts

Hi Team,

 

I trying to create a 3 loop situation where each loop iterates 5 times and printing a number which is concatenation of iteration number for 3 loops.

 I expecting the output to be as below

000

001

002

003

004

010

011

012

013

014

…..

…..

440

441

442

443

444

 

But Output seen as below

 

000

001

002

003

004

015

016

017

018

019

…..

…..

 

 I tried to have a java script operator after the loop and set it to zero.But the inner loop counter is not resetting after the loop over it changed its iteration count.Do you know why and how I can achieve that way I needed?I have emailed my profile to support@loadtestingtool.com.Any help is really appreciated.Thanks

 

loop1.PNG

Share this post


Link to post
Share on other sites

Hi

In this case you can use $LOrder function with different values for different loop iterations.

 

LOrder.png

 

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...