Bug 62178 - Add default value to __V function
Summary: Add default value to __V function
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 4.0
Hardware: All All
: P2 enhancement (vote)
Target Milestone: JMETER_5.0
Assignee: JMeter issues mailing list
URL:
Keywords: FixedInTrunk
Depends on:
Blocks:
 
Reported: 2018-03-14 11:37 UTC by orimarko
Modified: 2018-03-31 11:47 UTC (History)
2 users (show)



Attachments
Add second parameter default value for __V (3.60 KB, patch)
2018-03-14 12:03 UTC, orimarko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description orimarko 2018-03-14 11:37:40 UTC
There's a need, when handling with JMeter variables, to set default value 
Properties allow it using __P or __property

My proposal is to add second parameter default value to __V function

Default Value - The default value for the variable.

Original question:
https://stackoverflow.com/questions/49273179/i-have-used-csv-file-in-jmeter-script-now-i-want-if-data-is-not-read-from-csv-f
Comment 1 orimarko 2018-03-14 12:03:01 UTC
Created attachment 35762 [details]
Add second parameter default value for __V

Notice changes.xml is full with previous changes so I didn't updated it
Comment 2 Philippe Mouawad 2018-03-18 14:32:00 UTC
Author: pmouawad
Date: Sun Mar 18 14:30:39 2018
New Revision: 1827141

URL: http://svn.apache.org/viewvc?rev=1827141&view=rev
Log:
Bug 62178 - Add default value to __V function
Contributed by Orimarko
Bugzilla Id: 62178

Modified:
    jmeter/trunk/src/functions/org/apache/jmeter/functions/Variable.java
    jmeter/trunk/test/src/org/apache/jmeter/functions/VariableTest.java
    jmeter/trunk/xdocs/changes.xml
    jmeter/trunk/xdocs/usermanual/functions.xml
Comment 3 The ASF infrastructure team 2022-09-24 20:38:12 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4714