apache / apache/jmeter

Response Assertion do wrong when enabling the Retrieve All Embedded Resources from HTML Files in sampler

Đang mở
#5,259 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
os: Linux P2
Ngôn ngữ chính
Java
Star
9.5k
Fork
2.3k
Merge trung bình
1 ngày 22 giờ
Pull request đã merge (30 ngày)
5

Mô tả

**Wicky Tam** ([Bug 64228](https://bz.apache.org/bugzilla//show_bug.cgi?id=64228&redirect=false)):
I use a web server program "webtours" which is a part of loadrunner11.
the Home page of "webtours" contain some embedded resources(*.html & *.pl & *.png),so the http samplers to this page can generate sub-samples.

1.I make a HTTP main sampler to visit this web page
2.set the Attribute "Retrieve All Embedded Resources from HTML Files" in this sampler to be "Yes".
3.I select a Response Assertion into this sampler.
4.set the Attribute "Apply to:" of Response Assertion to be "Main sample and sub-samples"
5.fill a string "absmiddle" which is Contained in the response of only one sub-request into the Attribute “Patterns to Test” of Response Assertion.

I think the sampler will be successful.But the real result is failure because the string is not found in the responses of main sampler and other sub-samplers. it won't be successful even if the string is found in the response of one sub-sampler.
I think it is wrong! the result should be successful when the string is found in the response of any sampler when enabling the Retrieve All Embedded Resources from HTML Files in main sampler.

Created attachment [Response Assertion do wrong when enabling the Retrieve All Embedded Resources from HTML Files in sampler.zip](https://apache.github.io/jmeter-bugzilla-attachments/28/64228/37100/Response%20Assertion%20do%20wrong%20when%20enabling%20the%20Retrieve%20All%20Embedded%20Resources%20from%20HTML%20Files%20in%20sampler.zip): script & screenshot & the date captured by wireshark

Severity: normal
OS: Linux

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu với script, ảnh chụp màn hình và dữ liệu đã thu thập được đính kèm, sau đó tái hiện trường hợp HTTP sampler với Retrieve All Embedded Resources from HTML Files được bật. Kiểm tra cách Response Assertion xử lý Apply to: Main sample and sub-samples khi một mẫu chỉ xuất hiện trong một sub-sample. Hoàn tất khi kết quả assertion khớp với hành vi mong đợi được báo cáo đối với các response của tài nguyên được nhúng.

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

Đánh giá

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

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.