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
Created attachment 34121 [details] Patch implementing the issue Note patch also fixes missing documentation for the same checkbox in Regular Expression Extractor.
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
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4053