apache / apache/jmeter

Create a new TestElement that runs after PostProcessors and Assertions

Open
#6,047 3 comments 1 reaction 0 assignees View on GitHub
enhancement to-triage
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

### Use case

Hello there,

in our JMX we use a PostProcessor to persist some metrics, if an Sample failed.
To be applied on each Sampler, we put it in the jmeterTestPlan.
![image](https://github.com/apache/jmeter/assets/54536760/af2ca0d2-f1ea-453b-bdec-4672f8206231)

When an Assertion is added to a specific Sampler, and it failes, the PostProcessor does persist this error. The reason is, JMeter executes PostProcessors before Assertions.

Since the existing execution order in JMeter should not be touched (possible impacts for existing TestPlans), it would be great to have a new Object, that runs after all Assertions were evaluated.

### Possible solution

Add a new PostProcessor that is executed in "the final stage" of the LiveCycle of a Sampler.

My proposal for a name would be "FinalPostProcessor".

### Possible workarounds

_No response_

### JMeter Version

5.6.2

### Java Version

openjdk version "17.0.7" 2023-04-18 LTS

### OS Version

Microsoft Windows [Version 10.0.19045.3155]

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.