Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#6,494 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
52/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
java

調査の方向性

issue に記載されている 2 つの Thread Groups および User Defined Variable 要素から始め、添付の JMeter_Bug2.docx を使用して JMeter 5.5 で動作を再現します。両方のグループを実行したときに P_url がどのように解決されるかを追跡し、その後、2 番目のグループの値が 1 番目のグループの値を上書きすることなく、各 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
平均マージ
20時間 42分
マージ済み PR(30日)
10

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/jmeter のほかの issue

apache/jmeter の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。