LoadRunner in the collection point of the detailed

Source: Internet
Author: User

When you perform a load test, you need to simulate heavy user loads in your system. To do this, you need to synchronize the VUser to perform the task at exactly the same time. Configure multiple VUser to act concurrently by creating a collection point. When a vuser arrives at the rendezvous point, it waits, knowing that all vuser participating in the collection reach the rendezvous point. When the specified number of VUser arrives, the VUser is released.

To insert a collection point in the VUser script, you can specify the collection location. When VUser executes the script and encounters the collection point, the script execution pauses and VUser waits for permission from controller to continue. When VUser is freed from the collection, it executes the next task in the script.

Note: The collection point is valid only in the Action section and not in the Init or end section.

You can insert a collection point in the following ways:

➤ to insert a collection point when you record, click the collection button on the Recording toolbar, and then in the dialog box

Enter a name (case-insensitive) in the.

➤ to insert a collection point after recording, select Insert > Collection, and then enter a name in the dialog box (no area

Case-insensitive).

After you insert the collection point, Vugen inserts the lr_rendezvous function into the VUser script. For example, the following function defines a collection point named "Login":

Lr_rendezvous ("login");

Using Controller, you can affect the server load level by selecting the following:

Which collection points will be activated during the ➤ scenario run

➤ how many VUser each collection will attend

For example, to test a bank server, you can create a scenario that contains two collection points. The first set ensures that 1000 vuser are deposited in cash at the same time. The second set ensures that the other 1000 VUser withdraw cash at the same time.

How to set up a collection in a scene.

1. Necessary conditions

To set up a collection in a scene, the scene must contain a vuser script that has been inserted into the collection point. When you add a vuser group or script to a scene, LoadRunner scans the included script for the name of the collection point and then adds it to the list of collection points. By selecting a scene > collection, you can view a list of all the collection points in the scene.

Note : In a target-oriented scenario, disable the collection point of the script.

2, set the simulated user load level

Select the collection point to participate in the scene, and the number of vuser participating in each collection. You can temporarily disable the collection and exclude it from the scene. You can disable a collection point for all vuser in a scene, or you can temporarily prevent a specific vuser from participating in a collection. You can adjust the load level of the server by disabling and enabling the collection.




In the Rendezvousinformation dialog box, do the following for each collection:3, set the properties of the collection policy

1 Select the collection, and then click the Policy button.

2 in the "Policy" dialog box, set policy properties as follows:

➤ released. How many VUser will be released from the collection at a time.

➤ timeout. Controller how long to wait before releasing VUser from the collection.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.