Jmeter recording script

        There are two ways in Jmeter to record scripts. However, I personally do not recommend recording scripts. The recorded scripts are confusing and need to be processed again before they can be used.

        If you understand the HTTP protocol, you can directly use Fiddler to capture packets, and then write your own scripts.  

        In any case, this article will introduce two methods for recording scripts.

Method 1: Use badboy to record scripts

        badboy itself is a testing tool for the web, and the scripts it records can be used directly by Jmeter.

        Official website: http://www.badboy.com.au/ .

        Open badboy, how to record scripts, after recording, click File -> Export to JMeter, Jmeter can use these scripts directly.



 

Method 2: Use Jmeter to record scripts 

        Configure Jmeter as a web proxy and use Jmter itself to record scripts.

        Step 1: Create a Thread Group (click on the email: Test Plan -> Add -> Thread Group)

        Step 2: Create an http proxy server (click "WorkBench" for mail, Add-> Non-Test Elements -> HTTP(S) Test Script Recorder)


        Then set the proxy server of the browser, and after setting, visit the website in the browser. Jmeter can record it. 


        The scripts recorded in Jmeter are messy, and there are all kinds of pictures and js, so they can't be used at all.

        Some useless requests should be set to ignore.


 

Article source: http://www.cnblogs.com/TankXiao/p/4064289.html

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326828209&siteId=291194637