Ejemplo n.º 1
0
        public void testTC_26_VerifyEditUserInfoButtonAndTicketLinkInTicketsTab(Dictionary <String, String> TestData)
        {
            //Login to Application";
            Common.NavigateTo(driver, Util.EnvironmentSettings["Server"]);
            Common.Login(driver, TestData["InternalUserName"], TestData["InternalPassword"]);
            Dashboard.VerifyPage(driver);

            //This step is to Click on Super Search and Select Users icon
            Dashboard.ClickOnClosePopUp(driver);
            Dashboard.ClickSuperSearchIcon(driver);
            Dashboard.ClickAnIconInSuperSearch(driver, "users");

            //This step is to Verify Super Search bar and Icon selected in Super Search
            Dashboard.VerifySuperSearchBar(driver);
            Dashboard.VerifySuperSearchSelectedFilterIsActive(driver, "users");

            //This step is to Enter User in Super Search and Verify the result
            string[] results = { "Name", "Email", "Client Name", "Client ID" };
            Dashboard.EnterTextInSuperSearch(driver, TestData["User"]);
            Dashboard.VerifySuperSearchLocationResults(driver, results);
            Dashboard.SelectSearchResults(driver, "Client ID", "0");

            //This step is to Click on Tickets tab, Click Edit User Info button and Verify Users page
            Dashboard.ClickTabInSuperSearch(driver, "Tickets");
            Dashboard.ClickEditUserInfoButton(driver);
            Selenide.SwitchtoNewWindow(driver);
            UserPage.VerifyUsersPage(driver);
            Selenide.SwithToFirstWindow(driver);

            //This step is to Click on Tickets tab, Click a Ticket link and Verify Tickets page
            Dashboard.ClickTabInSuperSearch(driver, "Tickets");
            Dashboard.ClickTicketLinkInSuperSearchTicketsTab(driver);
            Selenide.SwithToLastWindow(driver);
            HelpDesk.VerifyTicketingPage(driver);
        }
        public void testTC_24_VerifyUserSearchResultsForUsersFilterAndInventoryTab(Dictionary <String, String> TestData)
        {
            //Login to Application
            Common.NavigateTo(driver, Util.EnvironmentSettings["Server"]);
            Common.Login(driver, TestData["InternalUserName"], TestData["InternalPassword"]);
            Dashboard.VerifyPage(driver);

            //This step is to Click on Super Search and Select Users icon
            Dashboard.ClickOnClosePopUp(driver);
            Dashboard.ClickSuperSearchIcon(driver);
            Dashboard.ClickAnIconInSuperSearch(driver, "users");

            //This step is to Verify Super Search bar and Icon selected in Super Search
            Dashboard.VerifySuperSearchBar(driver);
            Dashboard.VerifySuperSearchSelectedFilterIsActive(driver, "users");

            //This step is to Enter User in Super Search and Verify the result
            string[] results = { "Name", "Email", "Client Name", "Client ID" };
            Dashboard.EnterTextInSuperSearch(driver, TestData["User"]);
            Dashboard.VerifySuperSearchLocationResults(driver, results);

            //This step is to Click on Inventory tab,Click on Open Inventory button and Verify Inventory page user
            Dashboard.ClickTabInSuperSearch(driver, "Inventory");
            Dashboard.ClickOpenInventoryButton(driver);
            Selenide.SwitchtoNewWindow(driver);
            Dashboard.VerifyInventoryPageUser(driver, TestData["User"]);
        }
Ejemplo n.º 3
0
        public void testTC_27_VerifyButtonInInfoTab(Dictionary <String, String> TestData)
        {
            //Login to Application
            Common.NavigateTo(driver, Util.EnvironmentSettings["Server"]);
            Common.Login(driver, TestData["InternalUserName"], TestData["InternalPassword"]);
            Dashboard.VerifyPage(driver);

            //This step is to Click on Super Search and Select Users icon
            Dashboard.ClickOnClosePopUp(driver);
            Dashboard.ClickSuperSearchIcon(driver);
            Dashboard.ClickAnIconInSuperSearch(driver, "users");

            //This step is to Verify Super Search bar and Icon selected in Super Search
            Dashboard.VerifySuperSearchBar(driver);
            Dashboard.VerifySuperSearchSelectedFilterIsActive(driver, "users");

            //This step is to Enter User in Super Search and Verify the result
            string[] results = { "Name", "Email", "Client Name", "Client ID" };
            Dashboard.EnterTextInSuperSearch(driver, TestData["User"]);
            Dashboard.VerifySuperSearchLocationResults(driver, results);
            Dashboard.SelectSearchResults(driver, "Client ID", "0");

            //This step is to Click on Tickets tab, Click Edit User Info button and Verify Users page
            Dashboard.ClickTabInSuperSearch(driver, "Info");
            Dashboard.ClickEditUserInfoButton(driver);
            Selenide.SwitchtoNewWindow(driver);
            UserPage.VerifyUsersPage(driver);

            //This step is to Navigate back to Info tab, Click on Reset Password button and Verify message
            Selenide.SwithToFirstWindow(driver);
            Dashboard.ClickResetPasswordButton(driver);
            Dashboard.VerifySuccessfulResetPasswordMessage(driver);

            //This step is to Click on Log in as User and Verify message
            Dashboard.ClickLoginAsUserButton(driver);
            Dashboard.VerifyLoginAsUserMessage(driver);
        }