Bug 59967

Summary: CSS/JQuery Extractor : Allow empty default value
Product: JMeter Reporter: UbikLoadPack support <support>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: enhancement CC: p.mouawad
Priority: P2    
Version: 3.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: Patch implementing the issue

Description UbikLoadPack support 2016-08-10 17:08:38 UTC
As it was done in Bug 58865 it would be very useful to be able to set empty value to variable instead of not defining it.

Example
with the following CSS selector 'a.titi' for the variable myvar
And code:
<html><body><a href="toto" >test</a></body></html>

and an 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
Comment 1 UbikLoadPack support 2016-08-10 17:20:11 UTC
Created attachment 34121 [details]
Patch implementing the issue

Note patch also fixes missing documentation for the same checkbox in Regular Expression Extractor.
Comment 2 Philippe Mouawad 2016-08-10 20:01:18 UTC
Date: Wed Aug 10 19:55:50 2016
New Revision: 1755820

URL: http://svn.apache.org/viewvc?rev=1755820&view=rev
Log:
Bug 59967 - CSS/JQuery Extractor : Allow empty default value
Bugzilla Id: 59967

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/extractor/HtmlExtractor.java
    jmeter/trunk/src/components/org/apache/jmeter/extractor/gui/HtmlExtractorGui.java
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages_fr.properties
    jmeter/trunk/xdocs/changes.xml
    jmeter/trunk/xdocs/usermanual/component_reference.xml