예제 #1
0
  @Override
  public List<TCase> findTestCaseActiveAutomatedBySystem(String test, String system) {
    TCase tCase =
        factoryTCase.create(
            test, null, null, null, null, null, null, null, null, null, null, null, null, null, -1,
            null, null, null, null, null, "Y", null, null, null, null, null, null, null, null, null,
            null, null, null, null);

    List<TCase> result = new ArrayList();
    List<TCase> testCases = findTestCaseByAllCriteria(tCase, null, system);
    for (TCase testCase : testCases) {
      if (!testCase.getGroup().equals("PRIVATE")) {
        result.add(testCase);
      }
    }
    return result;
  }
예제 #2
0
  @Override
  public List<String> findTestWithTestCaseActiveAutomatedBySystem(String system) {
    TCase tCase =
        factoryTCase.create(
            null, null, null, null, null, null, null, null, null, null, null, null, null, null, -1,
            null, null, null, null, null, "Y", null, null, null, null, null, null, null, null, null,
            null, null, null, null);

    List<String> result = new ArrayList();
    List<TCase> testCases = findTestCaseByAllCriteria(tCase, null, system);
    for (TCase testCase : testCases) {
      if (!testCase.getGroup().equals("PRIVATE")) {
        result.add(testCase.getTest());
      }
    }
    Set<String> uniqueResult = new HashSet<String>(result);
    result = new ArrayList();
    result.addAll(uniqueResult);
    Collections.sort(result);
    return result;
  }