public void TC002_3_24_VerifyTheDownloadGridFunctionality(String Bname)
        {
            TestFixtureSetUp(Bname, "TC002_3_24-Verify the Download Grid Functionality");
            try
            {
                loginPage.navigateToLoginPage().VerifyLoginPageScreenInDetail();
                loginPage.loginUsingValidEmailIdAndPassword();

                homePage.newVerifyHomePage();
                homePage.VerifyAccountOrSwitchIfRequired("QA Testing - Brand");
                homePage.selectOptionFromSideNavigationBar("QA Testing Monthly Report");
                homePage.newVerifyHomePage();
                charts.VerifyCharts();
                tabularGrid.VerifyTabularFunctionalityOnCharts();
                tabularGrid.Select_DeselectColumnsFromTabularOptionsButton(new string[] { "Advertiser", "Category", "Subcategory", "Product", "Media Month 12" });
                string[,] dataGrid = tabularGrid.CaptureDataFromTabularGrid();
                tabularGrid.VerifyTabularGridBulkActionsButtonAndChooseOption("Download Grid");
                string fileName = brandDashboard.VerifyFileDownloadedOrNotOnScreen("tabular", "*.xlsx");
                tabularGrid.VerifyDataFromTabularGridInExportedExcelFile(fileName, dataGrid);
            }
            catch (Exception e)
            {
                Logging.LogStop(this.driver, test, e, MethodBase.GetCurrentMethod(), Bname + "_TestSuite15_Reskin_TabularGrid_TC002_3_24");
                throw;
            }
            driver.Quit();
        }
        public void TC035_39_40_41_VerifyDownloadGridFunctionlityAndThatTotalSummaryResultInPivotTableShouldBeAccurate(String Bname)
        {
            TestFixtureSetUp(Bname, "TC035_39_40_41-Verify Download Grid Functionlity And That Total summary result in pivot table should be accurate");
            try
            {
                loginPage.navigateToLoginPage().VerifyLoginPageScreenInDetail();
                loginPage.loginUsingValidEmailIdAndPassword();

                homePage.newVerifyHomePage();
                homePage.VerifyAccountOrSwitchIfRequired("QA Testing - Brand Canada");
                homePage.selectOptionFromSideNavigationBar("Print Report by Media");
                charts.VerifyPivotTable();
                pivotGrid.VerifyPivotOptionsPopup();
                pivotGrid.select_deselectOptionFromPivotOptionsPopup("Show Summary Totals");
                pivotGrid.clickButtonOnPivotOptionsPopup("Apply");
                pivotGrid.VerifyPivotOptionsPopup(false);
                charts.VerifyPivotTable();
                string[] columnNames = pivotGrid.readColumnNamesFromPivotGrid();
                pivotGrid.VerifySummaryTotalRowInPivotGrid(columnNames);
                string[,] dataGrid = charts.captureDataFromPivotTable();
                charts.choosePivotBulkActionsForDataFromPivotTable("Download Grid");
                string fileName = brandDashboard.VerifyFileDownloadedOrNotOnScreen("brand_canada_-_media_spend-pivot", "*.xlsx");
                charts.VerifyDataFromPivotTableInExportedExcelFile(fileName, dataGrid);
                pivotGrid.VerifyColumnwiseSummaryTotalInExportedPivotData(fileName);
            }
            catch (Exception e)
            {
                Logging.LogStop(this.driver, test, e, MethodBase.GetCurrentMethod(), Bname + "_TestSuite09_Reskin_PivotGrid_TC035_39_40_41");
                throw;
            }
            driver.Quit();
        }
Esempio n. 3
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();
        }
        public void TC014_VerifyDownloadGridOptionsFunctionalityInMarketTab(String Bname)
        {
            TestFixtureSetUp(Bname, "TC014-Verify Download Grid options functionality in Market tab.");
            try
            {
                loginPage.navigateToLoginPage().VerifyLoginPageScreenInDetail();
                loginPage.loginUsingValidEmailIdAndPassword();

                homePage.newVerifyHomePage();
                homePage.VerifyAccountOrSwitchIfRequired();

                homePage.selectViewForResultsDisplay("Details");
                homePage.VerifyDetailsViewOfAgGrid();
                viewAdPopup.clickOnButtonOfResultsCard("Details");
                carousels.VerifyDetailsFunctionality(true, false);
                string adCode = carousels.getAdCodeFromCarousel(false);
                viewAdPopup.clickOnButtonOfViewAdPopup("Close");
                carousels.VerifyDetailsFunctionality(false);

                viewAdPopup.clickOnButtonOfResultsCard("Markets");
                carousels.VerifyMarketsFunctionality(true, false);
                string[] dataGrid = viewAdPopup.captureDataFromMarketsViewGrid();
                viewAdPopup.clickOnButtonOfViewAdPopup("Download Grid");
                viewAdPopup.clickOnButtonOfViewAdPopup("Close");
                carousels.VerifyMarketsFunctionality(false);

                string fileName = brandDashboard.VerifyFileDownloadedOrNotOnScreen("export", "*.csv");
                viewAdPopup.VerifyDataInExportedFileFromMarketsViewGrid(fileName, adCode, dataGrid);
            }
            catch (Exception e)
            {
                Logging.LogStop(this.driver, test, e, MethodBase.GetCurrentMethod(), Bname + "_TestSuite06_Reskin_ViewAdPopup_TC014");
                throw;
            }
            driver.Quit();
        }
Esempio n. 5
0
        public void TC005_VerifyThatIfTheDownloadOfTheReportIsEnabled_WhenTheExportStatusIsSuccess_TextShouldBeInBOLDAndClickingReportShouldDownloadTheAssets(String Bname)
        {
            TestFixtureSetUp(Bname, "TC005-Verify if the download of the report is Enabled(When the Export is Success) Text should be in BOLD and Clicking Report should download the assets");
            try
            {
                loginPage.navigateToLoginPage().VerifyLoginPageScreenInDetail();
                loginPage.loginUsingValidEmailIdAndPassword();

                homePage.newVerifyHomePage();
                homePage.selectOptionFromSideNavigationBar("My Exports");
                myExportsPage.VerifyMyExportsPage();
                string[] fileNameAndType = myExportsPage.VerifyThatClickingOnExportNameDownloadsAsset("", false, "", "excel");
                string   fileName        = brandDashboard.VerifyFileDownloadedOrNotOnScreen("", "*." + fileNameAndType[1]);
                myExportsPage.deleteDownloadedFile(fileName);
            }
            catch (Exception e)
            {
                Logging.LogStop(this.driver, test, e, MethodBase.GetCurrentMethod(), Bname + "_TestSuite08_Reskin_MyExportsPage_TC005");
                throw;
            }
            driver.Quit();
        }
        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();
        }