public void GoogleAnalitics_Video_JwVideoPlayerEmbed() { var url = _params["PostUrl"].ToString(); var exJson = _params["ExJson"]; var ignor = _params["Ignor"].AsBsonArray; var eventAction = "jw video player embed"; _browser.ProxyApi.NewHar(); _browser.Navigate(url); VideoPlayer videoPage = new VideoPlayer(_browser); videoPage.ClickOnPlay(); GoogleAnalitics googleAnalitics = new GoogleAnalitics(_browser.ProxyApi.GetRequests); string errors = googleAnalitics.ValidateEventRequest(eventAction, exJson, ignor, false); Assert.True(string.IsNullOrEmpty(errors), errors); }
public void GoogleAnalitics_Article_ArticleShareClick_TwitterTop() { var url = _params["PostUrl"].ToString(); var exJson = _params["ExJson"]; var ignor = _params["Ignor"].AsBsonArray; var eventAction = "article share click"; _browser.ProxyApi.NewHarPost(); _browser.Navigate(url); PostPage postPage = new PostPage(_browser); postPage.ClickOnTwitterTopBtn(); Thread.Sleep(1000); GoogleAnalitics googleAnalitics = new GoogleAnalitics(_browser.ProxyApi.GetRequests); string errors = googleAnalitics.ValidateEventRequest(eventAction, exJson, ignor); Assert.True(string.IsNullOrEmpty(errors), errors); }
public void GoogleAnalitics_List_WidgetViewableImpression() { var url = _params["PostUrl"].ToString(); var exJson = _params["ExJson"]; var ignor = _params["Ignor"].AsBsonArray; var eventAction = "widget viewable impression"; _browser.ProxyApi.NewHarPost(); _browser.Navigate(url); PostPage postPage = new PostPage(_browser); postPage.ClickOnSpotim(); Thread.Sleep(1000); GoogleAnalitics googleAnalitics = new GoogleAnalitics(_browser.ProxyApi.GetRequests); string errors = googleAnalitics.ValidateEventRequest(eventAction, exJson, ignor); Assert.True(string.IsNullOrEmpty(errors), errors); }
public void GoogleAnalitics_List_TopLogoClick() { var url = _params["PostUrl"].ToString(); var exJson = _params["ExJson"]; var ignor = _params["Ignor"].AsBsonArray; var eventAction = "top logo click"; _browser.ProxyApi.NewHarPost(); _browser.Navigate(url); PostPage postPage = new PostPage(_browser); _browser.BrowserHelper.ScrollToBottom(); GoogleAnalitics googleAnalitics = new GoogleAnalitics(_browser.ProxyApi.GetRequests); string errors = googleAnalitics.ValidateEventRequest(eventAction, exJson, ignor); Assert.True(string.IsNullOrEmpty(errors), errors); }
public void GoogleAnalitics_List_PaidContentClick_TaboolaButtom() { var url = _params["PostUrl"].ToString(); var exJson = _params["ExJson"]; var ignor = _params["Ignor"].AsBsonArray; var eventAction = "paid content click"; _browser.ProxyApi.NewHarPost(); _browser.Navigate(url); PostPage postPage = new PostPage(_browser); postPage.ClickTaboolaBtm(0); GoogleAnalitics googleAnalitics = new GoogleAnalitics(_browser.ProxyApi.GetRequests); string errors = googleAnalitics.ValidateEventRequest(eventAction, exJson, ignor); Assert.True(string.IsNullOrEmpty(errors), errors); }
public void GoogleAnalitics_Video_JwVideoAdNintyCompleted() { var url = _params["PostUrl"].ToString(); var exJson = _params["ExJson"]; var ignor = _params["Ignor"].AsBsonArray; var eventAction = "jw video ad 90% complete"; _browser.ProxyApi.NewHarPost(); _browser.Navigate(url); GoogleAnalitics googleAnalitics = new GoogleAnalitics(_browser.ProxyApi.GetRequests); VideoPlayer videoPage = new VideoPlayer(_browser); videoPage.WaitForVideoToPlay(); Thread.Sleep(TimeSpan.FromSeconds(120)); string errors = googleAnalitics.ValidateEventRequest(eventAction, exJson, ignor, true); Assert.True(string.IsNullOrEmpty(errors), errors); }
public void GoogleAnalitics_Video_AdViewableImpression() { var url = _params["PostUrl"].ToString(); var exJson = _params["ExJson"]; var ignor = _params["Ignor"].AsBsonArray; var eventAction = "jw video ad viewable impression"; _browser.ProxyApi.NewHarPost(); _browser.Navigate(url); GoogleAnalitics googleAnalitics = new GoogleAnalitics(_browser.ProxyApi.GetRequests); VideoPlayer videoPage = new VideoPlayer(_browser); videoPage.ClickOnPlay(); Thread.Sleep(TimeSpan.FromSeconds(60)); string errors = googleAnalitics.ValidateEventRequest(eventAction, exJson, ignor, true); Assert.True(string.IsNullOrEmpty(errors), errors); }
public void GoogleAnalitics_Video_JwVideoSeventyFiveCompleted() { var url = _params["PostUrl"].ToString(); var exJson = _params["ExJson"]; var ignor = _params["Ignor"].AsBsonArray; var eventAction = "jw video 75% complete"; _browser.ProxyApi.NewHar(); _browser.Navigate(url); GoogleAnalitics googleAnalitics = new GoogleAnalitics(_browser.ProxyApi.GetRequests); VideoPlayer videoPage = new VideoPlayer(_browser); videoPage.ClickOnPlay(); videoPage.WaitUntillVideoPrecnent(75); Thread.Sleep(TimeSpan.FromMinutes(1)); string errors = googleAnalitics.ValidateEventRequest(eventAction, exJson, ignor); Assert.True(string.IsNullOrEmpty(errors), errors); }
public void GoogleAnalitics_Video_AdComplete() { var url = _params["PostUrl"].ToString(); var exJson = _params["ExJson"]; var ignor = _params["Ignor"].AsBsonArray; var eventAction = "jw video ad complete"; _browser.ProxyApi.NewHarPost(); _browser.Navigate(url); GoogleAnalitics googleAnalitics = new GoogleAnalitics(_browser.ProxyApi.GetRequests); VideoPlayer videoPage = new VideoPlayer(_browser); videoPage.ClickOnPlay(); videoPage.WaitForAdPrecent(100); Thread.Sleep(2000); string errors = googleAnalitics.ValidateEventRequest(eventAction, exJson, ignor, true); Assert.True(string.IsNullOrEmpty(errors), errors); }
public void GoogleAnalitics_Video_FullScreenOff() { var url = _params["PostUrl"].ToString(); var exJson = _params["ExJson"]; var ignor = _params["Ignor"].AsBsonArray; var eventAction = "jw video fullscreen off"; _browser.ProxyApi.NewHar(); _browser.Navigate(url); VideoPlayer videoPage = new VideoPlayer(_browser); videoPage.ClickOnPlay(); videoPage.FullScreen(); videoPage.FullScreen(); Thread.Sleep(2000); GoogleAnalitics googleAnalitics = new GoogleAnalitics(_browser.ProxyApi.GetRequests); string errors = googleAnalitics.ValidateEventRequest(eventAction, exJson, ignor); Assert.True(string.IsNullOrEmpty(errors), errors); }