Closed Bug 479314 Opened 15 years ago Closed 15 years ago

Mozmill test for starting/stopping private browsing mode

Categories

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

defect

Tracking

(status1.9.1 unaffected)

VERIFIED FIXED
Tracking Status
status1.9.1 --- unaffected

People

(Reporter: whimboo, Assigned: whimboo)

References

Details

(Whiteboard: [mozmill-smoketest][mozmill-privatebrowsing])

Attachments

(2 files, 3 obsolete files)

This bug will cover the work which is needed to create a MozMill test for https://litmus.mozilla.org/show_test.cgi?id=7394
This can be (and is afaik) done with automated tests... (especially now that the tests can be run without keep_current_session)
We probably already have automated tests here but these are unit tests and not functional tests. The way how MozMill handles the actions is totally different. We wanna detect failures while interacting with the ui.
FTR private browsing has browser-chrome tests as well. I'm not saying not to do this, just casually mentioning.
I think Natch is correct in comment 1, and this _can_ be written as a browser chrome test now, but from what I hear, MozMill is much better at handling these kinds of scenarios, so I'm willing to see what comes up here.  :-)

And as a general note, Henrik, I think with bug 476463 fixed, we can convert some of the current PB Litmus tests to automated tests.  Do you have a list of those tests which seem appropriate for this job?
(In reply to comment #4)
> I think Natch is correct in comment 1, and this _can_ be written as a browser
> chrome test now, but from what I hear, MozMill is much better at handling these
> kinds of scenarios, so I'm willing to see what comes up here.  :-)

If you can come up with such a chrome test it would be really helpful, because MozMill isn't integrated into the build system right now. Means all the tests aren't run automatically on each check-in. Regressions will be find to late in the circle.

> And as a general note, Henrik, I think with bug 476463 fixed, we can convert
> some of the current PB Litmus tests to automated tests.  Do you have a list of
> those tests which seem appropriate for this job?

You mean tests which can be converted to automated tests? I think that Marcia can help out here. Marcia, do we have a private browsing subgroup in Litmus?
(In reply to comment #5)
> (In reply to comment #4)
> > I think Natch is correct in comment 1, and this _can_ be written as a browser
> > chrome test now, but from what I hear, MozMill is much better at handling these
> > kinds of scenarios, so I'm willing to see what comes up here.  :-)
> 
> If you can come up with such a chrome test it would be really helpful, because
> MozMill isn't integrated into the build system right now. Means all the tests
> aren't run automatically on each check-in. Regressions will be find to late in
> the circle.

Ah, OK.  In that case, would you mind filing a new bug for that, please?  :-)

> > And as a general note, Henrik, I think with bug 476463 fixed, we can convert
> > some of the current PB Litmus tests to automated tests.  Do you have a list of
> > those tests which seem appropriate for this job?
> 
> You mean tests which can be converted to automated tests?

Yup.
(In reply to comment #6)
> Ah, OK.  In that case, would you mind filing a new bug for that, please?  :-)

Done. We can head over to bug 479720 for the automated tests.
Depends on: 479571
Thanks for filing that bug!

BTW, I assume that you added the dependency on bug 479571 by mistake, right?
Depends on: 479720
No longer depends on: 479571
No longer depends on: 479720
Depends on: 479571
No. That was intended. I've only forgotten to give a comment for that. Sorry.
OK then, sorry for messing with your work.  :-)
Priority: -- → P2
Target Milestone: --- → Firefox 3.1b3
Mike, this bug handles the MozMill test creation for the given Litmus test. It has nothing to do with Ehsans work on mc or 1.9.1. For the future just check the summary and if it contains "[mozmill]".
Target Milestone: Firefox 3.1b3 → ---
Depends on: 479749
Depends on: 488772
Clint, shall we checkin the patch even when it will not run via jsbridge? I don't think so because it will completely break mozmill. As what I can see now, it hangs and there is no progress. Probably it's worth filing a bug for Mozmill here too. I would at least attach the patch on this bug. Then we have to wait until bug 488772 has been fixed for checkin.
(In reply to comment #12)
> Clint, shall we checkin the patch even when it will not run via jsbridge? 

What patch? It's not attached here :/ I don't see any issue with checking it in now so that we can get it into source control, and just put a comment that it shouldn't be run automatically once that gets hooked up.  Since no test on build stuff is hooked up yet, there is no problem with checking it in now.  I'd rather have it in source control than wait for some bug to clear the way to run it with functionality we don't currently have. :)
Depends on: 497086
Attached patch Patch v1.0 (obsolete) — Splinter Review
Clint, this is the first patch for review. It will run successfully with the latest trunk build of Mozmill. Could you please have a look into that?
Attachment #382291 - Flags: review?(ctalbert)
Attached patch Patch v1.1 (obsolete) — Splinter Review
It would be nice to not forget to qrefresh first. :)
Attachment #382291 - Attachment is obsolete: true
Attachment #382292 - Flags: review?(ctalbert)
Attachment #382291 - Flags: review?(ctalbert)
Attached patch Patch v1.2 (obsolete) — Splinter Review
Please blame me. That one should be fine. I'll stop working on this patch for today. :)
Attachment #382292 - Attachment is obsolete: true
Attachment #382293 - Flags: review?(ctalbert)
Attachment #382292 - Flags: review?(ctalbert)
Comment on attachment 382293 [details] [diff] [review]
Patch v1.2

r=ctalbert  Awesome tests whimboo, I also see in your tests what I was doing wrong when trying to generalize the modal dialog for the preferences utils.
Attachment #382293 - Flags: review?(ctalbert) → review+
Attached patch Patch v1.3Splinter Review
I had a failure in checking for the titlemodifier. I have to use getAttribute to get the value. I've updated the patch. Taking over r+.
Attachment #382293 - Attachment is obsolete: true
Attachment #382385 - Flags: review+
Test checked in: http://hg.mozilla.org/qa/mozmill-tests/rev/253e06411e8e

It will add tests for following litmus tests: 7394, 7395, 7443, 7463, 7643, and 7714.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Summary: [mozmill] test for entering private browsing mode → [mozmill] Test for starting/stopping private browsing mode
I had to do a refactoring for those tests to match the style we need for reports of Mozmill. Lets reuse this bug because it applies to all written Private Browsing tests. Patch is upcoming.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Complete refactoring of the private browsing tests so that we have mapped one Litmus test to one test function or module in Mozmill.
Attachment #400099 - Flags: review?(adesai)
Comment on attachment 400099 [details] [diff] [review]
Follow-up (refactoring)

This fails on the latest mozmill-trunk, but passes on multiple attempts on OSX and XP using the latest MozMill release.
Attachment #400099 - Flags: review?(adesai) → review+
Landed as:

http://hg.mozilla.org/qa/mozmill-tests/rev/acc03852192d
http://hg.mozilla.org/qa/mozmill-tests/rev/373633409461
Status: REOPENED → RESOLVED
Closed: 15 years ago15 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: Private Browsing → Mozmill Tests
Product: Firefox → Mozilla QA
QA Contact: private.browsing → mozmill-tests
Version: 3.5 Branch → unspecified
Status: RESOLVED → VERIFIED
Summary: [mozmill] Test for starting/stopping private browsing mode → Mozmill test for starting/stopping private browsing mode
Whiteboard: [mozmill-smoketest][mozmill-privatebrowsing]
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: