Building a custom Jmeter Plugin for Thread Group
- 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
Assessment
This issue has not been assessed yet.