public void TC004_VerifyThatUserIsAbleToExportItemsInASelectedFormat(String Bname)
        {
            TestFixtureSetUp(Bname, "TC004-Verify that User is able to Export items in a selected format");
            try
            {
                loginPage.navigateToLoginPage().VerifyLoginPageScreenInDetail();
                loginPage.loginUsingValidEmailIdAndPassword();

                homePage.newVerifyHomePage();
                homePage.VerifyAccountOrSwitchIfRequired("QA Testing - Brand");
                string[] columnNames = fieldOptions.captureColumnNamesOfAgGridInOrder();
                string[,] dataGrid = carousels.convertColumnNameArrayIntoDatagrid(columnNames, null);
                carousels.clickOnExportOptions("", 0);
                carousels.VerifySelectAnExportTypePopup();
                carousels.selectOptionAndClickButtonOnSelectAnExportTypePopup("Send", "Occurrence Report - XLS");
                string screenName = homePage.getActiveScreenNameFromSideNavigationBar();
                string fileName   = brandDashboard.VerifyFileDownloadedOrNotOnScreen("occurrence", "*.xlsx");
                carousels.VerifyDataInExportedFileFromCarousel(fileName, screenName, dataGrid);
            }
            catch (Exception e)
            {
                Logging.LogStop(this.driver, test, e, MethodBase.GetCurrentMethod(), Bname + "_TestSuite04_Reskin_Export_TC004");
                throw;
            }
            driver.Quit();
        }
Exemple #2
0
        public void TC017_VerifyThatUserIsAbleToExportSelectedAdFromCarouselInAllFormats_XLS_PPT_Asset(String Bname)
        {
            TestFixtureSetUp(Bname, "TC017-Verify that user is able to Export Selected ad from carousel in all format (XLS,PPT,Asset)");
            try
            {
                loginPage.navigateToLoginPage().VerifyLoginPageScreenInDetail();
                loginPage.loginUsingValidEmailIdAndPassword();

                homePage.newVerifyHomePage();
                homePage.VerifyAccountOrSwitchIfRequired("QA Testing - Brand");
                carousels.VerifyCarousels();
                carousels.clickButtonOnCarousel("Details");
                carousels.VerifyDetailsFunctionality();
                string[,] dataGrid = carousels.getDetailsFromCarousel();
                carousels.VerifyDetailsFunctionality(false);
                carousels.VerifySelectAdFunctionality(false);
                carousels.clickOnExportOptions("Export");
                carousels.VerifySelectAnExportTypePopup();
                carousels.selectOptionAndClickButtonOnSelectAnExportTypePopup("Send");
                string screenName = homePage.getActiveScreenNameFromSideNavigationBar() + " - QA Testing - Brand";
                string fileName   = brandDashboard.VerifyFileDownloadedOrNotOnScreen("db", "*.xlsx");
                carousels.VerifyDataInExportedFileFromCarousel(fileName, screenName, dataGrid);

                carousels.clickOnExportOptions("Export");
                carousels.VerifySelectAnExportTypePopup();
                carousels.selectOptionAndClickButtonOnSelectAnExportTypePopup("Send", "1 Creative");
                brandDashboard.VerifyFileDownloadedOrNotOnScreen("", "*.pptx");

                carousels.clickOnExportOptions("Export");
                carousels.VerifySelectAnExportTypePopup();
                carousels.selectOptionAndClickButtonOnSelectAnExportTypePopup("Send", "Creative Assets");
                brandDashboard.VerifyFileDownloadedOrNotOnScreen("", "*.zip");
            }
            catch (Exception e)
            {
                Logging.LogStop(this.driver, test, e, MethodBase.GetCurrentMethod(), Bname + "_TestSuite03_Reskin_Carousels_TC017");
                throw;
            }
            driver.Quit();
        }