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 2013/01/24 22:02:52 UTC

[Bug 54481] New: Assertion fails when Transaction Controller generates parent sample

https://issues.apache.org/bugzilla/show_bug.cgi?id=54481

            Bug ID: 54481
           Summary: Assertion fails when Transaction Controller generates
                    parent sample
           Product: JMeter
           Version: 2.9
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: shmulikk@gmail.com
    Classification: Unclassified

I have a response assertion on the root of my test plan.
I have setup a transaction controller and inside it an http sampler.
The assertion works just fine for the http sampler, but it also asserting the
transaction controller and failing it with a "Response was null" error.

This now forcing me to duplicate the assertion as a child of each relevant http
sampler instead of having just one, at the root of the test plan.

I don't see any reason for assertions to assert logic controller.

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

[Bug 54481] Assertion fails when Transaction Controller generates parent sample

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54481

shmulikk@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #3 from shmulikk@gmail.com ---
I am not sure it is invalid.
In more complex cases, I have both Transaction Controllers and (HTTP) Samplers
(which are not in Transaction Controllers) in the same level in a thread group.

The solution you suggested will not work in such cases.

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

[Bug 54481] Assertion fails when Transaction Controller generates parent sample

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54481

--- Comment #5 from Sebb <se...@apache.org> ---
There is something odd happening here.

If the TC is set to not generate a parent sample, then the RA works.

Adding an Assertion Results Listener shows two entries.

The RA should fail when applied to the TC sample result as that is empty.
Hoewever it does not fail; looks like the RA somehow runs against the wrong
data here. Yet the AR Listener shows TC in its list.

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

[Bug 54481] Assertion fails when Transaction Controller generates parent sample

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54481

--- Comment #1 from shmulikk@gmail.com ---
Created attachment 29893
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29893&action=edit
Testplan to reproduce the issue

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

[Bug 54481] Assertion fails when Transaction Controller generates parent sample

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54481

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om
            Version|2.9                         |2.8

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

[Bug 54481] Assertion fails when Transaction Controller generates parent sample

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54481

shmulikk@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |shmulikk@gmail.com
                 OS|                            |All

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

[Bug 54481] Assertion fails when Transaction Controller generates parent sample

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54481

Milamber <mi...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
           Hardware|All                         |PC
            Version|2.8                         |2.9
         Resolution|---                         |INVALID

--- Comment #2 from Milamber <mi...@apache.org> ---
The transaction controller haven't response data, thus Response Assertion can't
check in this data.

In Response Assertion, you can change option "Apply to:" Sub-samples only to
work.

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

[Bug 54481] Assertion fails when Transaction Controller generates parent sample

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54481

--- Comment #4 from Milamber <mi...@apache.org> ---
Perhaps we need to disable assertion test on Transaction controller when a
Assertion Response passes inside.
Thus, when we have some TC and HTTP Requests at same level than a Assertion
Response with Apply to "Main and Subsamplers" there haven't errors (null data
on tc)  (and if no errors on req http)

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

[Bug 54481] Assertion fails when Transaction Controller generates parent sample

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54481

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|PC                          |All

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