You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2020/03/15 15:22:05 UTC

[Bug 64228] New: Response Assertion do wrong when enabling the Retrieve All Embedded Resources from HTML Files in sampler

https://bz.apache.org/bugzilla/show_bug.cgi?id=64228

            Bug ID: 64228
           Summary: Response Assertion do wrong when enabling the Retrieve
                    All Embedded Resources from HTML Files in sampler
           Product: JMeter
           Version: 5.2.1
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTTP
          Assignee: issues@jmeter.apache.org
          Reporter: tanweiji@139.com
  Target Milestone: JMETER_5.3.0

Created attachment 37100
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=37100&action=edit
script & screenshot & the date captured by wireshark

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.