DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=33130>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=33130 Summary: JMeter "-r" option does not read values on command line Product: JMeter Version: 2.0.2 Platform: PC OS/Version: Windows 2000 Status: NEW Severity: blocker Priority: P1 Component: Main AssignedTo: jmeter-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Mike Stover confirmed this bug on 1/15/2005. *** see JMeter list with subject: "RE: Can I specify the number of threads via command line parameter" "I imagine this is because the __P function reads the jmeter property at the time the test is run. When you specify the "-r" option, that means the test is being sent to a remote server and then run, but the remote server knows nothing about the jmeter property values on the client machine. At run time, __P is evaluated, no such property is found, and the default is used." *** Description of bug I am having a problem with JMeter not reading from the command line when using the "-r" option. For example, setting the Thread Group's "Number of Threads". However, it will use the default value specified in the ${__P()} function. Whenever I remove the -r option from the command line my JMeter reads the correct value specified on the command line. *** Here is an example of my JMeter script. TestPlan | -Thread Group [ Number of Threads = ${__P(group1.threads,5)} ] | --HTTP Request Defaults [ Server Name = (${__P (serverName,)}) ] | --HTTP Request | | | ---Response Assertion | --Aggregate Report *** Here is the command line to start the JMeter script. jmeter -n -t C:\Test.jmx -JserverName=%1 -Jgroup1.threads=%2 -l %SCALA_RESULTS%\ %Results%%2.csv -r *** Here is the results of the script from the console window Created the tree successfully Configuring remote engine for 10.180.77.61 [Full GC 6508K->668K(396544K), 0.0571472 secs] Starting remote engines Remote engines have been started Tidying up ... ... end of run *** However it uses the default value for the threads, which is specified in the jmx file. I tried not specifying the default value but then test hangs when the -r option is specified. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]