Beispiel #1
0
        public void TC018_VerifyThatClickingAnywhereExceptForTheViewAd_Markets_OccurrencesOrDetailsButtonShouldNotOpenTheAdModalWindowAndAdShouldBeSelected(String Bname)
        {
            TestFixtureSetUp(Bname, "TC018-Verify on Clicking anywhere except for the View Ad, Markets , Occurrences or Details button  should not open the Ad Modal Window & Ad should be Selected");
            try
            {
                loginPage.navigateToLoginPage().VerifyLoginPageScreenInDetail();
                loginPage.loginUsingValidEmailIdAndPassword();

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

                homePage.selectViewForResultsDisplay("Details");
                homePage.VerifyDetailsViewOfAgGrid(true);
                string adCode = carousels.selectRecordFromResults("Details");
                carousels.VerifyViewAdFunctionality(false);
                carousels.VerifyCheckboxInAgGrid(adCode, "Details");
            }
            catch (Exception e)
            {
                Logging.LogStop(this.driver, test, e, MethodBase.GetCurrentMethod(), Bname + "_TestSuite17_Reskin_AgGrid_TC018");
                throw;
            }
            driver.Quit();
        }
Beispiel #2
0
        public void TC005_VerifyViewAdFunctionality(String Bname)
        {
            TestFixtureSetUp(Bname, "TC005-Verify View Ad Functionality.");
            try
            {
                loginPage.navigateToLoginPage().VerifyLoginPageScreenInDetail();
                loginPage.loginUsingValidEmailIdAndPassword();

                homePage.newVerifyHomePage();
                homePage.VerifyAccountOrSwitchIfRequired("QA Testing - Brand");
                carousels.VerifyCarousels();
                carousels.clickButtonOnCarousel("View Ad");
                carousels.VerifyViewAdFunctionality();
            }
            catch (Exception e)
            {
                Logging.LogStop(this.driver, test, e, MethodBase.GetCurrentMethod(), Bname + "_TestSuite03_Reskin_Carousels_TC005");
                throw;
            }
            driver.Quit();
        }
        public void TC001_VerifyThatClickingOnTheViewAd_MarketsOrDetailsButtonInAgGridDetailOrThumbnailViewShouldOpenAModalWindowWithViewAd_Markets_MoreDetailsAndDownloadTab(String Bname)
        {
            TestFixtureSetUp(Bname, "TC001-Verify on clicking the View Ad, Markets or Details button in AgGrid's detail or thumbnail view should open a modal window with View ad, Markets , More details & Download tab.");
            try
            {
                loginPage.navigateToLoginPage().VerifyLoginPageScreenInDetail();
                loginPage.loginUsingValidEmailIdAndPassword();

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

                homePage.selectViewForResultsDisplay("Details");
                homePage.VerifyDetailsViewOfAgGrid();

                viewAdPopup.clickOnButtonOfResultsCard("View Ad");
                carousels.VerifyViewAdFunctionality(true, false);
                viewAdPopup.clickOnButtonOfViewAdPopup("Close");
                carousels.VerifyViewAdFunctionality(false);

                viewAdPopup.clickOnButtonOfResultsCard("Details");
                carousels.VerifyDetailsFunctionality(true, false);
                viewAdPopup.clickOnButtonOfViewAdPopup("Close");
                carousels.VerifyDetailsFunctionality(false);

                viewAdPopup.clickOnButtonOfResultsCard("Download");
                viewAdPopup.VerifyDownloadsFunctionality(true);
                viewAdPopup.clickOnButtonOfViewAdPopup("Close");
                viewAdPopup.VerifyDownloadsFunctionality(false);

                homePage.selectViewForResultsDisplay("Thumbnail");
                homePage.VerifyThumbnailViewOfAgGrid();

                viewAdPopup.clickOnButtonOfResultsCard("View Ad");
                carousels.VerifyViewAdFunctionality(true, false);
                viewAdPopup.clickOnButtonOfViewAdPopup("Close");
                carousels.VerifyViewAdFunctionality(false);

                viewAdPopup.clickOnButtonOfResultsCard("Details");
                carousels.VerifyDetailsFunctionality(true, false);
                viewAdPopup.clickOnButtonOfViewAdPopup("Close");
                carousels.VerifyDetailsFunctionality(false);
            }
            catch (Exception e)
            {
                Logging.LogStop(this.driver, test, e, MethodBase.GetCurrentMethod(), Bname + "_TestSuite06_Reskin_ViewAdPopup_TC001");
                throw;
            }
            driver.Quit();
        }