JMeter of test tools (use Badboy to record scripts)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.