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: [email protected]
        ReportedBy: [email protected]


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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to