Jmeter for file upload

File Upload

The following points made, for example, uploading excel file

1, adding a thread group (right-click the Test Plan - Add -Threads (Users) - thread group)               
2, add a http request (right-click the Thread Group - Add -Sampler-HTTP requests)           
3. Fill in the url and path Http request , as well as to upload files

File name: Upload file Address

Parameter name: Parameter name interface document

4, need to add a cookie, you can capture tool, locate the file name and MIME types, and the need to find cookie

 5, was added Cookie (right-click "HTTP Request" - "add" - "Configuration element" - "HTTP cookies Manager")

6, after execution, view the results tree

 

Guess you like

Origin www.cnblogs.com/peiya/p/11951796.html