@Test(dataProviderClass = AdsDataProvider.class, dataProvider = "fliteTagBrokenMercury")
 @Execute(onWikia = "adtest")
 public void adsFliteTagBrokenMercury(String article, String error) {
   String testedPage = urlBuilder.getUrlForPath(article);
   AdsBaseObject wikiPage = new AdsBaseObject(driver, testedPage);
   wikiPage.verifyFliteTagBroken(error, FLITE_ERROR_CSS_SELECTOR_MERCURY);
 }
 @Test(
     dataProviderClass = AdsDataProvider.class,
     dataProvider = "noAdsForUsers",
     groups = "TestNoAdsForUsers_GeoEdgeFree")
 @Execute(asUser = User.USER)
 public void TestNoAdsForUsers_GeoEdgeFree(String wikiName, String path) throws Exception {
   String testedPage = urlBuilder.getUrlForPath(wikiName, path);
   AdsBaseObject wikiPage = new AdsBaseObject(driver, testedPage);
   wikiPage.verifyNoAdsOnPage();
 }
 @GeoEdgeBrowserMobProxy(country = "VE")
 @Test(
     dataProviderClass = AdsDataProvider.class,
     dataProvider = "noAdsForUsers",
     groups = "TestNoAdsForUsers_VE")
 @Execute(asUser = User.USER)
 public void TestNoAdsForUsers_VE(String wikiName, String path) {
   String testedPage = urlBuilder.getUrlForPath(wikiName, path);
   AdsBaseObject wikiPage = new AdsBaseObject(driver, testedPage);
   wikiPage.verifyNoAdsOnPage();
 }
示例#4
0
  @Test(
      dataProviderClass = AdTypeDataProvider.class,
      dataProvider = "collapse",
      groups = {"Ads", "TestAdTypeCollapse"})
  public void TestAdTypeCollapse(String wikiName, String article, String adUnit, String slotName) {
    String testedPage = urlBuilder.getUrlForPath(wikiName, article);
    AdsBaseObject ads = new AdsBaseObject(driver, testedPage);

    ads.verifyGptIframe(adUnit, slotName, "gpt");
    ads.verifySize(slotName, "gpt", 0, 0);
  }