Closed Bug 511181 Opened 15 years ago Closed 15 years ago

[mozmill] Test that the Larry UI opens and closes

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: u279076, Assigned: u279076)

References

Details

Attachments

(1 file, 1 obsolete file)

This is a placeholder bug for writing a Mozmill test script for https://litmus.mozilla.org/show_test.cgi?id=6544
Assignee: nobody → ashughes
Attached patch Initial patch (obsolete) — Splinter Review
Attachment #395129 - Flags: review?(hskupin)
Comment on attachment 395129 [details] [diff] [review]
Initial patch

Anthony, I have checked the test with a couple of negative tests and we fail in circum instances. Following changes I have made which i will upload as a follow-up patch shortly:

* We should follow the naming of elements in the browser. Using larry and doorhanger isn't the best choice.
* Using a global gDelay and gTimeout value
* We cannot check the class name in this case because we don't know which web page is open. If a page with a DV or EV cert is open the test fails. I changed it to check the visibility of the more info button. Further I made some updates to the assertElementVisible function which reports the correct info now.
* We should not use keypress to close the popup. We click outside of the popup now.
Attachment #395129 - Flags: review?(hskupin) → review-
Attached patch Patch v2Splinter Review
Attachment #395129 - Attachment is obsolete: true
Attachment #395311 - Flags: review?
Status: NEW → ASSIGNED
Attachment #395311 - Flags: review?(ashughes)
Attachment #395311 - Flags: review?(adesai)
Attachment #395311 - Flags: review?
>   controller.window.focus();

I understand you doing this to solve bullet point 3 from above.  However, I think a better way would be to open a particular web page (about:blank for example).  This way we can guarantee the state of the tab.  controller.window.focus() merely ensures focus on the window.  It does not change what page is loaded -- which is the problem as I understand it.

If you've tested this across all platforms multiple times and it works, I'll r+ this.
FWIW, it may make more sense to roll these tests into each of the GREEN, BLUE, and GREY tests I've already submitted for review (since the testing here is pretty minimal).
(In reply to comment #4)
> >   controller.window.focus();
> 
> I understand you doing this to solve bullet point 3 from above.  However, I

It's a left-over. We don't need it. Thanks for noticing it. Without the state check (which we already do in the other tests) it will work whichever page is open. The button is always there.

> If you've tested this across all platforms multiple times and it works, I'll r+
> this.

Sure. Works well.

(In reply to comment #5)
> FWIW, it may make more sense to roll these tests into each of the GREEN, BLUE,
> and GREY tests I've already submitted for review (since the testing here is
> pretty minimal).

It's a separate Litmus test so we should keep it independent. Otherwise we will have a problem with the reported result. And it's really quick. So it doesn't matter.
Attachment #395311 - Flags: review?(ashughes) → review+
Comment on attachment 395311 [details] [diff] [review]
Patch v2

Aye, I agree with Anthony's assessment. It's a better option to keep tests separated from each other unless they depend on each other or if there would be a 1-2 line extension of the testscript. This only works as long as the testscript's functionality and readability cannot be called into question. In this case, it's true. The testcase just wouldn't fit as well into the other testscript as opposed to its own. 

I've done a quick run with and without the controller.window.focus() and it works either way. Move forward :)
Attachment #395311 - Flags: review?(adesai) → review+
Landed as http://hg.mozilla.org/qa/mozmill-tests/rev/245fb8b43fed
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
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: Security → Mozmill Tests
Product: Firefox → Mozilla QA
QA Contact: firefox → 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

Creator:
Created:
Updated:
Size: