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----------------------------- ------------------------------...