Tuesday, July 25, 2023

How to insert Rendezvous point in True Client Script in Load runner

In TruClient, the Rendezvous point is a synchronization point that allows you to control the flow of the script and make it wait for a specific event or condition before proceeding further. Rendezvous points are helpful when you want to simulate multiple users or when you need to ensure that a specific action occurs at the same time for all virtual users.

To insert a Rendezvous point in a TruClient script, follow these steps:

1. Open the TruClient script in TruClient IDE (VuGen).

2. Identify the step where you want to insert the Rendezvous point. Typically, you place the Rendezvous point before a critical action or during a specific synchronization point.

3. In the TruClient Sidebar, click on the "Step" menu to display the list of available step types.

4. Look for the "Rendezvous" step type, and click on it to add it to your script.

5. After adding the Rendezvous step, a dialog box will appear. You can set a name for the Rendezvous point to help identify it in the script.

6. Configure the synchronization settings for the Rendezvous point. You can choose between "Wait for other Vusers" or "Wait for specific timer." If you select "Wait for other Vusers," it will wait until all virtual users reach the Rendezvous point before continuing. If you choose "Wait for specific timer," you can set a timer to wait for a specific duration before proceeding.

7. Save your script.

That's it! The Rendezvous point is now inserted into your TruClient script. When running multiple virtual users, they will all pause at the Rendezvous point until the conditions you've set are met, ensuring they proceed together.

Monday, July 10, 2023

How to Convert Postman Collection to Apache JMeter (JMX)?

To convert a Postman collection to Apache JMeter's JMX (JMeter Test Plan) format, you can follow these steps:

Step 1: Export the Postman Collection
1. Open Postman and ensure you have the collection you want to convert.
2. Right-click on the collection and select "Export".
3. Choose the format as "Collection v2.1 (JSON)" and save the file.

Step 2: Install the Postman Collection Converter Plugin (Optional)
If you prefer using a plugin to convert the collection, you can install the "Postman Collection Converter" plugin in JMeter.

1. Open JMeter and go to "Options" in the top menu.
2. Click on "Plugins Manager".
3. In the "Available Plugins" tab, search for "Postman Collection Converter".
4. Select the plugin and click on "Apply Changes and Restart JMeter".
5. JMeter will restart with the plugin installed.

Step 3: Convert the Postman Collection to JMX (JMeter Test Plan)
There are two methods to convert the Postman Collection to JMX in JMeter: using the plugin or using a manual process.

Method 1: Using the Postman Collection Converter Plugin
1. Open JMeter.
2. Go to "File" in the top menu and select "Postman Collection Converter".
3. Click on "Choose File" and select the Postman Collection JSON file you exported.
4. Click on "Convert" to start the conversion process.
5. Once the conversion is complete, save the JMX file with the desired name and location.

Method 2: Manual Conversion Process
1. Open JMeter.
2. Create a new Test Plan by going to "File" > "Templates" > "Test Plan".
3. In the Test Plan, right-click on "Test Plan" in the tree view and select "Add" > "Threads (Users)" > "Thread Group".
4. Configure the Thread Group properties according to your requirements (e.g., number of threads, ramp-up time, loop count).
5. Right-click on the Thread Group and select "Add" > "Sampler" > "HTTP Request".
6. Configure the HTTP Request sampler based on the first request in your Postman Collection. Set the URL, method, headers, and body parameters accordingly.
7. Repeat steps 5 and 6 for each request in your Postman Collection, adding more HTTP Request samplers to the Thread Group.
8. If there are any additional elements in your Postman Collection, such as assertions or variables, add them to the corresponding JMeter elements (e.g., Assertions, Variables, etc.).
9. Save the JMX file with the desired name and location.