Closed Bug 767821 Opened 12 years ago Closed 12 years ago

Failure in testRemoveAllCookies.js | Timeout waiting for page loaded

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect)

defect
Not set
normal

Tracking

(firefox13 fixed, firefox14 fixed, firefox15 fixed, firefox16 fixed, firefox-esr10 fixed)

RESOLVED FIXED
Tracking Status
firefox13 --- fixed
firefox14 --- fixed
firefox15 --- fixed
firefox16 --- fixed
firefox-esr10 --- fixed

People

(Reporter: u279076, Assigned: remus.pop)

References

()

Details

(Whiteboard: [mozmill-test-failure])

Attachments

(2 files, 4 obsolete files)

Failure discovered while running 14.0b9 functional tests.

Module: /testCookies/testRemoveAllCookies.js 	
Test: testRemoveAllCookies.js::testRemoveAllCookies 	
Error: controller.waitForPageLoad(): Timeout waiting for page loaded. 
Report: http://mozmill-ci.blargon7.com/#/functional/report/44fc451c2e6b66b62172f2e13e16a438
Remus, please make this test using mozqa.com. There is a cookie testcase available.
Assignee: nobody → remus.pop
Status: NEW → ASSIGNED
Attached patch patch v1 (beta) (obsolete) — Splinter Review
Used the local cookie page and removed gTimeout constant from the wait calls.
Attachment #638612 - Flags: review?(hskupin)
Attachment #638612 - Flags: review?(dave.hunt)
Comment on attachment 638612 [details] [diff] [review]
patch v1 (beta)

Taking this for review.
Attachment #638612 - Flags: review?(hskupin)
Comment on attachment 638612 [details] [diff] [review]
patch v1 (beta)

> /**
>  * Test removing all cookies via the cookie manager
>  */
> var testRemoveAllCookies = function() {
>-  // Go to mozilla.org to build a list of cookies
>-  controller.open("http://www.mozilla.org/");
>+  // Go to google.com to build a list of cookies
>+  controller.open(LOCAL_TEST_PAGE);

This comment referred to the page originally being opened, which is now a local test page and not google.com

>   controller.waitForPageLoad();
>-
>+  
>   controller.open("http://www.google.com/");
>   controller.waitForPageLoad();

As we're making this page use local test pages, can we not remove the external dependency on google.com? I'm guessing that this is here so that we have cookies from multiple domains.
Attachment #638612 - Flags: review?(dave.hunt) → review-
Speaking to Henrik on IRC, you should use mozqa.com with different domains. For example:

http://domain1.mozqa.com/data/firefox/cookies/cookie_single.html
http://domain2.mozqa.com/data/firefox/cookies/cookie_single.html

This maintains the integrity of the test but uses the much more lightweight test pages. In the future we should be able to use local test pages by faking fully qualified domain names, but for now we must use remote pages.
Attached patch patch v2 (beta) (obsolete) — Splinter Review
I've created an array for the different domains and changed the comment.
Attachment #638612 - Attachment is obsolete: true
Attachment #639065 - Flags: review?(dave.hunt)
Comment on attachment 639065 [details] [diff] [review]
patch v2 (beta)

>+const COOKIE_PAGE = "/data/firefox/cookies/cookie_single.html";
>+const DOMAINS = ["http://domain1.mozqa.com",
>+                 "http://domain2.mozqa.com"];

Don't invent new names. Stick with those constants we are making use of in all the other tests.
Attachment #639065 - Flags: review?(dave.hunt) → review-
Attached patch patch v3 (beta)Splinter Review
Addressed all requests.
Attachment #639065 - Attachment is obsolete: true
Attachment #639081 - Flags: review?(hskupin)
Attachment #639081 - Flags: review?(dave.hunt)
Comment on attachment 639081 [details] [diff] [review]
patch v3 (beta)

Looks good. Landed as:
http://hg.mozilla.org/qa/mozmill-tests/rev/11ebce9d12a6 (default)
Attachment #639081 - Flags: review?(hskupin)
Attachment #639081 - Flags: review?(dave.hunt)
Attachment #639081 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Attached patch patch v3 (esr10) (obsolete) — Splinter Review
Updated patch so it applies cleanly in esr10.
Attachment #639660 - Flags: review?(hskupin)
Attachment #639660 - Flags: review?(dave.hunt)
Comment on attachment 639660 [details] [diff] [review]
patch v3 (esr10)

I don't think we're changing the license blocks for mozilla-esr10. Could you revert that and then this will look good to me.
Attachment #639660 - Flags: review?(hskupin)
Attachment #639660 - Flags: review?(dave.hunt)
Attachment #639660 - Flags: review-
Attached patch patch v3 (esr10) (obsolete) — Splinter Review
Reverted the old license block.
Attachment #639660 - Attachment is obsolete: true
Attachment #640190 - Flags: review?(dave.hunt)
Did you forget to qref? The license block change is still there...
Attached patch patch v3 (esr10)Splinter Review
Yes, I somehow omitted the refresh.
Attachment #640190 - Attachment is obsolete: true
Attachment #640190 - Flags: review?(dave.hunt)
Attachment #640202 - Flags: review?(dave.hunt)
Attachment #640202 - Flags: review?(dave.hunt) → review+
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: