LoadRunner Practitioners Forum
Showing results for 
Search instead for 
Do you mean 

Action Block - Help Required.

Valued Contributor

Action Block - Help Required.

[ Edited ]

Hello there!,

          I am looking of some help in action block of vugen scripts.

 

Below is my scene. I have,

 

Vuser_init

Action1

Action2 - set of business flow

Action3 - set of business flow

Action4 - set of business flow

Vuser_end

 

Now i would like call the Action2 and Action3 in Action1 and after running the Action1, Action2 and Action3 should not execute again.

 

My Action1 shlould lool like this

 

Action1()

{

//later on some looping condition should be implemented b/w Action 2&3

Action2();

Action3();

 

Action4();

 

return (0);

}

 

Please help me out to solve this scene. 

Thanks,
Nan Raso
8 REPLIES
HPE Expert

Re: Action Block - Help Required.

Hi Nan!

 

You can use Run Logic node in run Time settings dialog

Valued Contributor

Re: Action Block - Help Required.

Hello friend !, thanks for your reply.

 

But i really dono how can i achieve my scene by using your suggestion. Blocks creation is also not useful.

Can you please explain the same.

Thanks,
Nan Raso
Regular Advisor

Re: Action Block - Help Required.

did you mean this

Regular Advisor

Re: Action Block - Help Required.

[ Edited ]

you can try this, I have set action 2,3 and 4 to run 3 times after action 1

HPE Expert

Re: Action Block - Help Required.

My suggestion below. Does it solve the problem?

Highlighted
Valued Contributor

Re: Action Block - Help Required.

[ Edited ]

Hello Arjun, 

Thanks for your reply.

 

Ref: to your first post.

Thats rgt. That wat i looking for?? do you have any idea on this???

 

Ref: to your second post.

It looks siutable. I have few small dbouts here.

1. Does the block create is visible in script view?

2. For example, i have given 1 iteration in Number of Iteration field, does the sript will run Action1 for 1 time and Action2&3 - 3 time???

Thanks,
Nan Raso
Regular Advisor

Re: Action Block - Help Required.

[ Edited ]

That is ture, see the snapShot,

Regular Advisor

Re: Action Block - Help Required.

[ Edited ]

 

 

you can also do this....