Closed Bug 899965 Opened 12 years ago Closed 11 years ago

Test failure "controller.waitForPageLoad(): Timeout waiting for page loaded." in /restartTests/testAddons_installUninstallHardBlocklistedExtension

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect, P1)

defect

Tracking

(firefox23 fixed, firefox24 fixed, firefox25 fixed, firefox26 fixed, firefox-esr17 fixed)

RESOLVED FIXED
Tracking Status
firefox23 --- fixed
firefox24 --- fixed
firefox25 --- fixed
firefox26 --- fixed
firefox-esr17 --- fixed

People

(Reporter: AndreeaMatei, Assigned: cosmin-malutan)

References

Details

(Whiteboard: [mozmill-2.0?][mozmill-test-failure])

Attachments

(2 files, 2 obsolete files)

This fails every time in Mozmill 2.0, after the restart between test2 and test3. I suspect now it might be related to the blocklist dialog that remains somehow unhandled, since we do a forced restart between tests while the dialog is still opened. The dialog has a restart button we should use. This should fix both blocklist tests (the softblocked is nearly done). Same applies for 1.5.
Priority: -- → P1
Assignee: nobody → cosmin.malutan
Status: NEW → ASSIGNED
Andreea, can you test to see if dismissing the dialog would be a suitable workaround until we have bug 886360?
Depends on: 886360
Sorry, missed that Cosmin is assigned. I don't mind who works on it. :)
Here the actual problem is that in test3.js the addons manager tab is already open so we have to close it in teardown. I already have the patch and is tested but I'm waiting for bug 886811 to be landed, because otherwise the bug dose't reproduce in testrun and I can't make reports.
Attachment #793454 - Flags: review?(andrei.eftimie)
Comment on attachment 793454 [details] [diff] [review] patch_v1.0 Review of attachment 793454 [details] [diff] [review]: ----------------------------------------------------------------- As a note: to correctly see this problem, have the patch from bug 886811 applied first. Please see inline further comments. I think we might only need to call aModule.addonsManager.close(); in teardown to fix this problem. The reported failure reproduces no more with only that change. Please test, and if that is the case, we can probably remove all other changes. I see however another failure after we fix this one. > "message": "Category has been changed.", Please see if it is related and if it should be fixed here, or open another bug for it. ::: tests/functional/restartTests/testAddons_installUninstallHardBlocklistedExtension/test2.js @@ +33,5 @@ > + var acceptButton = aModule.blocklistWindow.getElement({type: "acceptButton" }); > + assert.ok(acceptButton.exists(),"Accept Button exists"); > + > + aModule.controller.startUserShutdown(TIMEOUT_USER_SHUTDOWN, true); > + aModule.controller.click(acceptButton); Why do we need this whole block? Isn't this failure only occuring with mozmill 2.0? This block is only run under 1.5 Do we get this failure there as well? ::: tests/functional/restartTests/testAddons_installUninstallSoftBlocklistedExtension/test2.js @@ +33,5 @@ > + var acceptButton = aModule.blocklistWindow.getElement({type: "acceptButton" }); > + assert.ok(acceptButton.exists(),"Accept Button exists"); > + > + aModule.controller.startUserShutdown(TIMEOUT_USER_SHUTDOWN, true); > + aModule.controller.click(acceptButton); Same as above
Attachment #793454 - Flags: review?(andrei.eftimie)
Attachment #793454 - Flags: review?(andreea.matei)
Attachment #793454 - Flags: review-
Attached patch patch_v2.0 (obsolete) — Splinter Review
(In reply to Andrei Eftimie from comment #5) > I see however another failure after we fix this one. > > "message": "Category has been changed.", > > Please see if it is related and if it should be fixed here, or open another > bug for it. I didn't see this error. > Why do we need this whole block? > Isn't this failure only occuring with mozmill 2.0? > This block is only run under 1.5 > Do we get this failure there as well? You're right, we don't, we discussed before to click on restart button after addon is installed but i don't think it's not necessary so I dropped that part. Here are the new reports: http://mozmill-crowd.blargon7.com/#/functional/report/6d53b7d749a60e65551b4b1d197c33ed http://mozmill-crowd.blargon7.com/#/functional/report/6d53b7d749a60e65551b4b1d197c3c8a http://mozmill-crowd.blargon7.com/#/functional/report/6d53b7d749a60e65551b4b1d197c4793
Attachment #795302 - Flags: review?(andrei.eftimie)
Attachment #795302 - Flags: review?(andreea.matei)
Comment on attachment 795302 [details] [diff] [review] patch_v2.0 Review of attachment 795302 [details] [diff] [review]: ----------------------------------------------------------------- Much better and cleaner! Please post some testruns under mozmill 1.5 then request a checkin from Andreea
Attachment #795302 - Flags: review?(andrei.eftimie)
Attachment #795302 - Flags: review?(andreea.matei)
Attachment #795302 - Flags: review+
Comment on attachment 795302 [details] [diff] [review] patch_v2.0 Review of attachment 795302 [details] [diff] [review]: ----------------------------------------------------------------- Please also add a blank line between the close() method and the comment.
Attached patch patch_v2.1Splinter Review
Attachment #795302 - Attachment is obsolete: true
Attachment #795432 - Flags: review?(andrei.eftimie)
Attachment #795432 - Flags: review?(andreea.matei)
Comment on attachment 795432 [details] [diff] [review] patch_v2.1 Review of attachment 795432 [details] [diff] [review]: ----------------------------------------------------------------- Landed: http://hg.mozilla.org/qa/mozmill-tests/rev/d29d5c0724c1 (default) Not sure if other branches are affected here in 2.0, might be good to backport. Please check that.
Attachment #795432 - Flags: review?(andrei.eftimie)
Attachment #795432 - Flags: review?(andreea.matei)
Attachment #795432 - Flags: review+
Flags: needinfo?(andreea.matei)
Attached patch patch_v2.2Splinter Review
All the branches are affected, the patch applies clearly and fixes the issue on Aurora and Beta, and I attached a new patch for Release and Esr17.
Attachment #793454 - Attachment is obsolete: true
Attachment #795940 - Flags: review?
Attachment #795940 - Flags: review? → review?(andreea.matei)
Status: ASSIGNED → RESOLVED
Closed: 11 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: