Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#6,494 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
java

Direzione di ricerca

Inizia con i due elementi Thread Groups e User Defined Variable descritti nell’issue, utilizzando il file allegato JMeter_Bug2.docx per riprodurre il comportamento in JMeter 5.5. Traccia come viene risolto P_url quando vengono eseguiti entrambi i gruppi, quindi verifica che ogni Thread Group utilizzi il proprio valore senza che il valore del secondo gruppo sovrascriva quello del primo.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Java
Stelle
9.6k
Fork
2.3k
Merge medio
19h 29m
PR unite (30g)
11

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/jmeter

Tutte le issue di apache/jmeter

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.