Ejemplo n.º 1
0
 private boolean hasAnythingToExecute(final TestCase testCase) {
   for (final RobotExecutableRow<?> robotExecutableRow : testCase.getTestExecutionRows()) {
     if (robotExecutableRow.isExecutable()) {
       return true;
     }
   }
   return false;
 }
Ejemplo n.º 2
0
 private List<? extends RobotExecutableRow<?>> collectTestCaseExeRowsForVariablesChecking(
     final TestCase testCase) {
   final List<RobotExecutableRow<?>> exeRows = newArrayList();
   final List<TestCaseSetup> setups = testCase.getSetups();
   if (!setups.isEmpty()) {
     exeRows.add(setups.get(0).asExecutableRow());
   }
   exeRows.addAll(testCase.getTestExecutionRows());
   final List<TestCaseTeardown> teardowns = testCase.getTeardowns();
   if (!teardowns.isEmpty()) {
     exeRows.add(teardowns.get(0).asExecutableRow());
   }
   return exeRows;
 }