Bug 1434849 - Track HAR export in DAMP; r=ochameau draft
authorJan Odvarko <odvarko@gmail.com>
Thu, 01 Mar 2018 12:23:09 +0100
changeset 761888 24face50b6fae9eb6da1859295151fae831d6332
parent 761887 c83821fff59b335bf7f7cd728360f580a3e6ee29
child 761889 18cf43009059e43a91e2be27249d5f32bb534710
push id101030
push userjodvarko@mozilla.com
push dateThu, 01 Mar 2018 16:39:47 +0000
reviewersochameau
bugs1434849
milestone60.0a1
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
@@ -701,16 +701,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() {
@@ -929,16 +938,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);