public void TC024_26_VerifyWhenTheSearchIsLoadingAndShowingNoItemsTheCountShouldShow0(String Bname) { TestFixtureSetUp(Bname, "TC024_26-Verify when the search is loading and showing no items the count should show 0"); try { loginPage.navigateToLoginPage().VerifyLoginPageScreenInDetail(); loginPage.loginUsingValidEmailIdAndPassword(); homePage.newVerifyHomePage(); homePage.VerifyAccountOrSwitchIfRequired(); homePage.VerifyAndModifySearchOptions(); searchPage.selectTabOnSearchOptions("Date Range"); searchPage.setCustomDateRange("01/01/2016"); searchPage.clickButtonOnSearchOptions("Apply"); string searchName = homePage.saveNewSearch(); summaryTags.removeSearchNameSummaryTag(searchName); homePage.newVerifyHomePage(); searchPage.VerifyAndLoadSpecificSavedSearch(searchName, true, true); int currCreatives = searchPage.returnNumberOfCreativesOfASearch(searchName); homePage.newVerifyHomePage(); int newCreatives = searchPage.returnNumberOfCreativesOfASearch(searchName); Assert.AreNotEqual(0, currCreatives, "Creative count is 0 for '" + searchName + "' after search is loaded and creatives are present"); secondaryButtons.clickOnSecondaryButtons("Delete"); searchPage.VerifyAndLoadSpecificSavedSearch("New Search", true, true); currCreatives = searchPage.returnNumberOfCreativesOfASearch("New Search"); homePage.newVerifyHomePage(); Assert.AreNotEqual(0, currCreatives, "Creative count is 0 for '" + searchName + "' after search is loaded and creatives are present"); } catch (Exception e) { Logging.LogStop(this.driver, test, e, MethodBase.GetCurrentMethod(), Bname + "_TestSuite07_Reskin_SavedSearchList_TC024_26"); throw; } driver.Quit(); }
public void TC016_VerifyThatClickingOnCloseIconFromSavedSearchTagThatSearchShouldBeRemovedAndDefaultSearchShouldBeDisplayed(String Bname) { TestFixtureSetUp(Bname, "TC016-Verify, Click on 'close' icon from Saved search tag that search should be removed and default search should be displayed"); try { loginPage.navigateToLoginPage().VerifyLoginPageScreenInDetail(); loginPage.loginUsingValidEmailIdAndPassword(); homePage.newVerifyHomePage(); homePage.VerifyAccountOrSwitchIfRequired("QA Testing - Brand"); homePage.newVerifyHomePage(); searchPage.VerifyAndLoadSpecificSavedSearch("New Search", true, true); string[] summary = summaryTags.captureSummaryTagsFromDashboard(); string searchName = homePage.selectSavedSearchOrCreateNewSavedSearch(true, "QA Testing - Brand"); string[] newSummary1 = summaryTags.captureSummaryTagsFromDashboard(); summaryTags.removeSearchNameSummaryTag(searchName); string[] newSummary2 = summaryTags.captureSummaryTagsFromDashboard(); fieldOptions.compareListOfItemsInOrder(summary, newSummary2); } catch (Exception e) { Logging.LogStop(this.driver, test, e, MethodBase.GetCurrentMethod(), Bname + "_TestSuite05_Reskin_SummaryTags_TC016"); throw; } driver.Quit(); }