Closed Bug 780554 Opened 12 years ago Closed 12 years ago

Mozmill test failure testSearch/testAddMozSearchProvider | Current URL contains the wrong search term

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect)

defect
Not set
normal

Tracking

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

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

People

(Reporter: vladmaniac, Assigned: vladmaniac)

References

()

Details

(Whiteboard: [mozmill-test-failure][functional])

Attachments

(1 file, 3 obsolete files)

This is failing constantly on all platforms since MDN change lately and this test uses a search engine which points to a MDN search 

https://developer.mozilla.org/en-US/

Local error log: 
"message": "Current URL contains the search term - got 'https://developer.mozilla.org/en-us/users/login?next=/en-us/docs/new%3fslug%3dspecial%253asearch', expected 'firefox'"
matches mozmill-ci report: 

http://mozmill-ci.blargon7.com/#/functional/report/29fc09ba0c8360d637617903a01a793b

Mozmill version: 1.5.17
Platforms: all
Whiteboard: [mozmill-test-failure][functional]
Assignee: nobody → vlad.mozbugs
Status: NEW → ASSIGNED
Attached patch quickey v1.0 (obsolete) — Splinter Review
So this is a simple fix - 
* just changed the search term because there were no search results in the new MDN for "Firefox" string.
* also, in the long term, I would suggest switching MDN with a mozqa page - not a local search engine (because this is the only test remaining to use the modal dialog and thoroughly test the UI and IMO we need it). MDN points to a browser ID login at the moment and I don't think we want to use credentials in our tests (I mean we did not so far)
Attachment #649192 - Flags: review?(dave.hunt)
The patch will apply cleanly also on mozilla-esr10 branch
Attachment #649192 - Flags: review?(hskupin)
Comment on attachment 649192 [details] [diff] [review]
quickey v1.0

>-  searchBar.search({text: "Firefox", action: "goButton"});
>+  searchBar.search({text: "Mozilla", action: "goButton"});

This is not a valid change. The string 'mozilla' appears in the URL because of the domain name, not because the search term has been passed correctly. This makes the test a false positive as the search functionality is not being tested at all.

We should change this test to use a local page, or at least to use mozqa.com.
Attachment #649192 - Flags: review?(hskupin)
Attachment #649192 - Flags: review?(dave.hunt)
Attachment #649192 - Flags: review-
Attached patch fix patch 2.0 (obsolete) — Splinter Review
Fixed to use a page from mozqa.com 
Thanks Dave for the fast review
Attachment #649192 - Attachment is obsolete: true
Attachment #649217 - Flags: review?(dave.hunt)
Attachment #649217 - Flags: review?(hskupin)
Comment on attachment 649217 [details] [diff] [review]
fix patch 2.0

If we are going to use mozqa.com we have to update the whole XML file. Just replacing the Url entry is not all as you can see when closely watching the file.

Also, I still want to see this test using a local search provider, but that's clearly a different bug.
Attachment #649217 - Flags: review?(hskupin)
Attachment #649217 - Flags: review?(dave.hunt)
Attachment #649217 - Flags: review-
Attached patch patch v2.1 (obsolete) — Splinter Review
You're right, sorry for missing the rest of the details.
Attachment #649217 - Attachment is obsolete: true
Attachment #649220 - Flags: review?(hskupin)
Attachment #649220 - Flags: review?(dave.hunt)
Comment on attachment 649220 [details] [diff] [review]
patch v2.1

>+  <ShortName>Moz Search</ShortName>

Please use 'mozqa.com' as short name.

>+  <Description>Mozilla QA Search Results Page</Description>

Same here: 'Mozqa.com search results'
Attachment #649220 - Flags: review?(hskupin)
Attachment #649220 - Flags: review?(dave.hunt)
Attachment #649220 - Flags: review-
Attached patch patch v2.2Splinter Review
fixed
Attachment #649220 - Attachment is obsolete: true
Attachment #649248 - Flags: review?(hskupin)
Attachment #649248 - Flags: review?(dave.hunt)
Comment on attachment 649248 [details] [diff] [review]
patch v2.2

I will land it across branches now. Vlad, please file an infrastructure bug so we can get the XML file updated in the litmus-data repository.
Attachment #649248 - Flags: review?(hskupin)
Attachment #649248 - Flags: review?(dave.hunt)
Attachment #649248 - Flags: 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: