rajat315315 opened a new pull request, #6735:
URL: https://github.com/apache/jmeter/pull/6735
Fixes: #6734
## Description
<!--- Provide a general summary of your changes in the Title above -->
<!--- Describe your changes in detail here -->
- Updated `runPostProcessors(...)` in
`org.apache.jmeter.threads.JMeterThread`:
- Wrapped `ex.process()` calls in `try-catch (Exception | JMeterError e)`
blocks.
- Logged errors with the element's name while preserving loop continuity.
- Updated `runPreProcessors(...)` in
`org.apache.jmeter.threads.JMeterThread`:
- Wrapped `ex.process()` calls in `try-catch (Exception | JMeterError e)`
blocks to ensure pre-processor failures do not interrupt subsequent
pre-processors or sample sampling.
- Added comprehensive unit tests in
`org.apache.jmeter.threads.TestJMeterThread`:
- `testPostProcessorExceptionHandling()`: Verifies that when a
PostProcessor throws an exception, remaining PostProcessors and sample pipeline
steps continue executing.
- `testPreProcessorExceptionHandling()`: Verifies that when a PreProcessor
throws an exception, remaining PreProcessors and the main sampler execute
cleanly.
## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open issue, please link to the issue here. -->
## How Has This Been Tested?
<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, tests ran to see how -->
<!--- your change affects other areas of the code, etc. -->
## Types of changes
<!--- What types of changes does your code introduce? Delete as appropriate
-->
- Bug fix (non-breaking change which fixes an issue)
## Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes that
apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're here
to help! -->
- [ ] My code follows the [code style][style-guide] of this project.
- [ ] I have updated the documentation accordingly.
[style-guide]: https://wiki.apache.org/jmeter/CodeStyleGuidelines
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]