コード例 #1
0
ファイル: Gatein_Dashboard.java プロジェクト: khanhnt/ui-test
  /** CaseId: 68859 Change container when edit layout for user's page */
  @Test
  public void test04_ChangeContainerWhenEditLayoutUserPage() {
    String pageName = "gateinsniff04";
    String title = "Row1";

    navTool.goToDashboard();
    pageE.createNewPageEmptyLayout(pageName);
    navTool.goToEditPageEditor();

    info("Add container");
    pageE.addNewContainer("Rows Layout", "oneRow");
    waitForAndGetElement(ELEMENT_DROP_TARGET_HAS_LAYOUT);
    click(ELEMENT_SWITCH_VIEW_MODE);
    waitForAndGetElement(ELEMENT_DROP_TARGET_HAS_LAYOUT);
    click(ELEMENT_SWITCH_VIEW_MODE);

    info("Edit container");
    mouseOver(ELEMENT_DROP_TARGET_HAS_LAYOUT, true);
    click(ELEMENT_EDIT_CONTAINER_ICON);
    type(ELEMENT_CONTAINER_TITLE, title, true);
    but.save();
    mouseOver(ELEMENT_DROP_TARGET_HAS_LAYOUT, true);
    waitForAndGetElement("//*[@class='UIRowContainer']//span[text()='" + title + "']");

    info("Delete container");
    pageE.removeContainer(ELEMENT_DROP_TARGET_HAS_LAYOUT, ELEMENT_DELETE_CONTAINER_ICON);
    waitForElementNotPresent(ELEMENT_DROP_TARGET_HAS_LAYOUT);
    click(ELEMENT_PAGE_FINISH_BUTTON);
    waitForElementNotPresent(ELEMENT_PAGE_FINISH_BUTTON, 60000);

    deleteTabOnDashboard(pageName);
  }
コード例 #2
0
  /**
   * Case ID:76662. Test Case Name: Open user guide when user is in "My Dashboard" screen.
   * Pre-Condition: Post-Condition: Done with OSs and browsers : Generated by chinhdtt at 2014/05/19
   * 12:12:55
   */
  @Test
  public void test04_OpenUserGuideWhenUserIsInMyDashboardScreen() {
    info("Test 4: Open user guide when user is in My Dashboard screen");
    String URL =
        "http://docs.exoplatform.com/public/index.jsp?topic=/PLF42/PLFUserGuide.ManagingYourPersonalApplications.ManagingYourDashboard.html";
    /*
    - Connect to Intranet
    - Open "My Dashboard" screen
     *Expected Outcome:
    - The "My Dashboard" page is displayed
    - The Top navigation bar is displayed
    - The Help button is displayed in the right of the bar		*/
    nav.goToDashboard();
    waitForAndGetElement(ELEMENT_NAVIGATION_TOOLBAR_HOMEPAGE);
    info("Help button is displayed");
    waitForAndGetElement(ELEMENT_HELP_ICON);

    /*
    - Click on the button "?"
     *Input Data:
     *Expected Outcome:
    - A new tab in the internet browser is opened
    - The user guide is opened on: http://docs.exoplatform.com/public/index.jsp?topic=/PLF41/PLFUserGuide.ManagingYourPersonalApplications.ManagingYourDashboard.html		*/
    click(ELEMENT_HELP_ICON);
    info("Open new window");
    Utils.pause(5000);
    for (String winHandle : driver.getWindowHandles()) {
      driver.switchTo().window(winHandle);
    }
    Utils.pause(1000);
    //		driver.navigate().to(URL);
    assert driver.getCurrentUrl().equalsIgnoreCase(URL);
    info("URL " + driver.getCurrentUrl());
  }
コード例 #3
0
ファイル: Gatein_Dashboard.java プロジェクト: khanhnt/ui-test
 /** CaseId: 68855 + 70365 Drag and drop gadget -> delete gadget */
 @Test
 public void test01_DragDropGadget_DeleteGadget() {
   navTool.goToDashboard();
   dragDropGadget("Services Management");
   click(ELEMENT_CLOSE_ADD_GADGET_WINDOW);
   actionOnGadgetOnDashboard("Services Management", "Delete Gadget");
 }
コード例 #4
0
ファイル: Gatein_Dashboard.java プロジェクト: khanhnt/ui-test
  /** CaseId: 68860 Change application when edit layout for user's page */
  @Test
  public void test00_ChangeAppWhenEditingPageLayout() {
    String pageName = "gateinsniff05";

    navTool.goToDashboard();
    pageE.createNewPageWithLayout(pageName, 2);
    navTool.goToEditPageEditor();

    info("Add new application to page");
    addContentListPortletForPage();
    click(ELEMENT_SWITCH_VIEW_MODE);

    info("Edit portlet");
    pageE.selectCLVPath("General Drives/Sites Management/acme", "documents");
    click(ELEMENT_SWITCH_VIEW_MODE);
    waitForTextPresent("offices.jpg");
    waitForTextPresent("metro.pdf");
    waitForTextPresent("conditions.doc");
    click(ELEMENT_SWITCH_VIEW_MODE);

    info("Move portlet to row 2");
    pageE.movePortletOnContainer(
        ELEMENT_FRAME_CONTAIN_PORTLET,
        By.xpath("//*[text()='Content List']/..//*[@class='uiIconDragDrop uiIconWhite']"),
        ELEMENT_DROP_TARGET_HAS_LAYOUT);

    info("Delete portlet");
    pageE.removePortlet(ELEMENT_FRAME_CONTAIN_PORTLET, ELEMENT_DELETE_PORTLET_ICON);
    waitForTextNotPresent("Sorry, no articles are available.");
    waitForTextNotPresent("offices.jpg");

    deleteTabOnDashboard(pageName);
  }
コード例 #5
0
ファイル: Gatein_Dashboard.java プロジェクト: khanhnt/ui-test
  /** CaseId: 68884 + 70367 + 70368 Add - rename - delete tab */
  @Test
  public void test03_AddRenameDeleteTab() {
    String name = "New tab";
    String newName = "New tab update";

    navTool.goToDashboard();
    addNewTabOnDashboard(name, true);
    editTabNameOnDashboard(name, newName);
    deleteTabOnDashboard(newName);
  }
コード例 #6
0
ファイル: Gatein_Dashboard.java プロジェクト: khanhnt/ui-test
  /** CaseId: 68883 + 70365 add new gadget -> delete gadget */
  @Test
  public void test02_AddGadget_DeleteGadget() {
    String url = "http://www.labpixies.com/campaigns/hangman/hangman.xml";
    String name = "Hangman";

    navTool.goToDashboard();
    addNewGadget(url, name);
    click(ELEMENT_CLOSE_ADD_GADGET_WINDOW);
    actionOnGadgetOnDashboard(name, "Delete Gadget");
  }
コード例 #7
0
ファイル: Gatein_Dashboard.java プロジェクト: khanhnt/ui-test
  /** CaseId: 68861 Add application into container when edit layout for user's page */
  @Test
  public void test06_AddAppIntoContainerWhenEditingPageLayout() {
    String pageName = "gateinsniff06";

    navTool.goToDashboard();
    pageE.createNewPageWithLayout(pageName, 2);
    navTool.goToEditPageEditor();

    info("Add new application to page");
    addContentListPortletForPage();
    click(ELEMENT_PAGE_FINISH_BUTTON);
    waitForElementNotPresent(ELEMENT_PAGE_FINISH_BUTTON, 60000);

    deleteTabOnDashboard(pageName);
  }