Bug 58865 - Allow empty default value in the Regular Expression Extractor
Summary: Allow empty default value in the Regular Expression Extractor
Status: RESOLVED FIXED
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: 2.13
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords: PatchAvailable
Depends on:
Blocks:
 
Reported: 2016-01-14 16:44 UTC by benoit.wiart
Modified: 2016-01-23 14:09 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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