Can anyone tell how you can arrange your script transactions for a steady state test so that each users logs on performs all transactions and then log off and remain logged off even if the simulation time remains.
You are probably better off using a queueing workload to do this. This will run your transactions just once. To run them in order make sure the setting Choose transactions randomly is unchecked (it is by bdefault).
Let us say the scenario which you want to do performance test has 4 transactions (login , search for something , order and logout ). For this script can look like as follows
TInit : begin;
TLogin : 1;
TSearch : 1;
TOrder : 1;
TLogout : 1;
In the TInit load webbrowser
In TLogin , TSearch , TOrder and TLogout do required activities.
Add statement "Halt" as end statemet for TLogout transcation. After executing all the transactions this virtual user will be halted, even though the simulation does not complete. Time statistics for TLogout will not be collected because of "Halt" statement. Hence use custom timers in the TLogout transcation. Hope this will help you.
If you are intrested in the logout transaction time,too. Remove the halt function call from Logout and add a fifth transaction THalt with only the halt statement.
I'm interested in queue mode and want to learn more about dcluser and transaction in scripting. I have 3 scripts: 1)loginOnly (login to server only), 2) retrieve AppList (login and retrieve appliataion list and logout) and 3)reportIncident (login, retrieve App List and then report some incidents, logout). How should I use dcluser and transaction? Do i have to change my 3 scripts to one sciprt with 3 transactions? Or some other ways to do it?
I want to use queue mode test the system in a slower rate to pump data into the server (more realistic way). Any suggestion welcome. Thanks.