public void TC002_VerifyFieldOptionsFunctionality(String Bname)
        {
            TestFixtureSetUp(Bname, "TC002-Verify Field options functionality.");
            try
            {
                loginPage.navigateToLoginPage().VerifyLoginPageScreenInDetail();
                loginPage.loginUsingValidEmailIdAndPassword();

                homePage.newVerifyHomePage();
                homePage.VerifyAccountOrSwitchIfRequired("QA Testing - Brand");
                fieldOptions.VerifyFieldOptions();
            }
            catch (Exception e)
            {
                Logging.LogStop(this.driver, test, e, MethodBase.GetCurrentMethod(), Bname + "_TestSuite02_Reskin_FieldOptions_TC002");
                throw;
            }
            driver.Quit();
        }
Exemple #2
0
        public void TC006_VerifyThatFieldsOfTheAgGridShouldDisplayAsPerTheSelectionMadeFromTheFieldOptions(String Bname)
        {
            TestFixtureSetUp(Bname, "TC006-Verify Fields of the AgGrid should display as per the selection made from the Field options");
            try
            {
                loginPage.navigateToLoginPage().VerifyLoginPageScreenInDetail();
                loginPage.loginUsingValidEmailIdAndPassword();

                homePage.newVerifyHomePage();
                homePage.VerifyAccountOrSwitchIfRequired("QA Testing - Brand Canada");
                homePage.selectOptionFromSideNavigationBar("Print Dynamics Dashboard (Ad)");
                homePage.newVerifyHomePage();
                homePage.VerifyTableViewOfAgGrid();

                string[] agGridList1 = fieldOptions.captureColumnNamesOfAgGridInOrder();
                fieldOptions.VerifyFieldOptions();
                string[] visibleList1 = fieldOptions.getItemsFromFieldInFieldOptionsPopup("Visible");
                string[] movedItems   = fieldOptions.moveItemsFromHiddenToVisible(1);
                fieldOptions.VerifyAddedItemsInVisibleItems(movedItems);
                string[] visibleList2 = fieldOptions.getItemsFromFieldInFieldOptionsPopup("Visible");
                fieldOptions.compareListOfItemsInOrder(visibleList1, visibleList2, false);
                fieldOptions.clickButtonOnFieldOptionsPopup("Apply");
                fieldOptions.VerifyFieldOptions(false);
                string[] agGridList2 = fieldOptions.captureColumnNamesOfAgGridInOrder();
                fieldOptions.compareListOfItemsInOrder(agGridList2, visibleList2);
            }
            catch (Exception e)
            {
                Logging.LogStop(this.driver, test, e, MethodBase.GetCurrentMethod(), Bname + "_TestSuite17_Reskin_AgGrid_TC006");
                throw;
            }
            driver.Quit();
        }