User defined variable of the last thread overrides the predecessor thread user defined variable
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 52/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- java
- 领域
- performance, testing
调研方向
从 issue 中描述的两个 Thread Groups 和 User Defined Variable 元素开始,使用随附的 JMeter_Bug2.docx 在 JMeter 5.5 上复现该行为。跟踪两个组都运行时 P_url 的解析方式,然后验证每个 Thread Group 使用自己的值,且第二个组的值不会覆盖第一个组的值。
由索引模型根据 Issue 内容生成。
描述
Expected behavior
The user defined variables that are defined under thread group should have the scope with in the respective thread group.
Actual behavior
When tester is having 2 scripts with 2 different login urls and the tester combines them in same test plan notice some of the general user defined variables like P_url which is different for each of the scripts fails to work as the P_url defined in the 2nd thread group overrides the P_url defined in the 1st thread group.
Steps to reproduce the problem
- User created 2 thread groups
- Each thread group has user defined variable element
- The name of variable P_url is used to parameterize the url of the request
- P_url in the thread group 1 holds the value of 1st application url
- P_url in the thread group 2 holds the value of 2nd application url
- When user runs the test notice that P_url value in thread group 1 is overwritten by 2nd application url
- Refer the document provided
JMeter Version
5.5
Java Version
openjdk-17.0.14
OS Version
Windows Server 2022 Datacenter 21H2
- 主要语言
- Java
- 星标
- 9.6k
- 派生
- 2.3k
- 平均合并
- 1 天 15 小时
- 30 天内合并 PR
- 13
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/jmeter 的其他 Issue
-
[Bug] Typo in assertion property name: "Asserion.test_strings" missing 't'可能已有人在做 @waterWang 于 67 天前认领。 未关闭defect to-triage
难度 1/5 1 小时以内 新手友好度 82/100
维护者通常 1 天内回复
-
enhancement to-triage
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
RandomDate ignores inclusive end date and throws when start == end可能已有人在做 @weillercarvalho 于 344 天前认领。 未关闭defect to-triage
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
documentation to-triage
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
invalid wontfix
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
strimzi/strimzi-kafka-operator#13328 · 1 条评论 · 3 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
GoogleContainerTools/jib#4538 ·
-
难度 2/5 1-3 小时 新手友好度 67/100
OpenLiberty/ci.maven#2137 ·
维护者通常 1 天内回复
-
Payer adjustment can exceed the balance left after copay and deductible, so claim payments add up to more than the charge可能已有人在做 @DG47 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 79/100
synthetichealth/synthea#1772 ·
维护者通常 13 天内回复
-
bug dependencies
难度 2/5 1-3 小时 新手友好度 65/100