JMeter learning (2) recording script, jmeter learning recording script _ PHP Tutorial

Source: Internet
Author: User
Tags http cookie
JMeter learning (2) recording script, jmeter learning recording script. JMeter learning (2) recording script, jmeter learning recording script environment Badboyversion2.1.1JDK: 1.7.0 _ 67ApacheJMeter-2.11 prepare JMeter learning (2) recording script, jmeter learning recording script

Environment

Badboy version 2.1.1

JDK: 1.7.0 _ 67

Apache JMeter-2.11

Bytes ----------------------------------------------------------------------------------------------------

JMeter recording scripts can be used in multiple ways. The most common method is to use a third-party tool badboy for recording. In addition, JMeter's own settings (Http proxy server + IE browser settings) are used for recording scripts, however, the recorded scripts in this method are too many and messy, and I do not like them very much. generally, Badboy is used for recording. The following describes how to record Badbody.

Note: When using the JMeter proxy or BadBoy for recording, especially the JMeter proxy, the operation cannot be too fast, otherwise the recording may fail.

Badboy introduction:

  • Badboy is a free automated WEB testing tool.
  • Http://www.badboy.com.au
  • The installation of badboy is the same as that of common applications. Badboy is a good web automation test tool that can be used to record scripts, and the recorded scripts can be directly saved as JMeter files. I have undoubtedly brought us great convenience.

1. open the badboy tool and enter the address of the project to be tested in the address bar.

Note:: Badboy is in the recording status under normal conditions. it is a red button,

After recording, click the black button next to the toolbar to finish recording.

2. select "file" -- Export to Jmeter...

3. open the JMeter tool, select "file" --> "open", select the saved file (. jmx type), and import the file.

The recorded script must be added.HTTP Cookie ManagerOtherwise, the script fails to run. remember.

For JMeter, a test plan can only have one Cookie manager. When multiple managers exist, JMeter has no way to specify which Manager to use. at the same time, the cookies stored in one Cookie Manager cannot be referenced by other Cookie managers. Therefore, multiple Cookie managers are not recommended in the same test plan.

Adding a cookie will ensure that each user uses different cookies, but sharing an Http element requires cookie support for almost all web tests.

Prepare (2) recording script, jmeter learning recording script environment Badboyversion 2.1.1 JDK: 1.7.0 _ 67 ApacheJMeter-2.11 -----------------------------------------------------------...

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.