You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jakarta.apache.org by bu...@apache.org on 2010/11/11 15:39:00 UTC
DO NOT REPLY [Bug 50254] New: Java Request fails to load custom Java
class for testing (not in classname )
https://issues.apache.org/bugzilla/show_bug.cgi?id=50254
Summary: Java Request fails to load custom Java class for
testing (not in classname )
Product: JMeter
Version: 2.4
Platform: PC
Status: NEW
Severity: major
Priority: P2
Component: Main
AssignedTo: notifications@jakarta.apache.org
ReportedBy: theme@bigmir.net
Hi
I've created java class to load test it, but JMeter doesn't recognize it.
I've made 2 changes:
1. add jars to classspath (jmeter.bat):
%JM_START% %JM_LAUNCH% %ARGS% %JVM_ARGS% -classpath
"C:\lib\jakarta-jmeter-2.4\bin\ApacheJMeter.jar;C:\work\performance\out\calypso-jmeter.jar;C:\lib\jakarta-jmeter-2.4\lib\*"
org.apache.jmeter.NewDriver %JMETER_CMD_LINE_ARGS%
2. Created JavaSampler:
Code attached:
public class CreateUserTest extends AbstractJavaSamplerClient implements
Serializable {
private static final long serialVersionUID = 240L;
public SampleResult runTest(JavaSamplerContext context) {
SampleResult rez = new SampleResult();
rez.setResponseMessage("his name is: " + context.getParameter("name",
"megamind"));
try {
LocalConnectionTester.createMegamind();
rez.setSuccessful(true);
} catch (Exception e) {
rez.setSuccessful(false);
e.printStackTrace();
rez.setSuccessful(true);
return rez;
}
}
--
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: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org
DO NOT REPLY [Bug 50254] Java Request fails to load custom Java
class for testing (not in classname )
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50254
Sebb <se...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
OS/Version| |All
--- Comment #1 from Sebb <se...@apache.org> 2010-11-11 11:24:47 EST ---
Bugzilla is not a support forum.
Please subscribe to the JMeter user list and ask there.
--
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: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org