当前位置:网站首页>Jmeter-参数化
Jmeter-参数化
2022-08-03 23:31:00 【Kiraxqc】
一、 用户定义变量
1. 访问百度页面
测试计划-线程组(添加-配置元件-用户定义的变量)

${}引用用户定义的变量

或者在测试计划中添加
二、用户参数
1. 批量添加多个不同的参数(登录)
测试计划-线程组(添加-前置处理器-用户参数)


以下两种方式等价:
1)HTTP请求发送参数时引用

2)写在路径中:

三、csv函数助手(随机、不一样)

生成的表达式粘贴到变量中

四、CSV
1. CSV文件准备

添加-配置元件-CSV Data Set Config


HTTP变量中引用

场景:
1. 用户登录
2. 接口返回值测试,比如访问某个页面,输入多个参数会返回什么响应码或HTTP请求(接口测试)
边栏推荐
- [Paper Reading] TRO 2021: Fail-Safe Motion Planning for Online Verification of Autonomous Vehicles Using Conve
- 双目IMU标定kalibr
- [RYU] rest_router.py source code analysis
- - the skip/skipif Pytest learning
- 代码重构:面向单元测试
- Why do we need callbacks
- "Digital Economy Panorama White Paper" Financial Digital User Chapter released!
- Kotlin - 扩展函数和运算符重载
- Pytest学习-skip/skipif
- 一个函数有多少种调用方式?
猜你喜欢

The salary of soft testers at each stage, come to Kangkang, how much can you get?

超级完美版布局有快捷键,有背景置换

Zilliz 2023 Fall Campus Recruitment Officially Launched!

What is the difference between the generator version and the viewer version?

射频芯片(RFIC)的协议之5G及其调制

"Digital Economy Panorama White Paper" Financial Digital User Chapter released!

BMN: Boundary-Matching Network for Temporal Action Proposal Generation阅读笔记

rosbridge-WSL2 && carla-win11

Unity 截取3D图像 与 画中画PIP的实现

用栈实现队列
随机推荐
代码重构:面向单元测试
utils 定时器
响应式织梦模板餐饮酒店类网站
The longest substring that cannot have repeating characters in a leetcode/substring
数据分析知识点搜集(纯粹的搜集)
创建函数报错,提示DECLARE定义语法问题
射频芯片(RFIC)的协议之5G及其调制
Why Flutter Flutter of tutorials is the best choice for business?
Creo 9.0在草图环境中创建坐标系
响应式织梦模板塑身瑜伽类网站
libnet
(PC+WAP)织梦模板不锈钢类网站
3D Semantic Segmentation - 2DPASS
Three.js入门详解
V8中的快慢数组(附源码、图文更易理解)
ts用法大全
redis持久化方式
单例模式使用饿汉式和懒汉式创建一定安全?很多人不知
LeetCode 0155. 最小栈
Live Preview | Build Business Intelligence, Quickly Embrace Financial Digital Transformation