}
public void run(TestResult result) {
result.startTest(this);
LocalDispatcher dispatcher = modelTestSuite.getDispatcher();
try {
<BUG>Map serviceResult = dispatcher.runSync(serviceName, UtilMisc.toMap("test", this, "testResult", result));
</BUG>
String errorMessage = (String) serviceResult.get(ModelService.ERROR_MESSAGE);
if (UtilValidate.isNotEmpty(errorMessage)) {
result.addFailure(this, new AssertionFailedError(errorMessage));

}
public int countTestCases() {
return 1;
}
public void run(TestResult result) {
result.startTest(this);
LocalDispatcher dispatcher = modelTestSuite.getDispatcher();
try {
Map<String, Object> serviceResult = dispatcher.runSync(serviceName, UtilMisc.toMap("test", this, "testResult", result));
String errorMessage = (String) serviceResult.get(ModelService.ERROR_MESSAGE);
if (UtilValidate.isNotEmpty(errorMessage)) {
result.addFailure(this, new AssertionFailedError(errorMessage));
