当前位置:网站首页>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请求(接口测试)
边栏推荐
- Cloud platform construction solutions
- log4j-slf4j-impl cannot be present with log4j-to-slf4j
- Super perfect version of the layout have shortcut, background replacement (solve the problem of opencv Chinese path)
- Another MySQL masterpiece published by Glacier (send the book at the end of the article)!!
- Pytest learn-setup/teardown
- Fluorescein-PEG-CLS,胆固醇-聚乙二醇-荧光素科研试剂
- rsync basic usage
- JS get parameter value of URL hyperlink
- 超级完美版布局有快捷键,有背景置换
- 雅思大作文写作模版
猜你喜欢
![Scala basics [regular expressions, framework development principles]](/img/be/6531f32494b8516cd7031223d14bb2.png)
Scala basics [regular expressions, framework development principles]

Cloud platform construction solutions

学习笔记 | uiautomation(如何)实现自动化

Live Preview | Build Business Intelligence, Quickly Embrace Financial Digital Transformation

Software testing is seriously involution, how to improve your competitiveness?

complete binary tree problem

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

Why Flutter Flutter of tutorials is the best choice for business?

FinClip, help smart TV more imagination

Quickly build a website with static files
随机推荐
1067 Sort with Swap(0, i)
设置工作模式与环境(下):探查和收集信息
SPOJ 2774 Longest Common Substring(两串求公共子串 SAM)
Three.js入门详解
举一个 web worker 的例子
牛客2022 暑期多校3 H Hacker(SAM + 线段树查询区间内部最大子段和)
雅思大作文写作模版
Pytest学习-skip/skipif
rsync basic usage
The salary of soft testers at each stage, come to Kangkang, how much can you get?
BMN: Boundary-Matching Network for Temporal Action Proposal Generation Reading Notes
IELTS essay writing template
【LeetCode】最长公共子序列(动态规划)
(PC+WAP)织梦模板不锈钢类网站
The longest substring that cannot have repeating characters in a leetcode/substring
Republish the lab report
FinClip, help smart TV more imagination
utlis 线程池
Walk the Maze BFS
禾匠编译错误记录