So you would have + JSR223 Post Processor A
+ JSR223 Pre Processor C (was Post Processor C) + Sampler - + JSR223 Post Processor B Thanks -----Original Message----- From: Stuart Kenworthy Sent: 06 September 2017 09:30 To: JMeter Users List <[email protected]> Subject: RE: Multiple Post-Processor execution order The problem you have is the 2 defined outside the sampler are read before the sampler is run so they will run first. The only true way to control it is to have them within the sampler. If you are just logging specific fields to file, grab the values using regex and then use a pre-processor instead so the logging is done before running the next sampler, if I understand your intentions correctly. -----Original Message----- From: Andrew Burton [mailto:[email protected]] Sent: 06 September 2017 03:36 To: JMeter Users List <[email protected]> Subject: Multiple Post-Processor execution order Hi, Is there any way to control the execution order of post processors that apply globally vs. those that are sampler-specific? My use case is that I want to record sampler-specific MDC elements within a sampler’s post processor, and have a generic post processor that does the logging. E.g. Get the exact error message in the sampler’s post processor (and the response payload may differ from sampler to sampler, hence the need to have a sampler-specific post processor), and have a generic thread group post processor which logs a message if the request fails. For example, the tree would be: Thread Group +-JSR223 Post Processor A +-Sampler +- JSR223 Post Processor B +- JSR223 Post Processor C The sequence order appears to be: Sampler Post Processor A Post Processor C Post Processor B If I add specific items to the MDC in Post Processor B, then with the above execution order, they won’t be available in A or C. Would be keen to hear from others who’ve used MDC for additional logging similar to this. Regards Andrew The information included in this email and any files transmitted with it may contain information that is confidential and it must not be used by, or its contents or attachments copied or disclosed to, persons other than the intended addressee. If you have received this email in error, please notify BJSS. In the absence of written agreement to the contrary BJSS' relevant standard terms of contract for any work to be undertaken will apply. Please carry out virus or such other checks as you consider appropriate in respect of this email. BJSS does not accept responsibility for any adverse effect upon your system or data in relation to this email or any files transmitted with it. BJSS Limited, a company registered in England and Wales (Company Number 2777575), VAT Registration Number 613295452, Registered Office Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
