Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

User defined variable of the last thread overrides the predecessor thread user defined variable

未关闭
#6,494 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
52/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
java

调研方向

从 issue 中描述的两个 Thread Groups 和 User Defined Variable 元素开始,使用随附的 JMeter_Bug2.docx 在 JMeter 5.5 上复现该行为。跟踪两个组都运行时 P_url 的解析方式,然后验证每个 Thread Group 使用自己的值,且第二个组的值不会覆盖第一个组的值。

由索引模型根据 Issue 内容生成。

描述

defect to-triage
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

JMeter_Bug2.docx

  • 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

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

apache/jmeter 的其他 Issue

查看 apache/jmeter 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。