Calling an HTTP Sampler from a JSR223 Sampler in JMeter: A Step-by-Step Guide
Performance Engineering Blog
by Raviteja Gorentla
10h ago
 We can call one sampler (HTTP) from another sampler (JSR223) in JMeter. JMeter provides flexibility to customize and control the flow of your test plan using various components, including JSR223 samplers. To call an HTTP sampler from a JSR223 sampler, you can use the JMeter API within the JSR223 sampler code. Here's an example of how you can achieve this: 1. Add a JSR223 Sampler to your test plan. 2. Choose the appropriate language (e.g., Groovy) for the JSR223 sampler. 3. Write your custom code in the script area of the JSR223 sampler to call the HTTP sampler using the JMeter API. Here ..read more
Visit website
Extracting OTP from SOAP Requests in TrueClient Protocol: A JavaScript Approach
Performance Engineering Blog
by Raviteja Gorentla
2d ago
In the TrueClient protocol, you can leverage JavaScript to extract specific values from a SOAP request, such as a one-time password (OTP). To achieve this, you can use regular expressions or string manipulation techniques. Here's a general approach: 1. Capture the SOAP Request: Start by capturing the SOAP request as an object in TrueClient. 2. Extract the OTP with JavaScript: Use a JavaScript step to work with the captured SOAP request object. Utilize regular expressions or string manipulation methods like `indexOf()` and `substring()` to extract the OTP. 3. Assign OTP to a Parameter: Once ..read more
Visit website
Converting Epoch (Unix) Time to Date/Time Using Excel for Jmeter results
Performance Engineering Blog
by Raviteja Gorentla
2d ago
In the field of performance testing, interpreting raw data often includes converting epoch or UNIX time into a human-readable format. Excel offers a straightforward way to handle this conversion. Here's a simplified guide: A client recently requested response time data with timestamps in an easy-to-read format. I used JMeter to conduct the testing and saved the results in a .jtl file. The steps below explain how to transform UNIX timestamps into a digestible date and time format using Excel. Step 1: Access and Prepare the Data Open the JMeter .jtl log file in a text editor such as Notepad or ..read more
Visit website
How to Convert Postman Collections to JMeter Scripts
Performance Engineering Blog
by Raviteja Gorentla
3d ago
Are you looking to transition your API collection from Postman to Apache JMeter for performance testing? Whether you prefer an online solution or are comfortable with offline setup, we've got you covered. In this guide, we'll explore two methods to seamlessly convert your Postman collections into JMeter scripts. Export Postman Collection: Open Postman and navigate to the collection you want to export. Click on the three-dot menu next to the collection name and select Export. In the export dialog, choose the format v2.1 or v2.0 (either should work, but v2.1 is preferred for the latest colle ..read more
Visit website
Understanding the `vufd` Option in LoadRunner Enterprise (LRE) | LoadRunner vufd
Performance Engineering Blog
by Raviteja Gorentla
5d ago
What Is the `vufd` Option? The `vufd` option, short for Virtual User Functional Data, is a set of parameters and settings in LoadRunner Enterprise that allows users to control how virtual users interact with an application during performance tests. Virtual users (VUs) simulate real users, and the `vufd` option helps manage their functional data, which includes the input and output data for these simulated users.  Importance of `vufd` in Performance Testing: 1. Realistic User Simulation: By managing the functional data for virtual users, the `vufd` option helps simulate realistic user i ..read more
Visit website
How to Save the downloaded file to local system in load runner
Performance Engineering Blog
by Raviteja Gorentla
5d ago
In certain scenarios, downloading files becomes a requirement. Instead of needing to store the files on your local machine for later verification, you may want to measure the transaction time of the download process. To do this, you can capture data from the server response and save it to a file using standard file operations. Just be sure you know the type of file you will be downloading. Here's an example of downloading a `.pdf` file and saving it to your local system: // Declare variables int filePointer; long fileSize; // Create a file for writing filePointer = fopen("c://test_file.pd ..read more
Visit website
Python Script for Dynamically Generating LoadRunner Transaction Names | Automate Transaction Names in LoadRunner
Performance Engineering Blog
by Raviteja Gorentla
6d ago
In performance testing and monitoring, it's crucial to understand how different parts of your application are performing under various conditions. Monitoring transactions around key sections of code, such as API calls and critical functions, helps identify performance bottlenecks and areas for optimization. LoadRunner provides powerful tools for performance testing, including functions like `lr_start_transaction` and `lr_end_transaction` that enable you to measure the execution time of specific code blocks. However, adding these functions manually can be a time-consuming and error-prone proces ..read more
Visit website
BatchJob Performance Testing | Batch Job Performance Testing with JMeter
Performance Engineering Blog
by Raviteja Gorentla
6d ago
Batch job performance testing involves evaluating the efficiency, scalability, and reliability of batch processes. Start by setting clear goals and objectives for the testing, such as response times and throughput rates. Identify key batch jobs for testing based on business impact and usage patterns. Design test scenarios reflecting normal, peak, and edge cases, and prepare test data sets that resemble production data. Automate test execution using tools like Apache JMeter and configure the tests to run batch jobs using appropriate samplers. Monitor key performance metrics such as response ti ..read more
Visit website
How to execute python script in JMeter? | Python script with Apache JMeter
Performance Engineering Blog
by Raviteja Gorentla
1w ago
 You can execute Python scripts in JMeter by using the JSR223 Sampler, which supports scripting languages such as Groovy, JavaScript, and Python. The JSR223 Sampler is part of JMeter's core functionality and can be used to execute scripts within your JMeter test plan. Here's how you can execute a Python script in JMeter using the JSR223 Sampler: 1. Add a Thread Group: First, add a Thread Group to your test plan by right-clicking on the test plan and selecting *Add > Threads (Users) > Thread Group*. Configure the Thread Group settings as per your requirements. 2. Add a JSR223 Sampler ..read more
Visit website
Token Management in JMeter for Repeated Requests
Performance Engineering Blog
by Raviteja Gorentla
1w ago
Apache JMeter is a powerful Java application used for testing the performance and functional behavior of various applications and protocols. One common scenario in testing is the need to generate a token once and then reuse it for multiple requests. Here’s how you can efficiently manage tokens in JMeter: Step 1: Generate and Extract Token First, generate the token in one Thread Group and store it using a Json Extractor. Ensure to configure the request with necessary parameters such as host, path, grant-type, client-id, and client-secret. Then, define the JSON Path expressions to extract the t ..read more
Visit website

Follow Performance Engineering Blog on FeedSpot

Continue with Google
Continue with Apple
OR