JMeter之上传文件同时带有参数

文章目录

业务场景

针对下述接口构建jmeter测试,这是个post接口,在上传文件file的同时指定变量groupId的值

java 复制代码
	 @PostMapping("/importExcel")
    public ApiResultDto<String> importExcel(TagChildrenImportDto importDto) {
        SecurityUser user = SecurityUtils.getCurrentUser();
        return tagService.importExcel(importDto, user);
    }
    	
	public class TagChildrenImportDto {
	    @Schema(name = "file", description = "文件")
	    private MultipartFile file;
	    @Schema(name = "groupId", description = "分组id")
	    private UUID groupId;
	}
}

使用

在《参数》指定groupId,

在《文件上传》指定file

当《参数》模块有值的时候,《消息体数据》是无法点击的!必须要把《参数》模块的数据删除才能点击"消息体数据"

相关推荐
石山代码1 小时前
ArrayList / HashMap / ConcurrentHashMap
java·开发语言
针叶2 小时前
Google Play加固保护导致的崩溃
android·安全·google
AskHarries3 小时前
系统提示词、开发者指令和用户输入的优先级
java·前端·数据库
daidaidaiyu3 小时前
ThingsBoard 规则链系统源码分析和自定义定时器
java
小毛驴8504 小时前
spring-boot-maven-plugin,maven-compiler-plugin 功能对比
java·python·maven
csdn_aspnet4 小时前
Java 霍尔分区算法(Hoare‘s Partition Algorithm)
java·开发语言·算法
霸道流氓气质4 小时前
通义灵码 IDEA 插件完全使用指南
java·ide·intellij-idea
执明wa4 小时前
Android Studio 项目目录结构全方位详解
android·ide·android studio
诸葛务农4 小时前
道路行驶条件下电动汽车永磁电机的有效使用寿命及永磁体的失效和回收再利用(下)
java·开发语言·算法
Percep_gan4 小时前
Java8中的stream的测试使用
java