当前位置:网站首页>JMeter (V) pressure test of Excel file upload interface

JMeter (V) pressure test of Excel file upload interface

2022-06-12 14:28:00 Makasa

Preface

Hello everyone I am a Mikasa It has not been updated for more than two months blog 了 , Because the new company has been learning business knowledge and busy with some trivial things in life , There is little time to study
This chapter is also a problem encountered in the company , It is necessary to carry out pressure test on the batch file upload interface, but the interface adjustment is not reported all the time 400 The situation of , Finally found the problem and solved it



One 、 Interface configuration condition display

Configure the required components ( Configure according to individual needs ) --> Message header /http request / View results

1、 Message header configuration

 Insert picture description here

2、 Basic information of the file upload interface

 Insert picture description here

Two 、 The problem

400 Badrequest: The essence is that the request parameters passed in by the front end are inconsistent with the types accepted by the back end
Therefore, it should be noted that the parameter name of file upload must be consistent with the type received by the back end , Otherwise, the request will fail
 Insert picture description here

原网站

版权声明
本文为[Makasa]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/03/202203010511399884.html