Bug 1434849 - Track HAR export in DAMP; r=ochameau
authorJan Odvarko <odvarko@gmail.com>
Thu, 01 Mar 2018 12:23:09 +0100
changeset 462477 f749f8d424c44b23815245374522c77f982e66bf
parent 462476 609e4952a46e77839c34afac884876154bd24482
child 462478 8742010ad18ff6f3e3a17fe05c82b7b001128bd8
push id1683
push usersfraser@mozilla.com
push dateThu, 26 Apr 2018 16:43:40 +0000
treeherdermozilla-release@5af6cb21869d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersochameau
bugs1434849
milestone60.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 1434849 - Track HAR export in DAMP; r=ochameau MozReview-Commit-ID: BuSNVV3etf2
testing/talos/talos/tests/devtools/addon/content/damp.js
--- a/testing/talos/talos/tests/devtools/addon/content/damp.js
+++ b/testing/talos/talos/tests/devtools/addon/content/damp.js
@@ -797,16 +797,25 @@ async _consoleOpenWithCachedMessagesTest
     await this.reloadPage(onReload);
     test.done();
 
     test = this.runTest(name + ".reload.settle.DAMP");
     await this.waitForPendingPaints(toolbox);
     test.done();
   },
 
+  async exportHar(label, toolbox) {
+    let test = this.runTest(label + ".exportHar");
+
+    // Export HAR from the Network panel.
+    await toolbox.getHARFromNetMonitor();
+
+    test.done();
+  },
+
   async _coldInspectorOpen() {
     await this.testSetup(SIMPLE_URL);
     await this.openToolboxAndLog("cold.inspector", "inspector");
     await this.closeToolbox();
     await this.testTeardown();
   },
 
   async _panelsInBackgroundReload() {
@@ -1086,16 +1095,17 @@ async _consoleOpenWithCachedMessagesTest
       },
 
       async netmonitor() {
         await this.testSetup(url);
         const toolbox = await this.openToolboxAndLog(label + ".netmonitor", "netmonitor");
         const requestsDone = this.waitForNetworkRequests(label + ".netmonitor", toolbox, expectedRequests);
         await this.reloadPageAndLog(label + ".netmonitor", toolbox);
         await requestsDone;
+        await this.exportHar(label + ".netmonitor", toolbox);
         await this.closeToolboxAndLog(label + ".netmonitor", toolbox);
         await this.testTeardown();
       },
 
       async saveAndReadHeapSnapshot() {
         await this.testSetup(url);
         const toolbox = await this.openToolboxAndLog(label + ".memory", "memory");
         await this.reloadPageAndLog(label + ".memory", toolbox);