tags:

views:

607

answers:

2

there is init, action and end functions. is it possible to have multiple action method? i want it to run on a separate execution thread.

+1  A: 

Yes, you can have multiple actions. While recording you can specify a new action from the VUGen toolbar. You can also just record everything to "Action", then edit the script and create your own actions and paste code there.

Patrick Cuff
Of course, you also can add actions anytime by rightclicking into the actions list and selecting "create new action" (might be disabled for some protocols if I remember correctly).
TheBlastOne
+1  A: 

Adding actions in VuGen is easy, but it does not allow you to execute them in parallel within the same vuser. If you want to execute things in parallel you need to run more than one vuser on the controller for the script.

Instantiating a new thread within a vuser is very difficult and requires you to use the Win API for creating threads - definitely not recommended.

If you want 2 different actions to execute in parallel use multiple scripts instead. You will not be able to share variables or data between the vusers thou.

K.Sandell
The only way to establish some kind of communication between VUsers ist by using rendezvous points using lr_rendezvous etc (aside from systems programm using a DLL which uses the Windows API, as K. Sandell noted).
TheBlastOne