Which workload should I select for waiting in line to login and placing a order in the same time?
My customer want to waiting in line to login and placing a order in the same time. I edit a script, But I don't know choose which workload for this. I choose All day workload before, but this workload make script replay many time. How can I let my script to do only one time? Queuing workload can't let Vusers in steady number (quantity of all Vusers) .
And how to I wait other Vusers login? Just use GlobalWaitFor("All", ALL_USERS); after I login?
The login in script used WebPageSubmit function.
0 Vusers -> Login -> Wait for all Vusers login -> Placing Order(Loop for 1 min) -> Logout
RE: Which workload should I select for waiting in line to login and placing a order in the same time?
You have a few options.
You could put your login functions into the TInit transaction which only executes once per load test, and the logout functions within TEnd. You could even change the names of those transactions to TLogin and TLogout.
Alternatively you could use a Queuing workload with zero (0) simulation time. That will execute the whole test only once.
Yes, GlobalWaitFor should be appropriate for your needs if you want all users to wait until the same moment.
Hope this helps.