Download presentation
Presentation is loading. Please wait.
Published byVivian Carroll Modified over 8 years ago
1
IV&VS Capabilities
2
2 V IRTUAL USER GENERATOR
3
3 V IRTUAL U SER T ECHNOLOGY AND ADVANTAGES Simulates a real user Requires less resources – machines and people Greater control over test execution Can synchronize actions performed by users Collect and analyze results in a better way Vusers can communicate directly with a server by executing calls to the server API-without relying on client software Capture a business transaction by recording user actions performed Monitors the communication between the application and the server Generates the required function calls Inserts the generated function calls into a Vuser script
4
4 R ECORDING OPTIONS IN L OADRUNNER Here we can primarily: View the selected protocol(s) and scripting language Choose the recording mode HTML URL Set think time options Enable auto correlation To access the recording options, select tools recording options from the main menu
5
5 R ECORDING A SCRIPT Choose Start All Programs LoadRunner Applications Virtual User Generator Click on New Vuser Select the new Virtual User from the list of protocols e.g. Web (HTTP/HTML) Click OK The required header files are automatically included in the script Click on the record button and record a sample business flow
6
6 C ORRELATION Correlation is the technique of capturing data from the server that dynamically change during each run of the script Network Client Req1 Req2 Resp1 for Req1 SessionID_Resp1 = 1111 Resp2 for Req2 SessionID_Resp2 = 2222 Web Server There are 2 types of correlations: Automatic correlation Manual Correlation
7
7 M ANUAL C ORRELATION Manual Correlation is performed by the performance tester manually by inserting the correlation function Determine the value to capture Find the right and left boundaries of the value to capture Find which occurrence of the text boundaries should be used Add a web_reg_save_param function to the script, above the request whose response contains the value to be correlated Add the parameter name, left boundary, right boundary, and occurrence to the function Parameterize the dynamic value in the script every time it occurs Verify correct execution by replaying the script
8
8 A UTOMATIC C ORRELATION Automatic Correlation is performed automatically by the tool. Auto correlation can be enabled through the recording options as shown in the figure
9
9 P ARAMETERIZATION Parameter is a placeholder which replaces a recorded value in a Vuser script with a known value e.g. user ids, passwords etc. At run time, a value from an external source, e.g..csv or.dat file, is substituted for the parameter.
10
10 P ARAMETERIZATION PROCESS Right click on the data to be parameterized in the script Select “Replace with a Parameter” The Select or Create Parameter dialog box opens. Type a suitable Parameter Name Select a Parameter Type and click Ok Right-click the parameter name in the script and select “Replace More Occurrences” to replace all other occurrences of that data.
11
11 T RANSACTION Loadrunner Transaction measures the time it takes for the server to respond to specified Vuser requests Steps to insert transactions: Click the Start Transaction button after selecting the starting point for measurement Click the End Transaction button after selecting the end point for measurement. Select Transaction Status (optional) – LR_AUTO, LR_PASS, LR_FAIL Note: LoadRunner Transactions can also be inserted during recording
12
12 R ENDEZVOUS POINT Rendezvous point is the point of intersection of Vusers during load test. Using rendezvous point we can synchronize Vusers to perform a task at exactly the same moment. Steps to insert rendezvous point: While recording a Vuser script, click the Rendezvous button on the Recording toolbar. The Rendezvous dialog box opens. Type a name for the rendezvous point in the Rendezvous Name box
13
13 T EXT C HECKS Text checks allow us to searches for a text string on a web page which would act as check to indicate the occurrence of the expected web page. You can add the text check either during or after recording. To add a text check during recording: Click the Insert text check button on the recording toolbar. VuGen adds a web_reg_find function to the script. To add a text check after recording: Go to the snapshot of the step whose text you want to check. In the snapshot, select the text you want to verify. Choose Add a Text Check (web_reg_find) from the right-click menu, type in the text to be verified and click on OK.
14
14 R UN TIME SETTINGS Here we can set: Number of iterations for script execution Think time Pacing between iterations Browser to run the script Proxy settings Log preferences Vuser execution type, process/thread Time outs
15
15 S CRIPT REPLAY Steps to replay a script in VuGen: Select Vuser > Run or click button Click the Output window’s Replay Log tab for a log of all of the actions of the Vuser To view a summary of the run- time data and the parameters as they are being used, see the Output window’s Runtime Data tab Observe the runtime viewer to compare the actual results with the expected results
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.