public void TC003_VerifyThatClickingExportButtonShouldOpenThe_SelectAnExportType_SmallModalWithExportOptions_CancelAndSendButtons(String Bname)
        {
            TestFixtureSetUp(Bname, "TC003-Verify Clicking Export button should open the “Select an Export Type ...“ small modal with Export options, Cancel and Send buttons.");
            try
            {
                loginPage.navigateToLoginPage().VerifyLoginPageScreenInDetail();
                loginPage.loginUsingValidEmailIdAndPassword();

                homePage.newVerifyHomePage();
                carousels.clickOnExportOptions("", 0, true);
                carousels.VerifySelectAnExportTypePopup();
            }
            catch (Exception e)
            {
                Logging.LogStop(this.driver, test, e, MethodBase.GetCurrentMethod(), Bname + "_TestSuite04_Reskin_Export_TC003");
                throw;
            }
            driver.Quit();
        }
Ejemplo n.º 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();
        }