https://issues.apache.org/bugzilla/show_bug.cgi?id=45009
Summary: Locally manage user defined variables
Product: JMeter
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Main
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED], [EMAIL PROTECTED]
With our JMeter-testcases, we have several test cases that use identical user
defined variables (e.g. e-mail adressess, hosts, ...). In order to be able to
manage them locally (e.g. in case of changes) we store them in an xml file.
Inside JMeter, we do the following:
- Pass path of the xml file to JMeter via console: "jmeter
-Jproperties_file=PATH_TO_FILE"
- extract path into JMeter: ${__P(properties_file)}
- extract values via XPath: ${__XPath(...)}
- the whole statement to read e.g. a hostname would be:
${__XPath{__P{properties_file)},/jmeter/[EMAIL PROTECTED]"host"]/text()}
Basically, this works. However, could it be possible to enhance the
JMeter-methods such as that ugly string can be shortened a bit? (e.g. solution
in 2 parts:
1. define PATH_TO_CONFIG_FILE via console or user defined variable
2. define main part of the xml statement via var
3. call method like ${__getProp(file, name)}
Other suggestions are naturally welcome!
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]