-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(project): test cases for analytics
- Loading branch information
1 parent
70c96a5
commit 41f900d
Showing
3 changed files
with
50 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Feature: Analytics - Advertisement | ||
|
||
# `egpovogv` config can be used | ||
|
||
Scenario: Watching the video from the beginning with 1 pre-roll ad (the config should have an ad-schedule) | ||
Given Start watching the video "Elephants Dream" | ||
When Watch the video with advertising from "00:00 to 00:25" | ||
Then Expect `i` event to be sent | ||
|
||
Scenario: Watching the video from the Continue Watching shelf with 1 pre-roll ad (the config should have an ad-schedule) | ||
Given Start watching the video "Elephants Dream" from the 3:00 minute (from Continue Watching shelf) | ||
When Watch the video with advertising from "03:00 to 03:25" | ||
Then Expect `i` event to be sent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
Feature: Analytics - Initialization | ||
|
||
# `225tvq1i` config can be used | ||
# List of expected params for `e` event: `pss`, `oos`, `oosv`, `sdk`, `aid`, `bun`, `fed`, `id`, `t`, `emi`, `pli` | ||
# List of expected params for `s` event: `pss`, `oos`, `oosv`, `sdk`, `aid`, `bun`, `fed`, `id`, `t`, `emi`, `pli`, `ti`, `pw`, `q` | ||
# Params which have constant values and need to be redifined manually: `pss`, `oos`, `oosv`, `sdk` | ||
|
||
Scenario: Watching the video from the beginning (`e` event) | ||
Given Start watching the video "Elephants Dream" (`e` event) | ||
When Watch the video from "00:00 to 00:05" | ||
Then Expect `e` event to be the first event sent | ||
Then Expect `e` event to be sent with params from the list in the comment above | ||
Then Expect sent params to have correct values | ||
|
||
Scenario: Watching the video from the beginning (`s` event) | ||
Given Start watching the video "Elephants Dream" (`s` event) | ||
When Watch the video from "00:00 to 00:05" | ||
Then Expect `s` event to be the second event sent (if no ad-schedule is used) | ||
Then Expect `s` event to be sent with params from the list in the comment above | ||
Then Expect `q` param to reflect the number of quantiles, `ti` to equal 0 and `pw` to equal 0 as well. | ||
Then Expect other params from the list to have correct values | ||
|
||
Scenario: Watching the video from the Continue Watching section (`e` event) | ||
Given Start watching the video "Elephants Dream" from Continue Watching (`e` event) | ||
When Watch the video from "03:00 to 03:05" | ||
Then Expect `e` event to be the first event sent | ||
Then Expect `e` event to be sent with params from the list in the comment above | ||
Then Expect sent params to have correct values | ||
|
||
Scenario: Watching the the video from the Continue Watching section (`s` event) | ||
Given Start watching the video "Elephants Dream" Continue Watching (`s` event) | ||
When Watch the video from "03:00 to 03:05" | ||
Then Expect `s` event to be the second event sent (if no ad-schedule is used) | ||
Then Expect `s` event to be sent with params from the list in the comment above | ||
Then Expect `q` param to reflect the number of quantiles, `ti` to equal 0 and `pw` to equal 0 as well. | ||
Then Expect other sent params to have correct values |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters