Unanswered question

update the declared variable

I have declared a variable and I wanted to update that variable at later point of execution because that variable value is used in a loop.Is there a possibility to update the declared variable.?

Raj N.
Raj N.

Raj N.

Level
1
110 / 750
points

Answers

Raj N.
Raj N.

Raj N.

Level
1
110 / 750
points

I'm not sure I can use variable modifier. Let me explain the scenario where I got struck so that it would be better in assisting.
I have a set of transactions to be executed in loop but the number of times the loop to iterate is achieved after couple of steps but loop has to iterate from step 1. So in actual application the below structure is followed to achieve.
int count = 2;
while(count>1){
Step 1
Step 2
Step 3
WebService call - count is returned as a response.
count = response.getCount;
if(count == 0){
break the loop;
}
Step 4
Step 5
if(count == 1){
do some thing;
}
}
I need to replicate the same in Neoload, please help me.