예제 #1
0
파일: MoveFile.java 프로젝트: koem/Zimbra
  @AfterMethod(alwaysRun = true)
  public void afterMethod() throws HarnessException {
    logger.info("Checking for the Move Dialog ...");

    // Check if the "Move Dialog is still open
    DialogMove dialog = new DialogMove(app, ((AppAjaxClient) app).zPageBriefcase);
    if (dialog.zIsActive()) {
      logger.warn(dialog.myPageName() + " was still active.  Cancelling ...");
      dialog.zClickButton(Button.B_CANCEL);
    }

    // This step is necessary because next test may be uploading the same
    // file
    // if account is not reset, ZCS will be confused, and the next
    // uploaded file
    // will be deleted per previous command.
    ZimbraAccount.ResetAccountZWC();
  }