Bug 1301776 - Verify window_open_event_count scalar data in telemetry-tests-client; r=Dexter
authorRaphael Pierzina <rpierzina@mozilla.com>
Fri, 07 Dec 2018 15:37:55 +0000
changeset 449685 8c2f5fd8bef2b4cd0ca3b49d20739704df703e7b
parent 449682 3386ff76878d83496bb822d09115c77472808b53
child 449686 c85e2fe3af3bf7617cf737f7dad350b46c436b06
push id35182
push usercbrindusan@mozilla.com
push dateMon, 10 Dec 2018 22:02:24 +0000
treeherdermozilla-central@773061bafdd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersDexter
bugs1301776
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1301776 - Verify window_open_event_count scalar data in telemetry-tests-client; r=Dexter Differential Revision: https://phabricator.services.mozilla.com/D13559
toolkit/components/telemetry/tests/marionette/tests/client/test_search_counts_across_sessions.py
--- a/toolkit/components/telemetry/tests/marionette/tests/client/test_search_counts_across_sessions.py
+++ b/toolkit/components/telemetry/tests/marionette/tests/client/test_search_counts_across_sessions.py
@@ -96,16 +96,19 @@ class TestSearchCounts(TelemetryTestCase
         self.assertNotEqual(s1_s1_subsession_id, "")
 
         self.assertIsNone(ping1_info["previousSessionId"])
         self.assertIsNone(ping1_info["previousSubsessionId"])
         self.assertEqual(ping1_info["subsessionCounter"], 1)
         self.assertEqual(ping1_info["profileSubsessionCounter"], 1)
 
         scalars1 = ping1["payload"]["processes"]["parent"]["scalars"]
+        self.assertNotIn(
+            "browser.engagement.window_open_event_count", scalars1
+        )
         self.assertEqual(
             scalars1["browser.engagement.tab_open_event_count"], 1
         )
 
         keyed_histograms1 = ping1["payload"]["keyedHistograms"]
         search_counts1 = keyed_histograms1["SEARCH_COUNTS"][
             "{}.urlbar".format(self.search_engine)
         ]
@@ -156,16 +159,19 @@ class TestSearchCounts(TelemetryTestCase
         self.assertEqual(ping2_info["previousSessionId"], s1_session_id)
         self.assertEqual(
             ping2_info["previousSubsessionId"], s1_s1_subsession_id
         )
         self.assertEqual(ping2_info["subsessionCounter"], 1)
         self.assertEqual(ping2_info["profileSubsessionCounter"], 2)
 
         scalars2 = ping2["payload"]["processes"]["parent"]["scalars"]
+        self.assertNotIn(
+            "browser.engagement.window_open_event_count", scalars2
+        )
         self.assertNotIn("browser.engagement.tab_open_event_count", scalars2)
 
         keyed_histograms2 = ping2["payload"]["keyedHistograms"]
         self.assertNotIn("SEARCH_COUNTS", keyed_histograms2)
 
         # - Perform Search
         # - Restart Browser
 
@@ -207,16 +213,19 @@ class TestSearchCounts(TelemetryTestCase
         self.assertEqual(ping3_info["previousSessionId"], s1_session_id)
         self.assertEqual(
             ping3_info["previousSubsessionId"], s2_s1_subsession_id
         )
         self.assertEqual(ping3_info["subsessionCounter"], 2)
         self.assertEqual(ping3_info["profileSubsessionCounter"], 3)
 
         scalars3 = ping3["payload"]["processes"]["parent"]["scalars"]
+        self.assertNotIn(
+            "browser.engagement.window_open_event_count", scalars3
+        )
         self.assertNotIn("browser.engagement.tab_open_event_count", scalars3)
 
         keyed_histograms3 = ping3["payload"]["keyedHistograms"]
         search_counts3 = keyed_histograms3["SEARCH_COUNTS"][
             "{}.urlbar".format(self.search_engine)
         ]
         self.assertEqual(
             search_counts3,