jgaalen opened a new pull request, #6256:
URL: https://github.com/apache/jmeter/pull/6256

   ## Description
   This change adds the option to automatically fail a sampler if a regular 
expression extraction can't find any matches. 
   
   ## Motivation and Context
   This saves the need to add an assertion with a regex to be sure there are 
matches. This will either save doing the regex matching twice and/or improved 
the scripts by failing if the extraction fails rather fail later when there is 
no value
   
   Based on [this](https://github.com/apache/jmeter/issues/3364) discussion. 
Thanks to @asfimport for initiating this and providing code
   
   ## How Has This Been Tested?
   I've tested this on HTTP Requests only with different types of matches (1: 
single extraction, 0: random and -1 to match multiple fields)
   
   ## Screenshots (if appropriate):
   
   ## Types of changes
   - New feature (non-breaking change which adds functionality)
   
   ## 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: dev-unsubscr...@jmeter.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to