Closed Bug 526593 Opened 16 years ago Closed 16 years ago

[mozmill] Update testLocationBarSearches.js to fix failures

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: whimboo, Assigned: whimboo)

References

Details

(Keywords: regression, Whiteboard: [mozmill-test-failure])

Attachments

(2 files, 1 obsolete file)

Attached patch Patch v1 (obsolete) — Splinter Review
The following test under firefox/testAwesomeBar/testLocationBarSearches.js has to be updated to fix the following problems: * There was an update to Mozmill which changed the way we open web pages. When you want to test the location bar you have to user controller.type and controller.keypress. * The first test with 'oau45rtdgsh34nf' as search term fails again thanks to the indexing of testcases on brasstacks. Adding another character works fine. Tracy, are you ok with these changes?
Attachment #410316 - Flags: review?(twalker)
Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Tracy, the last test what did it test in detail? The element cannot be found whether which platform I test on. :/
It's checking for the string 'lotr' in the blue strip below the google search bar but above the list ove results : as in Results 1 - 10 of about 5,060,000 for lotr. (0.43 seconds) changes are fine by me. won;t the random string just get indexed again and again?
(In reply to comment #2) > It's checking for the string 'lotr' in the blue strip below the google search > bar but above the list ove results : as in Results 1 - 10 of about 5,060,000 > for lotr. (0.43 seconds) I do not have this blue bar. Or at least there is no "lotr" shown. The only thing I can see there is "Web". That's all. So should we just assume that results have been found? > changes are fine by me. won;t the random string just get indexed again and > again? I don't think that hg gets indexed. I just wonder how we should handle the litmus test. By the way that test needs an update too so that it reflects this test. Can you please do that Tracy?
Attached image lotrgoogleresults
the attachments shows what I get from a google results page.
So you mean the sponsored link, right? Looks like that it is only shown in a couple of regions. Shall I go with checking if results have been found?
It's not checking a sponsored link. The test looks for the lotr right after "about 5,070,000 for " <lotr> Is that data really not provided for you in de? That's odd. Seems like a Google bragging point. (hey look, we found over 5 million results in an eighth of a second) Checking for something within the results list is too flaky. I went through a few iterations attempting to do just that with unreliable results. You can't guarantee what will be in the results list from region to region much less from day to day. If you can figure out how to determine if there are just results present, go for it.
Attached patch Patch v2Splinter Review
Thanks Tracy. So it turns out that the problem is simply the wrong usage of assertValue instead of assertText. With the change it works fine.
Attachment #410316 - Attachment is obsolete: true
Attachment #410767 - Flags: review?(adesai)
Attachment #410316 - Flags: review?(twalker)
Comment on attachment 410767 [details] [diff] [review] Patch v2 Looks good on the cosmetic changes. This works fine on Namoroka and Firefox 3.5 over XP and OSX.
Attachment #410767 - Flags: review?(adesai) → review+
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Blocks: 527983
Whiteboard: [mozmill-test-failure]
Mass move of Mozmill Test related project bugs to newly created components. You can filter out those emails by using "Mozmill-Tests-to-MozillaQA" as criteria.
Component: Location Bar → Mozmill Tests
Product: Firefox → Mozilla QA
QA Contact: location.bar → mozmill-tests
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: