use of com.wikia.webdriver.common.core.annotations.NetworkTrafficDump in project selenium-tests by Wikia.
the class TestAdsPrebid method adsPrebidVelesDisplayedInTopLeaderboard.
@NetworkTrafficDump
@Test(dataProviderClass = AdsDataProvider.class, dataProvider = "prebidVelesAdapter", groups = "AdsPrebidVelesOasis")
public void adsPrebidVelesDisplayedInTopLeaderboard(String wiki, String article, Integer lineItemId) {
networkTrafficInterceptor.startIntercepting();
String url = urlBuilder.getUrlForPath(wiki, article);
AdsPrebidObject prebidAds = new AdsPrebidObject(driver, url);
prebidAds.verifyKeyValues(AdsContent.TOP_LB, "veles", "640x480", "20.00");
prebidAds.wait.forSuccessfulResponse(networkTrafficInterceptor, STARTED_EVENT);
prebidAds.verifyLineItemId(AdsContent.TOP_LB, lineItemId);
}
use of com.wikia.webdriver.common.core.annotations.NetworkTrafficDump in project selenium-tests by Wikia.
the class TestAdsPremiumPrerollMercury method adsPremiumPrerollMercury.
@NetworkTrafficDump(useMITM = true)
@Test(dataProviderClass = AdsDataProvider.class, groups = { "AdsPremiumPrerollMercury" }, dataProvider = "adsPremiumPreroll")
public void adsPremiumPrerollMercury(String wikiName, String article) {
String testedPage = urlBuilder.getUrlForPath(wikiName, article);
AdsOoyalaObject wikiPage = new AdsOoyalaObject(driver, testedPage);
wikiPage.verifyPlayerOnPage();
wikiPage.verifyPremiumPrerollRequest(networkTrafficInterceptor, wikiPage);
wikiPage.verifyArticleAd();
wikiPage.verifyArticleVideo();
}
use of com.wikia.webdriver.common.core.annotations.NetworkTrafficDump in project selenium-tests by Wikia.
the class TestAdsPremiumPrerollOasis method adsPremiumPrerollOasis.
@NetworkTrafficDump(useMITM = true)
@Test(dataProviderClass = AdsDataProvider.class, groups = { "AdsPremiumPrerollOasis" }, dataProvider = "adsPremiumPreroll")
public void adsPremiumPrerollOasis(String wikiName, String article) {
String testedPage = urlBuilder.getUrlForPath(wikiName, article);
AdsOoyalaObject wikiPage = new AdsOoyalaObject(driver, testedPage);
wikiPage.verifyPlayerOnPage();
wikiPage.verifyPremiumPrerollRequest(networkTrafficInterceptor, wikiPage);
wikiPage.verifyArticleAd();
wikiPage.verifyArticleVideo();
}
use of com.wikia.webdriver.common.core.annotations.NetworkTrafficDump in project selenium-tests by Wikia.
the class TestAdsVuapFandom method adsVuapTimeProgressingFandomMobile.
@NetworkTrafficDump(useMITM = true)
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
@Test(dataProviderClass = FandomAdsDataProvider.class, dataProvider = "vuapPageMobile", groups = { "AdsVuapFandomMobile", "AdsVuapTimeProgressingFandomMobile" })
public void adsVuapTimeProgressingFandomMobile(String pageType, String pageName, String slotName, String iframeId, String videoUrl) throws InterruptedException {
networkTrafficInterceptor.startIntercepting();
AdsFandomObject fandomPage = loadPage(pageName, pageType);
VideoFanTakeover videoFanTakeover = prepareSlot(slotName, iframeId, fandomPage);
fandomPage.wait.forSuccessfulResponse(networkTrafficInterceptor, videoUrl);
videoFandomPage(slotName).verifyIsVideoTimeProgresingOnMobile(networkTrafficInterceptor, videoFanTakeover);
}
use of com.wikia.webdriver.common.core.annotations.NetworkTrafficDump in project selenium-tests by Wikia.
the class TestAdsVuapFandom method adsVuapVideoPauseFandomMobile.
@NetworkTrafficDump(useMITM = true)
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
@Test(dataProviderClass = FandomAdsDataProvider.class, dataProvider = "vuapPageMobile", groups = { "AdsVuapFandomMobile", "AdsVuapVideoPauseFandomMobile" })
public void adsVuapVideoPauseFandomMobile(String pageType, String pageName, String slotName, String iframeId, String videoUrl) throws InterruptedException {
networkTrafficInterceptor.startIntercepting();
AdsFandomObject fandomPage = loadPage(pageName, pageType);
VideoFanTakeover videoFanTakeover = prepareSlot(slotName, iframeId, fandomPage);
fandomPage.wait.forSuccessfulResponse(networkTrafficInterceptor, videoUrl);
videoFandomPage(slotName).verifyIsVideoPausedOnMobile(networkTrafficInterceptor, videoFanTakeover);
}
Aggregations