New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JMETER function __machineName do not work #2057
Comments
Sebb (migrated from Bugzilla): Obviously the NPE needs to be fixed, but hopefully you will find that one of |
Sebb (migrated from Bugzilla): ${__machineName()} is currently parsed as if there was one parameter - the I'll probably make the parameter optional. |
Michael Kless (migrated from Bugzilla):
Thank you, these hint solves our problem: ${__machineName()} works fine. My Kind regards, Michael. |
Sebb (migrated from Bugzilla): Re-opening as the NPE is not yet fixed. Note that the documentation IS currently correct - it states that the I think it still make sense to make the variable name optional. |
Sebb (migrated from Bugzilla): |
Michael Kless (Bug 44142):
Hello folks,
using function __machineName on WindowsXP with java version "1.4.2_10" do not
work and writes errors to jmeter.log:
2007/12/27 10:58:49 ERROR - jmeter.threads.JMeterThread:
java.lang.NullPointerException
at org.apache.jmeter.functions.MachineName.execute(MachineName.java:66)
at org.apache.jmeter.engine.util.CompoundVariable.execute
(CompoundVariable.java:128)
at org.apache.jmeter.engine.util.CompoundVariable.execute
(CompoundVariable.java:97)
at
org.apache.jmeter.testelement.property.FunctionProperty.getStringValue
(FunctionProperty.java:85)
at org.apache.jmeter.testbeans.TestBeanHelper.prepare
(TestBeanHelper.java:70)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:297)
at java.lang.Thread.run(Unknown Source)
Java-Vesion:
java version "1.4.2_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03)
Java HotSpot(TM) Client VM (build 1.4.2_10-b03, mixed mode)
We are planing a distributed (Remote-)Database-Test-Plan, and we want to
prevent sharing conflicts by using the machineName as a part of the database
tablenames.
Please have a look to the problem.
Thanks in advance,
Michael.
Severity: normal
OS: Windows XP
The text was updated successfully, but these errors were encountered: