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

            Bug ID: 64196
           Summary: Response Assertion do wrong when there are
                    sub-requests
           Product: JMeter
           Version: 5.2.1
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTTP
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: JMETER_6.0.0

Response Assertion do wrong when there are sub-requests

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.and some
sub-samples can also generate sub-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.I select a View Results Tree into the Thread Group.

I found three things that I think is wrong!
1.I fill a string which is Contained in the response of only one sub-request
into the Attribute “Patterns to Test”.I think the sampler will be successful
because I can find the string in the web page.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(including sub_sampler)

2. Response Assertion won't found the pattern strings in the sub-sub-samples.So
does the Regular Expression Extractor. The Attribute "Apply to:" is used for
Main sample and sub-samples,but does nothing to sub_sub_samples.Sometimes it
gets me in trouble.

3. Let's look into the View Results Tree,you will find there are some
sub_sampler and a main sampler under the main sampler.Yes, A duplicate main
sampler is under the main sampler.it does wrong sometimes! For example, the
Attribute "Apply to:" of Response Assertion is set to be "sub-samples only".
Fill a string which is Contained in all responses of sub-request(but no the
main_sampler) into the Attribute “Patterns to Test”. the real result is failure
because the string is not found in the duplicate main sampler. is it right? I
don't think so.

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

Reply via email to