background image
<< Junit Sampler Tutorial | Step-by-step Usage >>

Append assertion error

<< Junit Sampler Tutorial | Step-by-step Usage >>
Append assertion error ­ By default, the sampler will not append the assert failures to the
failure message. To see the message in the result tree, check the option.
Append runtime exception ­ By default, the sampler will not append the exceptions to
the failure message. To see the stacktrace, check the option
The current implementation of the sampler will try to create an instance using the string
constructor first. If the test class does not declare a string constructor, the sampler will look
for an empty constructor. Example below:
Empty Constructor:
public class myTestCase {
public myTestCase() {}
}
String Constructor:
public class myTestCase {
public myTestCase(String text) {
super(text);
}
}