use of com.testsigma.automator.entity.TestSuiteEntity in project testsigma by testsigmahq.
the class ExecutionEnvironmentRunner method checkForEmptyEnvironment.
public void checkForEmptyEnvironment() throws AutomatorException {
boolean isEmpty = true;
for (TestSuiteEntity entity : testDeviceEntity.getTestSuites()) {
if (entity.getTestCases().size() > 0) {
isEmpty = false;
break;
}
}
if (isEmpty) {
AutomatorException ex = new AutomatorException(AutomatorMessages.NO_TESTCASES_AVAILABLE, AutomatorMessages.NO_TESTCASES_AVAILABLE);
ex.setDispMessage(AutomatorMessages.NO_TESTCASES_AVAILABLE);
throw ex;
}
}
Aggregations