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 2017/11/23 15:53:00 UTC

[Bug 61806] New: Allow to use setIgnore() in post processor and assertion script

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

            Bug ID: 61806
           Summary: Allow to use setIgnore() in post processor and
                    assertion script
           Product: JMeter
           Version: Nightly (Please specify date)
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: maxime.chassagneux@gmail.com
  Target Milestone: ---

Actually, the new setIgnore() method allow to not send the sampleResut to all
listener. 
But you have to set the propertie in the sampler, you can't change it on a
post-processor or in a assertion script. 

I think it could be usefull to allow this behaviour. 

Actually, I check in a assertion script if a JMS subscriber sampler got a 404
as code result ( i.e timeout , no message in the queue, but it's just a purge
thread group, so I don't care) and I rly don't want to pollute my result with
this.

For me, we just need to check the ignore status before send to listener result
like this =>

runPostProcessors(pack.getPostProcessors());
checkAssertions(pack.getAssertions(), result, threadContext);
if ( !result.isIgnore() ) {
   // Do not send subsamples to listeners which receive the transaction sample
   List<SampleListener> sampleListeners = getSampleListeners(pack,
transactionPack, transactionSampler);
   notifyListeners(sampleListeners, result);
}

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

[Bug 61806] Allow to use SampleResult#setIgnore() in post-processors and assertions script (JSR223 elements)

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Allow to use setIgnore() in |Allow to use
                   |post processor and          |SampleResult#setIgnore() in
                   |assertion script            |post-processors and
                   |                            |assertions script (JSR223
                   |                            |elements)
            Version|Nightly (Please specify     |3.3
                   |date)                       |

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

[Bug 61806] Allow to use SampleResult#setIgnore() in post-processors and assertions script (JSR223 elements)

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |haridara@gmail.com

--- Comment #3 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
*** Bug 54333 has been marked as a duplicate of this bug. ***

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

[Bug 61806] Allow to use setIgnore() in post processor and assertion script

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

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

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

--- Comment #1 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
https://github.com/apache/jmeter/pull/341

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

[Bug 61806] Allow to use SampleResult#setIgnore() in post-processors and assertions script (JSR223 elements)

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #2 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Author: pmouawad
Date: Tue Feb  6 22:27:06 2018
New Revision: 1823408

URL: http://svn.apache.org/viewvc?rev=1823408&view=rev
Log:
Bug 61806 - Allow to use SampleResult#setIgnore() in post-processors and
assertions script (JSR223 elements)
This closes #341
Contributed by Maxime Chassagneux
Bugzilla Id: 61806

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterThread.java
    jmeter/trunk/xdocs/changes.xml

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