jmeter-Recording of scripts

Source: Internet
Author: User

Reprint http://www.cnblogs.com/fnng/archive/2011/08/20/2147082.html

Jmeter is a very popular performance testing tool, although compared with LoadRunner has a lot of shortcomings, such as: It results analysis ability is not loadrunner detailed; it has many advantages:

L Open Source, he is an open source free software, use it you do not have to pay any fees,

Small, large compared to LR (the newest LR11 will be nearly 4GB), it is very small and requires no installation, but requires a JDK environment because it is a tool developed using Java.

L Powerful, JMeter design is just a simple Web performance test tool, but after a period of update extension, can now complete the database, FTP, LDAP, WebService and other aspects of testing. Because of its open source nature, of course you can also expand its function according to your own needs.

I think it's more like a Swiss Army knife, small, and fully functional. When I first met JMeter, I thought it was bad, because compared to LR, it does not have the script recording function, maybe not no, just I do not know, because the document is described in this way, I want to do a Web performance test, manually add a loop controller, HTTP information management head, HTTP requests and so on various components. This is certainly a physical activity if you have more scripts to test.

Badboy is a great web automation test tool that uses it to record scripts, and the recorded scripts can be saved directly to the JMeter file. I undoubtedly brought us a lot of convenience.

----------------------My Environment------------

Badboy Version 2.1.1

Apache JMeter-2.11 (requires JDK environment to run)

--------------------------------------------

The first method: Record the script with Bodboy.

1. Open the Badboy tool and click on the red Circle button on the work column to enter the address of the item being tested in the Address column.

When the recording is complete, click the Black button next to the toolbar to end the recording.

Select "File"--àexport to Jmeter ...

2. Open the JMeter tool and select File--open to select the file (. JMX type) You just saved and import the file in.

The second method is to record the script by jmeter its own settings.

This method is what I found (despise my ignorance, hehe!) ), think the method is relatively simple.

1. Open the JMeter tool

Create a thread group (right-click the test Plan---> Add----> Thread Group)

Create an HTTP proxy server (right-click on "Workbench"---> "add"---> "non-Test Components"---> "http proxy Server")

The complete Set reference:

2. Below to set up the IE browser

IE---> Internet properties---> Connections---> LAN settings

Set to native IP, note that the port number should be the same as the port number on the JMeter. The default is 8080 ports.

3. Now click on the "Start" button on the JMeter, open the browser input need to record the Web project address, JMeter will automatically record the page you visited by IE.

jmeter-Recording of 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.