예제 #1
0
        public void TC010_VerifyDataReportsScheduleIconWhenAppliedSearchHas50000PlusRecords(String Bname)
        {
            TestFixtureSetUp(Bname, "TC010-Verify Data reports Schedule icon when applied search has 50,000 plus records.");
            try
            {
                loginPage.navigateToLoginPage().verifyLoginPageScreenInDetail();
                loginPage.loginUsingValidEmailIdAndPassword();

                homePage.verifyHomePage().clickUserMenuAndSelectAccountFromList("QA Testing - Brand Canada");
                homePage.clickSiteNavigationMenuIconAndSelectOptionFromListOnPage("Media");

                brandCanada_Screen.verifyBrandCanadaScreen();
                homePage.clickMenuIconFromScreen("Search");
                searchPage.selectDateRangeOptionFromSection("Last Year");
                schedule.clickButtonOnScreen("Apply Search");

                promoDashboard.clickButtonOnViewActionSection("Export All").verifyExportAllSectionOnDashboardScreen();
                promoDashboard.verifyTiooltipFunctionalityForReportsSection("Data Reports", "Ban", "You have too many items selected. Select fewer than: 50000");
            }
            catch (Exception e)
            {
                Logging.LogStop(this.driver, test, e, MethodBase.GetCurrentMethod(), Bname + "_TestSuite006_Schedulers_TC010");
                throw;
            }
            driver.Quit();
        }
        public void TC003_VerifyDownloadTooltipWhenDownloadIsAvailableForDataReportsSection(String Bname)
        {
            TestFixtureSetUp(Bname, "TC003-Verify Download tooltip when download is available for Data Reports Section.");
            try
            {
                loginPage.navigateToLoginPage().verifyLoginPageScreenInDetail();
                loginPage.loginUsingValidEmailIdAndPassword();

                homePage.verifyHomePage().clickUserMenuAndSelectAccountFromList("QA Testing - Promo");
                homePage.clickSiteNavigationMenuIconAndSelectOptionFromListOnPage("Dashboard");

                promoDashboard.verifyPromoDashboardScreen();
                promoDashboard.clickDetailViewButtonAndVerifyOptionsToClick("Table");
                promoDashboard.clickButtonOnViewActionSection("Export All").verifyExportAllSectionOnDashboardScreen();
                promoDashboard.selectRecordFromViewSection();
                promoDashboard.verifyOrClickExportAllSectionInDetailOnScreen("Data Reports");
                promoDashboard.verifyTiooltipFunctionalityForReportsSection("Data Reports", "Download");
            }
            catch (Exception e)
            {
                Logging.LogStop(this.driver, test, e, MethodBase.GetCurrentMethod(), Bname + "_TestSuite005_PromoExportFunctionality_TC003");
                throw;
            }
            driver.Quit();
        }