org.apache.jmeter.protocol.java.sampler
class: JavaSampler.ErrorSamplerClient [javadoc |
source]
java.lang.Object
org.apache.jmeter.protocol.java.sampler.AbstractJavaSamplerClient
org.apache.jmeter.protocol.java.sampler.JavaSampler$ErrorSamplerClient
All Implemented Interfaces:
JavaSamplerClient
A
JavaSamplerClient implementation used for error handling. If an
error occurs while creating the real JavaSamplerClient object, it is
replaced with an instance of this class. Each time a sample occurs with
this class, the result is marked as a failure so the user can see that
the test failed.
Method from org.apache.jmeter.protocol.java.sampler.JavaSampler$ErrorSamplerClient Summary: |
---|
runTest |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from org.apache.jmeter.protocol.java.sampler.JavaSampler$ErrorSamplerClient Detail: |
public SampleResult runTest(JavaSamplerContext p_context) {
log.debug(whoAmI() + "\trunTest");
Thread.yield();
SampleResult results = new SampleResult();
results.setSuccessful(false);
results.setResponseData(("Class not found: " + getClassname()).getBytes());
results.setSampleLabel("ERROR: " + getClassname());
return results;
}
Return SampleResult with data on error. |