Closed Bug 1281813 Opened 9 years ago Closed 8 years ago

QA for browser engagement phase 1

Categories

(Toolkit :: Telemetry, defect, P1)

defect
Points:
3

Tracking

()

VERIFIED FIXED
Tracking Status
firefox50 --- affected

People

(Reporter: Dexter, Assigned: Silne30)

References

()

Details

(Whiteboard: [measurement:client])

Attachments

(1 file, 2 obsolete files)

We need to perform some quality checks once we have the browser engagement data (as scalars) flowing out of the client.
Blocks: 1252625
Whiteboard: [measurement:client]
Priority: -- → P2
Priority: P2 → P1
Summary: QA for browser engagement phase 1 → QA plan for browser engagement phase 1
Assignee: nobody → jdorlus
Points: --- → 3
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
I am attaching a PDF of all of the test cases that we wrote.
Attached file Engagement - TestRail.pdf (obsolete) —
Flags: needinfo?(gfritzsche)
Flags: needinfo?(alessio.placitelli)
Thanks John, these cases look good. Maybe we could have expanded a bit on the total_uri_count probe QA, as it could get a bit tricky. But I'm probably looking at this from a developer point of view. Additional questions that comes to my mind when looking at your doc (and thinking of that probe): - Are we really only counting user-initiated URI loads? - Are loads from iframes counted? - Are we really restricted to http(s)?
Flags: needinfo?(alessio.placitelli)
Reopening to add some cases to cover (In reply to Alessio Placitelli [:Dexter] from comment #4)
Status: VERIFIED → REOPENED
Flags: needinfo?(gfritzsche) → needinfo?(jdorlus)
Resolution: FIXED → ---
- C4312 seems to be covered by C4963 already - "2.5. browser.engagement.total_uri_count" needs more cases (what Alessio said and a basic "counting URI navigations") - "2.6. browser.engagement.unique_domains_count" also seems to miss the basic domain counting / increase A thought for future efforts: How about we start out with this kind of list, before committing to the detail work of testing all the cases?
Summary: QA plan for browser engagement phase 1 → QA for browser engagement phase 1
Sounds like a plan.
Flags: needinfo?(jdorlus)
Flags: needinfo?(jdorlus)
While validating if total_uri_count performs correctly, I noticed a small difference in an edge case. Can you tell me what behavior is desired. Steps to reproduce: 1.) Open up nightly with new profile 2.) In the first tab, navigate to about:telemetry and expand the Scalars section. They should read: Name: browser.engagement.total_uri_count, Value: 1 Name: browser.engagement.max_concurrent_window_count, Value:1 Name: browser.engagement.unique_domains_count, Value: 1 Name: browser.engagement.max_concurrent_tab_count, Value: 2 3.) Go to the other tab and navigate to about:nobody (It's a fake page, should throw error) 4.) Go back to about:telemetry Tab and refresh. The scalars should not change.
Flags: needinfo?(jdorlus)
Flags: needinfo?(gfritzsche)
Flags: needinfo?(alessio.placitelli)
Steps to reproduce (scenario 2): Steps to reproduce: 1.) Open up nightly with new profile 2.) In the first tab: navigate to about:nobody 3.) In the second tab: navigate to about:telemetry and expand the scalars section. 4.) The scalars are different from the above scenario. They now read: Name: browser.engagement.max_concurrent_window_count, Value:1 Name: browser.engagement.max_concurrent_tab_count, Value: 2 Are both scenarios correct? Should changing the order of the operations have yielded these different results? Let me know so I know wha to put in Test Rail.
(In reply to Alessio Placitelli [:Dexter] from comment #4) > Thanks John, these cases look good. Maybe we could have expanded a bit on > the total_uri_count probe QA, as it could get a bit tricky. But I'm probably > looking at this from a developer point of view. > > Additional questions that comes to my mind when looking at your doc (and > thinking of that probe): > > - Are we really only counting user-initiated URI loads? > - Are loads from iframes counted? > - Are we really restricted to http(s)? About the first point that you mentioned about only counting user-initiated URI Loads: Would that count the homepage that is loaded when you start nightly? That page is counted as a unique domain yet the user did not initiate it.
(In reply to John Dorlus [:Silne30] from comment #10) > (In reply to Alessio Placitelli [:Dexter] from comment #4) > > - Are we really only counting user-initiated URI loads? > > About the first point that you mentioned about only counting user-initiated > URI Loads: Would that count the homepage that is loaded when you start > nightly? That page is counted as a unique domain yet the user did not > initiate it. This sounds like a bug. Could you please file one?
Flags: needinfo?(alessio.placitelli)
(In reply to John Dorlus [:Silne30] from comment #8) > While validating if total_uri_count performs correctly, I noticed a small > difference in an edge case. Can you tell me what behavior is desired. > > Steps to reproduce: > 1.) Open up nightly with new profile > 2.) In the first tab, navigate to about:telemetry and expand the Scalars > section. They should read: > Name: browser.engagement.total_uri_count, Value: 1 > Name: browser.engagement.max_concurrent_window_count, Value:1 > Name: browser.engagement.unique_domains_count, Value: 1 > Name: browser.engagement.max_concurrent_tab_count, Value: 2 > > 3.) Go to the other tab and navigate to about:nobody (It's a fake page, > should throw error) > 4.) Go back to about:telemetry Tab and refresh. The scalars should not > change. I'm not sure about that. Could you please file a bug about this and the other issue that you find and make them block this bug?
Flags: needinfo?(jdorlus)
Flags: needinfo?(gfritzsche)
Depends on: 1302809
Flags: needinfo?(jdorlus)
Depends on: 1302812
(In reply to Alessio Placitelli [:Dexter] from comment #4) > Thanks John, these cases look good. Maybe we could have expanded a bit on > the total_uri_count probe QA, as it could get a bit tricky. But I'm probably > looking at this from a developer point of view. > > Additional questions that comes to my mind when looking at your doc (and > thinking of that probe): > > - Are we really only counting user-initiated URI loads? > - Are loads from iframes counted? > - Are we really restricted to http(s)? For the third point, I tried creating a test case that would access an ftp:// site but I cannot find a site to navigate to. Even ftp://ftp.mozilla.org has been changed over to https. Is there any way to get this working or is there another protocol I can use to test this case?
(In reply to John Dorlus [:Silne30] from comment #13) > > - Are we really restricted to http(s)? > > For the third point, I tried creating a test case that would access an > ftp:// site but I cannot find a site to navigate to. Even > ftp://ftp.mozilla.org has been changed over to https. Is there any way to > get this working or is there another protocol I can use to test this case? You can use a data URI, such as: data:text/html,<html><body id="some_id"><input></body></html>
Attached file Engagement - Updated - TestRail.pdf (obsolete) —
Attachment #8786887 - Attachment is obsolete: true
Attachment #8792124 - Flags: review?(gfritzsche)
Attachment #8792124 - Flags: review?(alessio.placitelli)
Status: REOPENED → RESOLVED
Closed: 8 years ago8 years ago
Resolution: --- → FIXED
(In reply to John Dorlus [:Silne30] from comment #15) > Created attachment 8792124 [details] > Engagement - Updated - TestRail.pdf Thanks John! I can't seem to find any test covering basic URI counting (e.g. open a list of URIs and making sure that the number of URIs after a browsing session matches). Is that included in some other test?
Flags: needinfo?(jdorlus)
Status: RESOLVED → REOPENED
Flags: needinfo?(jdorlus)
Resolution: FIXED → ---
Flags: needinfo?(jdorlus)
Attachment #8792124 - Attachment is obsolete: true
Attachment #8792124 - Flags: review?(gfritzsche)
Attachment #8792124 - Flags: review?(alessio.placitelli)
Flags: needinfo?(jdorlus)
Attachment #8793360 - Flags: review?(gfritzsche)
Comment on attachment 8793360 [details] Engagement - Second Update - TestRail.pdf Added tests cases to cover both basic cases.
Attachment #8793360 - Flags: review?(alessio.placitelli)
Flags: needinfo?(gfritzsche)
Flags: needinfo?(alessio.placitelli)
Comment on attachment 8793360 [details] Engagement - Second Update - TestRail.pdf This looks good to me after your changes.
Flags: needinfo?(alessio.placitelli)
Attachment #8793360 - Flags: review?(alessio.placitelli) → review+
I think Alessio has this covered now, thanks!
Status: REOPENED → RESOLVED
Closed: 8 years ago8 years ago
Flags: needinfo?(gfritzsche)
Resolution: --- → FIXED
Attachment #8793360 - Flags: review?(gfritzsche)
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: