If you need to run a JMeter Load Test and it’s a burden to download Apache JMeter locally on your machine, open it and manually create your JMeter test file, now there is a much easier way to record browser interactions with JMeter.
The LoadFocus | JMeter Load Testing in the Cloud Chrome Extension for recording JMeter test script files (.JMX files) from LoadFocus is a free tool to easily record and run load tests in the cloud. Basically it allows to run JMeter tests without having JMeter installed, for free, everything with just a few clicks.
Chrome Extension supports:
- downloading locally or uploading the test files to LoadFocus
- running a load test in the cloud with thousands of users from multiple locations
It’s very easy to get started with recording JMeter tests with JMeter Load Testing Chrome extension from LoadFocus.
Let’s have a look at the steps in order to record and generate a JMeter test file.
- Go to Google App Store and Add to Chrome the “LoadFocus | JMeter Load Testing in the Cloud”
- Sign In into your LoadFocus account or create an account for free
Record JMeter test
- Click the “Record JMeter test” button and the “Recording” text should be visible in the top right corner of your browser, in the extension, waiting for the first request.
- Start your test workflow by loading your website (i.e. enter https://example.com in the browser’s URL bar)
- Navigate to any webpage you want to be present in your JMeter test (requests are recorded automatically in your test)
- Once finished you can stop the JMeter Recording (the extension icon should update to Done)
If you want to start again just click the “X” button next to the test name or click the “Start again” button and your current test will be discarded and you can start recording another JMeter performance test.
Edit the Recorded JMeter test
Click the Edit button next to the test name to edit the recorded JMeter test.
- You can edit the automatically generated test name (i.e. Test_Rec_Dec_17_2020_6_37_22_AM)
- You can expand and change the order of the requests by clicking and dragging up or down on the left icon of a request
- Click on the context menu for a request to Insert, Duplicate or Remove the selected request
- Click on the request and expand by click on the left arrow to:
- change anything from the name of the label, URL, method, request type, headers etc.
- Export the amended test to JMX or JSON by clicking the top buttons Export JMX and Export JSON
Download the Recorded JMeter test (.JMX file)
- Click the “Download JMeter test” button
- Select which domains you want to include in your .JMX file (this option is visible only if your test has recorded requests coming from multiple domains)
- Download locally the generate JMeter test script file (.JMX file)
Run Recorded JMeter test in the cloud
To run the JMeter test in the cloud, you’ll need an account with LoadFocus, see plans here.
- Click the Run JMeter Test button and this will automatically start running the generated load test in the cloud using JMeter Cloud Load Testing Service.
- Or you can click the “Upload JMeter Test” button and upload the generated JMX file
- Select number of Virtual Users, Duration, Ramp Up Period and Ramp Up Steps
- Click Execute and view live-results from the automatically generated load test
As you can see, we’ve managed to generate a JMeter load test, edited the recorded requests without any need to install JMeter on our local machine. This comes in very handy when you need to generate a load test based on predefined workflows.
Of course you can download the JMeter recorded test script file locally and start updating your test with custom headers, load configuration from CSV files and add different samplers to your test.
With LoadFocus you can upload a CSV configuration file along with your JMX file.
View Previous JMeter Load Tests Results
In order to view the previous JMeter load test just click the “View Previous Test Runs” button and you can see a list with your previous test runs.
To go in-depth, click on the “View details” button and a short snapshot of the test will be visible, with an option to “View Details” which will take you to the main website where you can have a better understanding of the performance results, with interactive charts, errors and log files to inspect and download locally.
Hope this Chrome Extension is helpful and subscribe below in order to receive new product updates.
LoadFocus is a cloud Performance, load and stress testing tool which provides the infrastructure and the ability to run all these tests with thousands of concurrent users, from multiple cloud locations, in less than a few minutes, keep history of the results, compare different runs to inspect performance improvements or performance degradation.