コード例 #1
0
  // Copy/Paste a node into another node in the same navigation
  @Test()
  public void test01_CopyPasteNodeInSameNavigation() {
    // Goto Group Sites
    goToGroupSites();

    // Select Edit Navigation of Content Management
    waitForElementPresent(CONTENT_EDIT_NAVI_LINK);
    click(CONTENT_EDIT_NAVI_LINK);

    // Copy Node on Content Explorer
    waitForElementPresent(CONTENT_EXPLORER);
    copyNode(CONTENT_EXPLORER);

    // Paste Node on Content Administration
    waitForElementPresent(CONTENT_ADMINISTRATION);
    pasteNode(CONTENT_ADMINISTRATION);

    // Save
    save();
    waitForElementNotPresent(CONTENT_EXPLORER);

    // Select Edit Navigation of Content Management
    waitForElementPresent(CONTENT_EDIT_NAVI_LINK);
    click(CONTENT_EDIT_NAVI_LINK);
    click(CONTENT_ADMINISTRATION);

    // Verify Copy/Paste result and Reset data
    waitForElementPresent(CHILD_NODE);
    rightClickOnElement(CHILD_NODE);
    click(ELEMENT_NODE_DELETE);
    waitForConfirmation(DELETE_CONFIRMATION_MESSAGE);
    waitForElementNotPresent(CHILD_NODE);
    save();
    waitForElementNotPresent(CONTENT_EXPLORER);
  }
コード例 #2
0
  // Copy/Paste a node into the same place
  @Test()
  public void test03_CopyPasteNodesInSamePlace() {
    // Goto Group Sites
    goToGroupSites();

    // Select Edit Navigation of Content Management
    waitForElementPresent(CONTENT_EDIT_NAVI_LINK);
    click(CONTENT_EDIT_NAVI_LINK);

    // Copy Node on Content Explorer
    waitForElementPresent(CONTENT_EXPLORER);
    copyNode(CONTENT_EXPLORER);

    // Paste Node on Content Administration
    waitForElementPresent(CONTENT_ADMINISTRATION);
    pasteNode(CONTENT_ADMINISTRATION);

    // Save
    save();
    waitForElementNotPresent(CONTENT_EXPLORER);

    // Select Edit Navigation of Content Management
    waitForElementPresent(CONTENT_EDIT_NAVI_LINK);
    click(CONTENT_EDIT_NAVI_LINK);

    click(CONTENT_ADMINISTRATION);
    copyNode(By.xpath(CHILD_NODE));
    pasteNode(CONTENT_ADMINISTRATION);

    // Verify display message to notice that Node already existed
    waitForTextPresent(SAME_PLACE_MESSAGE);
    click(OK_BUTTON);

    rightClickOnElement(CHILD_NODE);
    click(ELEMENT_NODE_DELETE);
    waitForConfirmation(DELETE_CONFIRMATION_MESSAGE);
    waitForElementNotPresent(CHILD_NODE);
    save();
    waitForElementNotPresent(CONTENT_EXPLORER);
  }