JMeter Learning (ii) Recording scripts, JMeter learning to record scripts _php tutorials

Source: Internet
Author: User
Tags http cookie

JMeter Learning (ii) Recording script, JMeter learning recording script


Environment

Badboy Version 2.1.1

jdk:1.7.0_67

Apache JMeter-2.11

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

JMeter recording scripts There are several ways, the most common method is to use third-party tools Badboy recording, and JMeter own settings (HTTP proxy server +ie browser settings) to record scripts, but this method of recording the script is more and more chaotic, the individual does not like, Generally common badboy for recording, below to describe the next badbody recording.

Note: When using JMeter agent or Badboy for recording, especially when the jmeter agent, the operation can not be too fast, otherwise it is easy to cause recording failure.

Badboy Introduction:

    • Badboy is a free web automation testing tool.
    • Official Download Address: http://www.badboy.com.au
    • Badboy installation As with the general application, Badboy is a good Web automation testing 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.

1. Open the badboy tool and enter the address of the item being tested in the Address column .

Note : Thebadboy normal state is the recording state, the red button,

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

2. Select "File"--Export to Jmeter ...

3. Open the jmeter tool and select "File"--> "Open" to select the file (. JMX type) You just saved and import the file in.

the recorded script must be added HTTP Cookie Manager , or the script fails to run, remember.

Now for JMeter, a test plan can have only one cookie manager. Because when multiple managers exist, JMeter currently has no way to specify which manager to use. Also, cookies stored in a cookie manager cannot be referenced by another cookie manager, Therefore, it is not recommended to use multiple cookie Manager in the same test plan.

Adding a cookie will ensure that each user uses a different cookie, but sharing an HTTP element, almost all Web tests require cookie support.

http://www.bkjia.com/PHPjc/1100396.html www.bkjia.com true http://www.bkjia.com/PHPjc/1100396.html techarticle JMeter Learning (ii) Recording script, JMeter learning Recording script Environment Badboyversion 2.1.1 jdk:1.7.0_67 ApacheJMeter-2.11----------------------------- ------------------------------...

  • Related Article

    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.