Jmeter_003_jmeter Learning notes-recording scripts

Source: Internet
Author: User

People may not have a very clear concept of script recording, to say the truth, in the beginning, I do not quite understand what this is for. Later, after consulting a lot of information, finally began to understand the beauty of this.

For example, we want to test the function of a data entry. If we have to log on this site every time to enter data testing, first, this way is too slow, inconvenient operation, in addition, the workload is relatively large, but, if we have a tool, we can record the whole process of data entry, and then we can just define the good one file, It stores the information we want to enter, so that we run a little bit, it will run, and then according to the contents of our imagination to fill in, the results returned, so that the more convenient. JMeter also has the ability to record scripts, but, it is troublesome, so we use another tool Badboy to implement this script recording function, and then import the recorded script into the JMeter on the line. Let's start by introducing the Badboy tool.

The official website of Badboy is http://www.badboy.com.au/. Here is an introduction to Badboy.

Badboy is a powerful tool designed to aid in testing and development of complex dynamic applications. Badboy makes web testing and development easier with dozens of features including a simple yet comprehensive capture/repla Y interface, powerful load testing support, detailed reports, graphs and much more!

Badboy is very good, you as a general developer use, it will not charge you, but there are restrictions.

The intention of Badboy software is that Badboy should was freely accessible to many of its users. Badboy software earnestly hopes that Badboy becomes a useful tool and that the world at large are able to benefit from usin G it.

Have said that, we don't need to pay the bills! Hence We ask businesses that is making or attempting to make a profit by using Badboy to pay a small license fee.

· For-profit organizations using Badboy with more than five users is required to purchase licenses.

After downloading the installation package on the official website, the installation is complete and you are ready to use it.

Let's demonstrate the process of recording a script with Badboy.

First open the Badboy interface.

In the menu bar where you write the address you want to record, here I have written an application as a test.

Then click Enter, fill in the application of the information you want to fill in, click OK.

Then export it as a jmeter script. In this way, we record a complete process of registering the information, then we start jmeter, and then we open the script with JMeter.

The interface after opening is as follows:

At this point, you will notice that the imported script has added many widgets to our default.

In order to be able to see the results of the imported plan execution clearly, we need to add another listener here, so that we can see the results of the returned image later.

After the view result tree has been added, when we click Run, and then run, click View result, we can now see the following results

A total of three HTTP requests sent, each request has a corresponding result, when viewed, very convenient. In fact, there are a lot of parts in it that we don't have in very detail

Explain its function, I believe that after this more intuitive demonstration, we have a more intuitive understanding of the JMeter test framework, then, we will gradually introduce to you the function of the jmeter each function parts.

Jmeter_003_jmeter Learning notes-recording 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.