apache / apache/jmeter

Building a custom Jmeter Plugin for Thread Group

Open
#5,754 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

UseCase:
Current thread group has 5 action items to be taken after a sampler error
1. continue
2. start next thread loop
3. stop thread
4. stop test
5. stop test now

However, in our case when an error occurs in the sampler, it has to go to a transaction controller which will always be logout, if we don't logout, the session is getting locked which is the behavior of the application.

For this, we are trying to customize the threadgroup to direct the flow to transaction controller when an error occurs

We have created another custom thread group[Refer CustomThreadGroup.txt] extending the AbstractThreadGroup's functionality on the "sampler_on_error_action" button group. For this, we tried to override the JMeterThread[Refer CustomJMeterThread]functionality(org.apache.jmeter.threads.JMeterThread.run()) but we are getting not visible and type mismatch errors on JMeterContextService, JMeterThread, JMeterThreadMonitor and JMeterContext functionalities

Can you please help us in moving forward.

[CustomJMeterThread.txt](https://github.com/apache/jmeter/files/10330308/CustomJMeterThread.txt)
[CustomThreadGroup.txt](https://github.com/apache/jmeter/files/10330309/CustomThreadGroup.txt)

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.