Currently, XMeter supports two main access methods:
Install and enter the XMeter application through QingCloud Application Center, and your QingCloud user name will automatically become the registered user name of XMeter.
Visit the official website of XMeter directly, register and use it.
Either way, after entering the XMeter system, you can experience the freshness and smoothness brought by the performance test cloud service in just a few simple operations:) What are you waiting for, follow me through the following concise tutorial , You can also become a performance tester!
XMeter accepts standard JMeter test scripts, dynamically creates required test resources in the cloud environment, and simulates hundreds of thousands to millions of concurrent users accessing the system under test. Therefore, before starting the test, you need to make sure that the system under test is accessible and there is a JMeter script that has passed the local debugging. what? You Haven’t used JMeter? It’s okay, we can read this article as an introductory reference. If you are an impatient, then get started directly from the simplest script , and learn JMeter in depth later (there are a lot of information about JMeter on the Internet, which is easy to get. You can also contact XMeter technical support team if you encounter problems. We are very happy to help you)
Okay, get back to business.
The first step is to create a test case¶
Select “Test Case” -> “Add Test Case”, click the virtual box in the pop-up dialog box, and select the JMeter test script (usually a .jmx file) to be uploaded. You can also directly drag the file to the virtual box here. After selecting the file, click the “Upload Test Case” button. Currently it supports HTTP and MQTT for the test type . In this tutorial, we will take HTTP as an example.
[Note 1] If you have not prepared your own jmx script, you can get a script sample from here , This script can be modified in the JMeter tool to point to the real server URL under test.
[Note 2] Please set an appropriate number of test cycles. If the test time is too short, meaningful performance charts and reports may not be obtained. Generally, you can set a larger number of cycles in the JMeter thread group, or simply set it to “forever”. Don’t worry, XMeter will faithfully execute the number of cycles you set, or end this execution when the test duration reaches.
Save the script and upload it to XMeter. It will appear in the test case list.
[Note 3] If your test contains test data such as csv and supporting files such as beanshell scripts, please package them together with the jmx file into a zip file and upload it in the same way.
The second step is to initiate test execution¶
Click the “green triangle” button in the operation bar on the right of the test case, set the relevant parameters of this execution in the pop-up dialog box, and click “Submit Test”.
XMeter prepares the resources (virtual machine, stress test container, network bandwidth adjustment, etc.) required for the test from the cloud, and the test officially starts after a few to ten seconds. Data related to test execution is updated in the chart on the page in real time.
The third step is to analyze the test results¶
At the end of the test, XMeter destroys the dynamically created test resource. The test execution results are saved. You can click the link from the “Test History” or “Test Cases” list to view it at any time, and add the result information to your actual test report as appropriate.
The “Test Information” tab contains the overall information of this test.
On the “Test Log” tab, you can download the execution log and the original jmx file. The log includes the jmx running log in each test container, the HTTP request and response data that sample user is tracking, and the request and server response when an error occurs. With these logs, you can make accurate analysis of errors in performance and stress testing, and put forward problem reports and suggestions for improvement.