当前位置:网站首页>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请求(接口测试)
边栏推荐
猜你喜欢

SPOJ 2774 Longest Common Substring(两串求公共子串 SAM)

Creo 9.0二维草图的诊断:重叠几何

redis持久化方式

Jar a key generation document database

ML之yellowbrick:基于titanic泰坦尼克是否获救二分类预测数据集利用yellowbrick对LoR逻辑回归模型实现可解释性(阈值图)案例

图论-虚拟节点分层建图

Binary search tree to solve the fallen leaves problem

Pytest learn-setup/teardown

FinClip, help smart TV more imagination

BMN: Boundary-Matching Network for Temporal Action Proposal Generation阅读笔记
随机推荐
Work Subtotal QT Packing
The sword refers to the offer question 22 - the Kth node from the bottom in the linked list
Flutter教程之为什么 Flutter 是创业的最佳选择?
utlis thread pool
ML之yellowbrick:基于titanic泰坦尼克是否获救二分类预测数据集利用yellowbrick对LoR逻辑回归模型实现可解释性(阈值图)案例
Pytest学习-skip/skipif
智能座舱的「交互设计」大战
Live Preview | Build Business Intelligence, Quickly Embrace Financial Digital Transformation
学习笔记 | uiautomation(如何)实现自动化
用两个栈模拟队列
Shell 用法梳理总结
完全二叉树问题
Why Flutter Flutter of tutorials is the best choice for business?
override learning (parent and child)
Unity2021发布WebGL雾效消失问题
Storage engine written by golang, based on b+ tree, mmap
SRE运维解密-什么是SRE:DevOps模型的具体实践!
什么是memoization,它有什么用?
射频芯片ATE测试从入门到放弃之参数测试
七夕?new一个对象