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