/** * Case ID:76663. Test Case Name: Open user guide when user is in "My Profile" screen. * Pre-Condition: Post-Condition: Done with OSs and browsers : Generated by chinhdtt at 2014/05/19 * 12:12:55 */ @Test public void test05_OpenUserGuideWhenUserIsInMyProfileScreen() { info("Test 5: Open user guide when user is in My Profile screen"); String URL = "http://docs.exoplatform.com/public/index.jsp?topic=/PLF42/PLFUserGuide.ManagingYourPersonalApplications.ManagingYourProfile.html"; /* - Connect to Intranet - Open "My Profile" screen *Expected Outcome: - The"My Profile" page is displayed - The Top navigation bar is displayed - The Help button is displayed in the right of the bar */ nav.goToMyProfile(); 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.ManagingYourProfile.html */ click(ELEMENT_HELP_ICON); info("Check URL is shown"); Utils.pause(5000); for (String winHandle : driver.getWindowHandles()) { driver.switchTo().window(winHandle); } Utils.pause(1000); assert driver.getCurrentUrl().equalsIgnoreCase(URL); info("URL " + driver.getCurrentUrl()); }
/** * == User navigates in his own personal pages == Test case ID: 74383 Step 1: Show personal * applications */ @Test public void test02_UserNavigatesInHisOwnPersonalPages() { /*Step 1: Show personal applications*/ // - Login as an user // - Connect to Intranet // - Mouse over on User name on top navigation, the select "My Profile" link naviToolbar.goToMyProfile(); // - The Horizontal toolbar is displayed // - The list of applications of space are displayed in the following order: // * My Profile waitForAndGetElement(ELEMENT_MY_PROFILE_TAB); // * My Activity Stream waitForAndGetElement(ELEMENT_MY_ACTIVITY_STREAM_TAB); // * My Connections waitForAndGetElement(ELEMENT_MY_CONNECTIONS_TAB); // * My Wiki waitForAndGetElement(ELEMENT_MY_WIKI_TAB); // * My Dashboard waitForAndGetElement(ELEMENT_MY_DASHBOARD_TAB); // - Click on each applications, the application will show up in the main page // * My Profile click(ELEMENT_MY_PROFILE_TAB); waitForAndGetElement(ELEMENT_PROFILE_BASIC_INFO_FORM); // * My Activity Stream click(ELEMENT_MY_ACTIVITY_STREAM_TAB); waitForAndGetElement(ELEMENT_MY_ACTIVITY_STREAM_FORM); // * My Connections click(ELEMENT_MY_CONNECTIONS_TAB); waitForAndGetElement(ELEMENT_MY_CONNECTION_FORM); // * My Wiki click(ELEMENT_MY_WIKI_TAB); waitForAndGetElement(ELEMEMT_MY_WIKI_FORM); // * My Dashboard click(ELEMENT_MY_DASHBOARD_TAB); waitForAndGetElement(ELEMENT_MY_DASHBOARD_FORM); }