Bug 59967 - CSS/JQuery Extractor : Allow empty default value
Summary: CSS/JQuery Extractor : Allow empty default value
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 3.0
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-10 17:08 UTC by UbikLoadPack support
Modified: 2016-08-10 20:01 UTC (History)
1 user (show)



Attachments
Patch implementing the issue (9.58 KB, patch)
2016-08-10 17:20 UTC, UbikLoadPack support
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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
Comment 3 The ASF infrastructure team 2022-09-24 20:38:05 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4053