Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#6,494 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
52/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
java
Lĩnh vực
performance, testing

Hướng nghiên cứu

Bắt đầu với hai phần tử Thread Groups và User Defined Variable được mô tả trong issue, sử dụng tệp JMeter_Bug2.docx đính kèm để tái hiện hành vi trên JMeter 5.5. Theo dõi cách P_url được phân giải khi cả hai nhóm chạy, sau đó xác minh rằng mỗi Thread Group sử dụng giá trị riêng của mình mà giá trị của nhóm thứ hai không ghi đè giá trị của nhóm thứ nhất.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Java
Star
9.6k
Fork
2.3k
Merge trung bình
18 giờ 33 phút
Pull request đã merge (30 ngày)
12

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của apache/jmeter

Tất cả issue của apache/jmeter

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.