【文章內(nèi)容簡(jiǎn)介】
ion of the script into which VuGen will insert the recorded functions. ? The vuser_init amp。 vuser_end are executed only once. ? The Actions section is repeated during multiple iterations of the Vuser script. 17 Mercury Tools LR – VuGen Vuser script structure A recorded LoadRunner script: 18 Mercury Tools LR – VuGen Recording options ? Recording options specify: ? The information to record. ? Browser/client with which to record. ? Designate the content of your scripts. ? Some of the recording options available are: ? Recording Level ? Correlation 19 Mercury Tools LR – VuGen Recording options ? Recording Level – what information to record and which functions to use when generating script. Available levels: – HTML – based script: generates a step for each HTML user action. – URL – based script: captures all HTTP requests sent to the server as a result of user actions. 20 Mercury Tools LR – VuGen Recording options Setting the Recording Level: 21 Mercury Tools LR – VuGen Runtime settings ? Runtime settings define the way in which a script runs. ? Stored in the in the Vuser script directory. ? Applied to Vusers when the script is executed using VuGen or the Controller. ? Configuring runtime settings enable you to emulate different kinds of user activity. 22 Mercury Tools LR – VuGen Runtime settings ? General runtime settings include: ? Run Logic – Number of times the action block of the script executes (iterations) ? Pacing – the time between iterations. ? Log – how much information is logged to the output. ? Think time – emulates the time a real user waits between actions. 23 Mercury Tools LR – VuGen Runtime settings Setting the Run Logic: 24 Mercury Tools LR – VuGen Runtime settings Setting the Pacing: 25 Mercury Tools LR – VuGen Runtime settings Setting the Think time: 26 Mercury Tools LR – VuGen Transactions ? Transactions are defined to measure the performance of the server. ? Each transaction measures the time it takes for the server to respond to specified Vuser requests. ? The Controller measures the time taken to perform each transaction during the execution of a performance test. 27 Mercury Tools LR – VuGen Rendezvous points ? Rendezvous points are used to synchronize Vusers to perform a task at exa