Search in sources :

Example 1 with TestSuiteEntity

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;
    }
}
Also used : AutomatorException(com.testsigma.automator.exceptions.AutomatorException) TestSuiteEntity(com.testsigma.automator.entity.TestSuiteEntity)

Aggregations

TestSuiteEntity (com.testsigma.automator.entity.TestSuiteEntity)1 AutomatorException (com.testsigma.automator.exceptions.AutomatorException)1