Closed Bug 1502849 Opened 6 years ago Closed 6 years ago

Integration test for search counts across sessions

Categories

(Toolkit :: Telemetry, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
mozilla65
Tracking Status
firefox65 --- fixed

People

(Reporter: raphael, Assigned: raphael)

References

Details

Attachments

(4 files)

Planned test behavior:

Session S1, subsession 1:
- Open browser
- Open new tab
- Perform search (awesome bar or search bar)
- Restart browser in new session

Session S2, subsession 1:
- Outcome 1
  - Received a main ping P1 for previous session 
  - Ping base contents:
    - clientId should be set
    - sessionId should be set
    - subsessionId should be set
    - previousSessionId should not be set
    - previousSubsessionId should not be set
    - subSessionCounter should be 1
    - profileSubSessionCounter should be 1
    - reason should be "shutdown"
  - Other ping contents:
    - SEARCH_COUNTS values should match performed search action
- Install addon
  - Verify that there should be no listing for tab scalar as we started a new
    session

Session S2, subsession 2:
- Outcome 2
  - Received a main ping P2 for previous subsession 
  - Ping base contents:
    - clientId should be set to the same value
    - sessionId should be set to a new value
    - subsessionId should be set to a new value
    - previousSessionId should be set to P1s sessionId value
    - previousSubsessionId should be set to P1s subsessionId value
    - subSessionCounter should be 1
    - profileSubSessionCounter should be 2
    - reason should be "environment-change"
   - Other ping contents:
     - SEARCH_COUNTS values should not be in P2
- Perform Search 
- Restart Browser

Session S3, subsession 1:
- Outcome 3
  - Received a main ping P3 for session 2, subsession 1
  - Ping base contents:
    - clientId should be set to the same value
    - sessionId should be set to P2s sessionId value
    - subsessionId should be set to a new value
    - previousSessionId should be set to P2s sessionId value
    - previousSubsessionId should be set to P2s subsessionId value
    - subSessionCounter should be 2
    - profileSubSessionCounter should be 3
    - reason should be "shutdown"
  - Other ping contents:
    - SEARCH_COUNTS values should be set per above search
Update: Check "browser.engagement.tab_open_event_count" scalar in "environment-change" ping after installing the addon.
Pushed by rpierzina@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e786fe6c9aa1
Create reusable ping filters for telemetry-tests-client harness; r=Dexter,davehunt
https://hg.mozilla.org/integration/autoland/rev/a92340f21853
Add new telemetry client test for SEARCH_COUNTS across sessions; r=Dexter,gfritzsche
https://hg.mozilla.org/integration/autoland/rev/8c3c5e856c83
Remove unused addon from telemetry-tests-client resources; r=Dexter
We will hold off from landing D12421 until we've sorted out the intermittent errors in firefox_puppeteer with closing tabs.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: