As I said earlier with the Badboy tool, Badboy is a test script that can record jmeter, eliminating the hassle of designing your own test Cases
JMeter is mainly a performance testing tool, not only in the Web and HTTP, now extended a lot of features can be tested on the JMeter
Here we use the script based on the Badboy recording script
The first is to download the JMeter tool, which can be downloaded on the following website:
http://jmeter.apache.org/download_jmeter.cgi
Download directly after the decompression can be used, directly execute the following script to start JMeter
Apache-jmeter-3.1\bin\jmeter.bat
The post-boot interface is as follows:
Looks more concise, here we click "Open", select the recorded script, and then open, you can import the script content into the JMeter inside:
Post-Import Interface:
The topmost red box is something defined, such as the checktest variable previously defined in Badboy:
The point here is that the variable is just a single, unlike a badboy that can be a list to loop. If necessary, JMeter can also be customized
Step 1 Below is some of the steps and assertions, we click on the assertion to see that there are more things in front of the variable, these must be deleted, or the assertion will fail:
After deletion, we also need to add a "listener" for use case execution. You can select the listener by right-clicking the add-as listener on the thread Group:
Commonly used as in the red box, here we select "Look at the result tree", add later, do click-to-start to execute the use case, you can see the results in the result tree:
We see all green, to prove that the assertion succeeds ~, we change the value of CheckTest to "news 23", and then take a look at the results:
We've seen all three of them fail, and the right side will see a match "news 23" failure.
Here's how to test on JMeter using the Badboy recording script ~
If you have any questions, please send an email to: [Email protected]
JMeter of test tools (use Badboy to record scripts)