jmeter 如何在单个请求中发送正文数据和文件上传?

oyt4ldly  于 2023-06-06  发布在  其他
关注(0)|答案(1)|浏览(504)

如何在jmeter请求中放入此curl?curl-X POST "www.example.com"-H "接受:http://pnv6s2218.net.plm.eds.com/polarion/rest/v1/projects/Popokatepetl_Project_40/workitems/pfhmi-development2-1553/attachmentsBearer eyeJraWQiOiJlZDM4MDhiNy05MjdhNTBjNC01NzJkMzg5My02YTdhMDMwYSIsInR5cCI6IkpXVCIsImFsZyI6IlJTMjU2In0. eyJzdWIiOiJ1c2VyX0RWTFBSX1ZPTFVORFJfMjAwMSIsImlkIjoiMGZmNWJkOTAtOTI3YTUwNz UtMzVmNGJiMDgtMmViZGIzOGYiLCJleHAiOjE3NjQ4NzMwMDAsImlhdCI6MTY3MTAxMDA0MX0. jEP2wNlZ_jgAuPYnAD1ZitL0qd_JcJ54wo6VYKWPg32rD2VqF6RMNjz74q902MuuWTYgI@3Q3w15d-T1bxo7kBRq7URRULL2MmddqwLxKQx23OfrxChZeehqCG-3IqAR_bKyvy9lmzNB4 G-qPPhedEnmGi0Dy2DKfxN22ff8SK63rdxOezcC29s3qQOlBoUvu9UiNlDekXmabg_ZPFJLPG wTa6npH27f99r8ATQwUKum-6ba5OV-WexgTeg1vdblGo50A0FidqKgrCINCNttJW5MF9hp0tRUcy 48FilqrmA6cYtZuPaLYwzQv8D9fe1xuNJzGZXz50Xi1eGuT5RHg "-H"内容类型:multipart/form-data "-F" resource ={"data ":[{"type ":"工作项_附件", [ { "type": "workitem_attachments",

"attributes": {
    "fileName": "File Name",
    "title": "Title"
  }
}

]}"-F" files =@Colourbom1.PNG; type = image/png "
有2个身体数据的,一个是身体数据,另一个是文件上传日期,我怎么能把它在一个单一的jmeter请求

7ivaypg9

7ivaypg91#

把你所谓的“身体数据”放在“参数”选项卡下:

和“文件上传”选项卡下的文件:

还请注意,您可以:

相关问题