Tuesday, July 4, 2023

How to Integrate Azure Devops with Load runner?

The integration of Azure DevOps with LoadRunner offers several benefits for software development and testing teams. Here are some key uses and advantages of this integration:


Automated Performance Testing: Azure DevOps allows you to incorporate LoadRunner tests into your CI/CD pipelines, enabling automated performance testing as part of your development process. This ensures that performance testing is executed consistently and regularly, helping identify and address performance issues early in the development lifecycle.

Seamless Collaboration: By integrating LoadRunner with Azure DevOps, you can centralize your performance testing efforts within the same platform used for project management, version control, and continuous integration. This promotes seamless collaboration among development, testing, and operations teams, streamlining communication and enhancing efficiency.

Version Control and Traceability: Azure DevOps provides version control capabilities, allowing you to track changes to your LoadRunner test scripts and configurations. This ensures traceability and provides a historical record of test modifications, facilitating collaboration and troubleshooting.

Test Reporting and Analytics: Azure DevOps offers powerful reporting and analytics features, which can be leveraged to gain insights into performance test results. You can visualize and analyze test metrics, identify performance trends, and generate reports to share with stakeholders. This helps in making data-driven decisions and identifying areas for performance optimization.

Continuous Monitoring and Alerting: Azure DevOps integration allows you to incorporate LoadRunner tests into your continuous monitoring and alerting systems. You can set up thresholds and notifications based on performance test results, enabling proactive monitoring of performance degradation or anomalies in production environments.

Scalability and Flexibility: Azure DevOps provides a scalable and flexible infrastructure to execute LoadRunner tests. You can leverage Azure cloud resources to spin up test environments on-demand, reducing the need for maintaining dedicated infrastructure and improving resource utilization.

How to integrate Azure DevOps with LoadRunner:


Set up LoadRunner in Azure DevOps:

1. Ensure you have an active Azure DevOps account.
2. Create a new project or select an existing project in Azure DevOps.
3. Navigate to the project settings and select the "Service connections" option.
4. Create a new service connection of type "Generic" or "Others".
5. Provide the necessary details such as the connection name, URL, and authentication method (username/password or token).
6. Save the service connection.

Install LoadRunner Extension in Azure DevOps:




1. In your Azure DevOps project, go to the "Extensions" section.
2. Search for the "LoadRunner" extension and install it.
3. Follow the instructions to complete the installation.


Configure LoadRunner tasks in Azure DevOps pipeline:


1. Create a new or edit an existing Azure DevOps pipeline for your LoadRunner tests.
2. Add a new task to your pipeline.
3. Search for the "LoadRunner" task and add it to your pipeline.
4. Configure the LoadRunner task with the necessary parameters, such as the path to your LoadRunner test script, test settings, and other options.
5. Save and commit your pipeline changes.

Run the LoadRunner tests in Azure DevOps:

1. Trigger a build or release pipeline in Azure DevOps that includes the LoadRunner task.
2. Azure DevOps will execute the LoadRunner task, which will run your LoadRunner tests based on the configured parameters.
3. Monitor the test execution progress and results in Azure DevOps.


That's it, Happy Testing!

Monday, July 3, 2023

How to use .pem and .key certificate files in vugen load runner scripting | How to import .pem & .Key certificates in vugen

To use ".pem" and ".key" certificate files in LoadRunner VuGen scripting, you can follow these steps:


1. Place the ".pem" and ".key" files in a location accessible to your VuGen script, such as the script folder or a shared location.

2. Open your VuGen script and navigate to the appropriate section where you need to use the certificate.

3. In the script editor, add the following lines of code to load and use the certificate files:


web_set_certificate_ex("<pem_file_path>", "<key_file_path>", "cert_password");

Replace "<pem_file_path>" with the path to your ".pem" file and "<key_file_path>" with the path to your ".key" file. If the certificate is password-protected, replace "cert_password" with the actual password.

4. Save your script.

By using the 'web_set_certificate_ex' function, you instruct VuGen to load the specified ".pem' and ".key" files and use them for SSL/TLS communication during script execution.

Make sure the certificate files are valid and properly formatted. If there are any issues with the certificate files, the script may fail to execute or encounter SSL/TLS errors.


Method 2:

1. Launch VuGen: Open LoadRunner VuGen and create a new script or open an existing one.

2. Recording Options: In the VuGen toolbar, click on "Recording Options" to open the recording settings dialog box.

3. Proxy Recording: In the recording settings dialog box, select the "Proxy" tab. Enable the "Enable proxy recording" option if it is not already enabled.

4. Certificate Settings: Click on the "Certificate" button in the recording settings dialog box. This will open the certificate settings dialog box.

5. Import Certificates: In the certificate settings dialog box, click on the "Import" button to import the .pem and .key certificates. Browse to the location where the certificates are stored and select the appropriate files.

6. Verify Certificates: After importing the certificates, verify that they appear in the certificate list in the settings dialog box. Make sure that the certificates are associated with the correct domains or URLs that you want to record.

7. Apply and Close: Click on the "OK" button to apply the certificate settings and close the certificate settings dialog box.

8. Save Recording Options: Back in the recording settings dialog box, click on the "OK" button to save the recording options.

9. Start Recording: Start the recording process by clicking on the "Start Recording" button in the VuGen toolbar. Make sure to set the browser's proxy settings to the address and port specified in the recording options.

10. Proceed with Recording: Perform the actions that you want to record in the web application or system under test. VuGen will capture the network traffic, including the HTTPS requests and responses.During the recording process, VuGen will use the imported .pem and .key certificates to handle SSL/TLS connections and decrypt the HTTPS traffic. This allows VuGen to record and analyze the encrypted data exchanged between the client and the server.