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)
Tracking
(firefox37 fixed)
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
firefox37 | --- | fixed |
People
(Reporter: daniela.domnici, Assigned: daniela.domnici)
References
Details
Attachments
(1 file, 5 obsolete files)
7.84 KB,
patch
|
AndreeaMatei
:
review+
|
Details | Diff | Splinter Review |
Combined two tests from testAddons_installFromFTP into one test.
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8533652 -
Flags: review?(mihaela.velimiroviciu)
Attachment #8533652 -
Flags: review?(andreea.matei)
Comment 2•10 years ago
|
||
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-
Comment 3•10 years ago
|
||
(In reply to Mihaela Velimiroviciu [QA] (:mihaelav) from comment #2)
And you should also update the commit message.
Assignee | ||
Comment 4•10 years ago
|
||
Updated patch
Attachment #8533652 -
Attachment is obsolete: true
Attachment #8535021 -
Flags: review?
Assignee | ||
Updated•10 years ago
|
Attachment #8535021 -
Flags: review? → review?(mihaela.velimiroviciu)
Comment 5•10 years ago
|
||
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-
Assignee | ||
Comment 6•10 years ago
|
||
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)
Comment 7•10 years ago
|
||
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+
Comment 8•10 years ago
|
||
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
Assignee | ||
Comment 9•10 years ago
|
||
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 10•10 years ago
|
||
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-
Assignee | ||
Comment 11•10 years ago
|
||
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 12•10 years ago
|
||
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-
Assignee | ||
Comment 13•10 years ago
|
||
Updated patch.
Attachment #8547464 -
Attachment is obsolete: true
Attachment #8547479 -
Flags: review?(mihaela.velimiroviciu)
Attachment #8547479 -
Flags: review?(andreea.matei)
Updated•10 years ago
|
Attachment #8547479 -
Flags: review?(mihaela.velimiroviciu)
Attachment #8547479 -
Flags: review?(andreea.matei)
Attachment #8547479 -
Flags: review+
Comment 14•10 years ago
|
||
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
status-firefox37:
--- → fixed
Resolution: --- → FIXED
Updated•6 years ago
|
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•