Closed Bug 1108999 Opened 10 years ago Closed 10 years ago

Refactor testAddons_installFromFTP from multiple files into a single file

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect)

Version 3
defect
Not set
normal

Tracking

(firefox37 fixed)

RESOLVED FIXED
Tracking Status
firefox37 --- fixed

People

(Reporter: daniela.domnici, Assigned: daniela.domnici)

References

Details

Attachments

(1 file, 5 obsolete files)

Combined two tests from testAddons_installFromFTP into one test.
Attached patch patch_V1 (obsolete) — Splinter Review
Attachment #8533652 - Flags: review?(mihaela.velimiroviciu)
Attachment #8533652 - Flags: review?(andreea.matei)
Comment on attachment 8533652 [details] [diff] [review] patch_V1 Review of attachment 8533652 [details] [diff] [review]: ----------------------------------------------------------------- You should also remove [include:testAddons_installFromFTP/manifest.ini] from firefox/tests/remote/restartTests/manifest.ini. ::: firefox/tests/remote/testAddons/testInstallAddonsFromFTP.js @@ +52,5 @@ > + delete persisted.nextTest; > + > + addons.resetDiscoveryPaneURL(); > + aModule.controller.stopApplication(true); > + } Nit: there is an extra blank space before } @@ +72,5 @@ > +/** > + * Verifies the extension is installed > + */ > +function testAddonInstalled() { > + // Verify the extension is installed This message is redundant here @@ +83,5 @@ > + value: ADDON[0].id})[0]; > + > + assert.ok(addonsManager.isAddonInstalled({addon: addon}), > + "Extension '" + ADDON[0].id + > + "' has been correctly installed"); The entire message can stay on the same line
Attachment #8533652 - Flags: review?(mihaela.velimiroviciu)
Attachment #8533652 - Flags: review?(andreea.matei)
Attachment #8533652 - Flags: review-
(In reply to Mihaela Velimiroviciu [QA] (:mihaelav) from comment #2) And you should also update the commit message.
Attached patch patch_V2 (obsolete) — Splinter Review
Updated patch
Attachment #8533652 - Attachment is obsolete: true
Attachment #8535021 - Flags: review?
Attachment #8535021 - Flags: review? → review?(mihaela.velimiroviciu)
Comment on attachment 8535021 [details] [diff] [review] patch_V2 Review of attachment 8535021 [details] [diff] [review]: ----------------------------------------------------------------- You missed to update the commit message. ::: firefox/tests/remote/testAddons/testInstallAddonsFromFTP.js @@ +18,5 @@ > > const ADDON = [ > {id: "test-empty@quality.mozilla.org", > url: "ftp://ftp.mozqa.com/data/firefox/addons/extensions/empty.xpi"} > ]; You don't need to have an array here since it's only one addon. Also update everywhere else where you use ADDON[0] @@ +78,5 @@ > + category: addonsManager.getCategoryById({id: "extension"}) > + }); > + > + var addon = addonsManager.getAddons({attribute: "value", > + value: ADDON[0].id})[0]; Single line here, please
Attachment #8535021 - Flags: review?(mihaela.velimiroviciu) → review-
Attached patch patch_V3 (obsolete) — Splinter Review
Changes requested were added. We still have the problem with test run when the first test is skipped in the manifest(I`ve tried to do a remote test run with this patch applied.The first test in manifest/restartTests is skipped and it skips all the other tests.)
Attachment #8535021 - Attachment is obsolete: true
Attachment #8545914 - Flags: review?(mihaela.velimiroviciu)
Attachment #8545914 - Flags: review?(andreea.matei)
Depends on: 970594
Comment on attachment 8545914 [details] [diff] [review] patch_V3 Review of attachment 8545914 [details] [diff] [review]: ----------------------------------------------------------------- The tests looks good to me now.
Attachment #8545914 - Flags: review?(mihaela.velimiroviciu) → review+
This is not blocked by Mozmill 2.1. Feel free to add a dummy restart test instead as first test to run under restartTests.
No longer depends on: 970594
Attached patch patch_V4 (obsolete) — Splinter Review
Updated patch with the testDummy.js setted as the first test in manifest. Now we can do testruns. Here are the remote testrun results using Ubuntu 14.04 local machine : http://mozmill-crowd.blargon7.com/#/remote/report/5bb4668cfa6af53a0ba505835d364e9b
Attachment #8545914 - Attachment is obsolete: true
Attachment #8545914 - Flags: review?(andreea.matei)
Attachment #8546664 - Flags: review?(mihaela.velimiroviciu)
Attachment #8546664 - Flags: review?(andreea.matei)
Comment on attachment 8546664 [details] [diff] [review] patch_V4 Review of attachment 8546664 [details] [diff] [review]: ----------------------------------------------------------------- ::: firefox/tests/remote/testAddons/manifest.ini @@ +1,5 @@ > [parent:../manifest.ini] > > [testInstallAddonWithoutEula.js] > disabled = Bug 1103869 - Test failure 'Notification popup state has been opened' > +[testInstallAddonsFromFTP.js] We should have the name say addon, not plural, we only install one. ::: firefox/tests/remote/testAddons/testInstallAddonsFromFTP.js @@ +37,5 @@ > + > +function teardownTest(aModule) { > + if (addonsManager.isOpen) { > + addonsManager.close(); > + } I think this has to be in teadownModule, I don't see that we open addons manager in first test and previously this check was in teardown in test2.js: aModule.addonsManager.close();
Attachment #8546664 - Flags: review?(mihaela.velimiroviciu)
Attachment #8546664 - Flags: review?(andreea.matei)
Attachment #8546664 - Flags: review-
Attached patch patch_V5 (obsolete) — Splinter Review
Changes requested were added.Thanks, Andreea!
Attachment #8546664 - Attachment is obsolete: true
Attachment #8547464 - Flags: review?(mihaela.velimiroviciu)
Attachment #8547464 - Flags: review?(andreea.matei)
Comment on attachment 8547464 [details] [diff] [review] patch_V5 Review of attachment 8547464 [details] [diff] [review]: ----------------------------------------------------------------- ::: firefox/tests/remote/testAddons/manifest.ini @@ +1,5 @@ > [parent:../manifest.ini] > > [testInstallAddonWithoutEula.js] > disabled = Bug 1103869 - Test failure 'Notification popup state has been opened' > +[testInstallAddonFromFTP.js] This will be the first one now.
Attachment #8547464 - Flags: review?(mihaela.velimiroviciu)
Attachment #8547464 - Flags: review?(andreea.matei)
Attachment #8547464 - Flags: review-
Attached patch patch_V6Splinter Review
Updated patch.
Attachment #8547464 - Attachment is obsolete: true
Attachment #8547479 - Flags: review?(mihaela.velimiroviciu)
Attachment #8547479 - Flags: review?(andreea.matei)
Attachment #8547479 - Flags: review?(mihaela.velimiroviciu)
Attachment #8547479 - Flags: review?(andreea.matei)
Attachment #8547479 - Flags: review+
http://hg.mozilla.org/qa/mozmill-tests/rev/daaa14ceaf07 (default) With today's merge we'll have this in aurora too. Thanks Daniela!
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: