Bug 58865

Summary: Allow empty default value in the Regular Expression Extractor
Product: JMeter Reporter: benoit.wiart
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: enhancement CC: p.mouawad
Priority: P2 Keywords: PatchAvailable
Version: 2.13   
Target Milestone: ---   
Hardware: All   
OS: All   

Description benoit.wiart 2016-01-14 16:44:00 UTC
Example
with the following regex for the variable myvar
<input name="baulpismuth" type="text" value="(.+?)" 
and a http argument as
baulpismuth = ${myvar}

and the given html
<input name="baulpismuth" type="text" >
the browser will send baulpismuth=

but jmeter will send baulpismuth=${myvar}
as no match will be found and it's not possible to define an empty
default value

this PR add a checkbox (I love checkbox) to let the user choose an empty default value
Comment 1 benoit.wiart 2016-01-14 16:45:43 UTC
PR https://github.com/apache/jmeter/pull/79
Comment 2 Philippe Mouawad 2016-01-23 14:09:55 UTC
Date: Sat Jan 23 14:08:17 2016
New Revision: 1726399

URL: http://svn.apache.org/viewvc?rev=1726399&view=rev
Log:
Bug 58865 - Allow empty default value in the Regular Expression Extractor
#resolve #79
Bugzilla Id: 58865

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/extractor/RegexExtractor.java
    jmeter/trunk/src/components/org/apache/jmeter/extractor/gui/RegexExtractorGui.java
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages_fr.properties
    jmeter/trunk/test/src/org/apache/jmeter/extractor/TestRegexExtractor.java
    jmeter/trunk/xdocs/changes.xml