JMeter Script Recording Method (i)--use Badboy to record and jmeter to bring your own proxy server recording separately

Source: Internet
Author: User

JMeter recording method is divided into three kinds, namely: using Badboy recording, jmeter with the proxy server recording and manual recording, the first two methods of recording are introduced today.

Badboy Recording

Badboy is a dynamic application testing tool developed in C + + with powerful screen recording and playback capabilities while providing graphical results analysis. Badboy recorded scripts can be exported to a. jmx suffix format, and JMX is the format saved by the JMeter script, essentially

A file in XML format.

There are two ways to record Badboy: One is the request method, the other is the navigation mode, the ' N ' button in the toolbar is switched, the request method is to simulate the browser sending form information to the server, each resource will be sent as a request; navigation Party

Type is to record the user Mouse action action, playback when the simulation interface click, similar to the UI Automation test tool selenium.

Because of the jmeter of the script, we use the request method to record the generated JMX format script.

badboy:http://www.badboy.com.au/, the installation method is very simple, because it is an EXE program, double-click installation.

The following interface appears when the installation is successfully opened:

Recording with Badboy is simple, start with a new test Suite, enter the URL you want to record in the box, and click the Green button on the right:

Click on the green button will have the following page, and record the login operation, do the corresponding action will be recorded:

When the recording is complete, the following interface appears, and clicking the red button stops:

To export the file to JMeter, do the following:

Save to a folder you have built:

Then open it in the JMeter software with the following actions:

Once added, the following results will appear, which is the recorded script.

Script recording succeeds, but does not mean that the script is operational, but also requires debugging of the script, such as associations, request header settings, and so on.

JMeter self-signed proxy server recording

It's the principle: JMeter set as a proxy server, similar to the Fiddler-like capture package to complete the recording of the script

Can be divided into the following steps:

1. JMeter Create a new thread group-recording controller

2, set JMeter Agent Workbench-Non-test components-Proxy Server

3, port 8080, the target controller select Recording controller, check the Allow regular expression and add in exclusion mode. *\. (Bmp|css|js|gif|ico|jp?g|png|swf|woff)

4. Start the proxy server

5. Set proxy 127.0.0.1 in IE browser 8080

6, using Google Browser to operate the site, there will be automatic recording effect

Let's look at the first step:

JMeter Creating a new thread group-recording controller

Step Two:

Set JMeter Agent Workbench-Non-test components-Proxy Server

Step Three:

Port 8080, the target controller selects the recording controller, the Allow regular expression is checked and added in exclusion mode. *\. (Bmp|css|js|gif|ico|jp?g|png|swf|woff)

Fourth Step:

Start the proxy server, here is just a hint, click OK

Fifth Step:

In IE browser set proxy 127.0.0.1 8080, here to fill in 127.0.0.1, because it is to use this machine as a proxy server, otherwise it will be wrong, set up, you need to restart the service to take effect.

Sixth step:

Use Google Browser to operate the site, there will be automatic recording effect

Script recording succeeds, but does not mean that the script is operational, but also requires debugging of the script, such as associations, request header settings, and so on.

This article is for the author's opinion only, the author at the temperature of a pot of sake published.
Welcome reprint, but without the consent of the author must retain this paragraph of the statement, and in the article page obvious location to the original link, otherwise reserves the right to pursue legal responsibility.
Article Source: http://www.cnblogs.com/hong-fithing/

JMeter Script Recording Method (i)--use Badboy to record and jmeter to bring your own proxy server recording separately

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.