jmeter is a very popular performance testing tool, LoadRunner there are many deficiencies, such: its result analysis capability is not LoadRunner details; it has many advantages:
L open-source: it is an open-source free software. You do not have to pay for it,
L Relatively small LR (Latest Lr11 Near 4 GB ). It is very small and does not need to be installed, but requires JDK Environment, because it is used Java Development tools.
L Powerful functions, Jmeter The design was just a simple one. Web Performance testing tools, but after some unsegmented updates and extensions, can now complete the database, FTP , LDAP , WebService Testing. Because of its open-source nature, you can also expand its functions as needed.
I think it is more like a Swiss Army knife, small and fully functional. First time Jmeter I think it is not good because LR For example, it does not have the script recording function, maybe not none, but I don't know it, because this is what is described in the document. Web For performance testing, you can manually add Loop Controllers, HTTP Information management header, HTTP Request and other components. If there are too many scripts to test, this is definitely a physical activity.
BadboyYesWebThe automated testing tool uses it to record scripts, and the recorded scripts can be directly savedJmeterFile. I have undoubtedly brought us great convenience.
----------------------My Environment------------
BadboyVersion 2.1.1
ApacheJMeter-2.3.4 (YesJDKEnvironment to run)
--------------------------------------------
Method 1: PassBodboyTo record the script.
1.OpenedBadboyTool, click the Red Circle button on the work bar, and enter the address of the project to be tested in the address bar.
After recording, click the black button next to the toolbar to finish recording.
Select "file"--ÀExport to jmeter...
2.OpenJmeterTool, select "file"-->"Open": select the saved file (. JMX type) and import the file.
Method 2:JmeterRecording scripts by yourself.
I discovered this method (despise your ignorance~!), I think the method is relatively simple.
1.OpenJmeterTools
Create a thread group (right-click "Test Plan" ---> "add" ----> "thread group ")
Create an HTTP Proxy Server (right-click "workbench"---> "Add"---> "Non-tested components"---> "HTTP Proxy Server")
Complete settings are as follows:
2. Set the IE browser.
IE---> "Internet attributes"---> "Connection"---> "LAN Settings"
Set it to the IP address of the Local Machine. Note that the port number must be consistent with the port number on jmeter. Port 8080 is used by default.
3. Click the "Start" button on jmeter to open the browser and enter the address of the web project to be recorded. jmeter will automatically record the page accessed by your IE.
PS: The second method is the one I just learned. I still don't know which of the two methods is better, but the second method is assisted by IE browser, I think it can be recorded as long as Ie can be opened, but the recorded script looks messy (I think)
That is, the setting of the HTTP Proxy Server (for example, grouping: each group is placed on a new server-only this option can be recorded normally ), have time to carefully compare the differences between the two methods.