Closed
Bug 512506
Opened 16 years ago
Closed 16 years ago
Mozmill test for verifying breakpad is installed
Categories
(Mozilla QA Graveyard :: Mozmill Tests, defect)
Mozilla QA Graveyard
Mozmill Tests
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: whimboo, Assigned: whimboo)
Details
(Whiteboard: [mozmill-smoketest][mozmill-installation])
Attachments
(2 files, 1 obsolete file)
|
3.97 KB,
patch
|
aakashd
:
review+
|
Details | Diff | Splinter Review |
|
3.50 KB,
patch
|
whimboo
:
review+
|
Details | Diff | Splinter Review |
This Mozmill test will test if Breakpad is installed and enabled per default.
Litmus tests:
https://litmus.mozilla.org/show_test.cgi?id=5910
https://litmus.mozilla.org/show_test.cgi?id=7953
| Assignee | ||
Comment 1•16 years ago
|
||
That's the version for >=1.9.2 where we can use the nsICrashReporter interface. For 1.9.1 I have to implement an ini parser.
Attachment #396479 -
Flags: review?(adesai)
| Assignee | ||
Comment 2•16 years ago
|
||
Comment on attachment 396479 [details] [diff] [review]
Patch v1 (trunk)
Needs an update.
Attachment #396479 -
Attachment is obsolete: true
Attachment #396479 -
Flags: review?(adesai)
| Assignee | ||
Comment 3•16 years ago
|
||
That test is for 1.9.1 and uses the ini parser to get the state of the crash reporter.
Attachment #396515 -
Flags: review?(adesai)
| Assignee | ||
Comment 4•16 years ago
|
||
This updated test for trunk checks also for the existence of the crash reporter application. I wasn't able to detect if it is already done by the interface itself. But that would make it double safe.
Attachment #396520 -
Flags: review?(adesai)
| Assignee | ||
Comment 5•16 years ago
|
||
Aakash: ping?
Comment 6•16 years ago
|
||
Comment on attachment 396520 [details] [diff] [review]
Patch v2 (trunk)
This test hangs on a command line run for OSX (didn't run on XP via commandline). I ran this via IDE on XP and OSX and they both run and pass fine. The logic is correct, so once you can make sense of the hang on OSX, then I'll r+ this.
Attachment #396520 -
Flags: review?(adesai) → review-
Comment 7•16 years ago
|
||
Comment on attachment 396515 [details] [diff] [review]
Patch v1 (1.9.1)
A run on IDe and Command Line passes on both XP and OSX. The logic and comments are all correct, so r+.
Attachment #396515 -
Flags: review?(adesai) → review+
| Assignee | ||
Comment 8•16 years ago
|
||
The test works well for me with Shiretoko, Namoroka, and Minefield via IDE and command line. Can you please check again with the latest Mozmill 1.2.1 release build? Otherwise we could go ahead and check it in so other people could test too.
| Assignee | ||
Comment 9•16 years ago
|
||
Aakash, can you please run the test from the command line and throw the value of execFile.exists() right before the assertJS test? Run Mozmill with the --showall option.
| Assignee | ||
Comment 10•16 years ago
|
||
Anthony, could you please have a look at the trunk patch and if you have problems too? Thanks.
Comment 11•16 years ago
|
||
AFAICT the code is well-formed. The test fails on line 82: controller.assertJS(crashReporter.enabled == states["Enabled"]);
fail :: javascript assert was not succesful
| Assignee | ||
Comment 12•16 years ago
|
||
Anthony and Aakash, can you both please evaluate the following string inside the Error Console? Which output do you see in the message pane? I get a 'true'.
Components.classes["@mozilla.org/toolkit/crash-reporter;1"].getService(Components.interfaces.nsICrashReporter).enabled;
Comment 13•16 years ago
|
||
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2
Warning: reference to undefined property Components.classes['@mozilla.org/toolkit/crash-reporter;1'].getService(Components.interfaces.nsICrashReporter).enabled
Source File: javascript:%20Components.classes["@mozilla.org/toolkit/crash-reporter;1"].getService(Components.interfaces.nsICrashReporter).enabled;
Line: 1
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2a2pre) Gecko/20090826 Namoroka/3.6a2pre
TRUE
Comment 14•16 years ago
|
||
Note that the crashreporter will only be enabled on nightly/release builds, not on self builds.
Also, that nsICrashReporter.enabled is not available on 1.9.1.
| Assignee | ||
Comment 15•16 years ago
|
||
Comment on attachment 396520 [details] [diff] [review]
Patch v2 (trunk)
Aakash, have you used a debug build for your tests? Then it would explain why the test has always been failed for Minefield on your box. I haven't thought about that little but meaningful difference. Please check with a nightly build again.
Attachment #396520 -
Flags: review- → review?(adesai)
Comment 16•16 years ago
|
||
Comment on attachment 396520 [details] [diff] [review]
Patch v2 (trunk)
I never used a debug build to run against your testcase (and haven't run trunk nightlies in general for awhile now) and neither did Anthony as he doesn't build his own debug builds anyways.
Attachment #396520 -
Flags: review?(adesai) → review-
| Assignee | ||
Comment 17•16 years ago
|
||
Aakash, I have asked you to repeat the test. It means that I also want to get the output from the command I asked for in comment 12. Please comment here with the results for Namoroka and Minefield.
Comment 18•16 years ago
|
||
I did a run on Namoroka and Minefield via IDE and the testscript passed on OSX and XP. It still hangs on command line and there are still no errors or any messages showing on console.
Comment 19•16 years ago
|
||
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.3a1pre) Gecko/20090901 Minefield/3.7a1pre
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2a2pre) Gecko/20090901 Namoroka/3.6a2pre
RESULT: Fail -> Error: Cc['@mozilla.org/toolkit/crash-reporter;1'] is undefined
Source File: file:///home/ashughes/.mozilla/firefox/r47jio9b.namo/extensions/mozmill@mozilla.com/resource/modules/frame.js -> file:///home/ashughes/mozmill-tests/firefox/testInstallation/testBreakpadInstalled.js
Line: 64
NOTE: I see this result with both builds via IDE and command line. At no point does the test hang.
| Assignee | ||
Comment 20•16 years ago
|
||
(In reply to comment #19)
> Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.3a1pre) Gecko/20090901
> Minefield/3.7a1pre
>
> RESULT: Fail -> Error: Cc['@mozilla.org/toolkit/crash-reporter;1'] is undefined
That should be expected too because Breakpad isn't available in 64bit builds. Anthony, once you are in the office it would be great when you can test it on a Mac. Thanks so far.
Comment 21•16 years ago
|
||
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.3a1pre) Gecko/20090902 Minefield/3.7a1pre
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2a2pre) Gecko/20090902 Namoroka/3.6a2pre
Both builds PASS via command line.
| Assignee | ||
Comment 22•16 years ago
|
||
Thanks Anthony. Good to know that it works for you. Probably something is messy in Aakash's setup of Mozmill.
Aakash, I would propose to checkin the test. If we get failures over time I have to update it. But having it in the tree we get more results on it. Are you ok with that?
| Assignee | ||
Comment 23•16 years ago
|
||
Comment on attachment 396520 [details] [diff] [review]
Patch v2 (trunk)
After talking on IRC and given the result from Anthony we will checkin the test and watch the results the next days.
Attachment #396520 -
Flags: review- → review+
| Assignee | ||
Comment 24•16 years ago
|
||
Landed as:
http://hg.mozilla.org/qa/mozmill-tests/rev/ec08f4333f57
http://hg.mozilla.org/qa/mozmill-tests/rev/0d825130b3a4
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 25•15 years ago
|
||
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: Breakpad Integration → Mozmill Tests
Product: Toolkit → Mozilla QA
QA Contact: breakpad.integration → mozmill-tests
Version: 1.9.0 Branch → unspecified
Status: RESOLVED → VERIFIED
Summary: [mozmill] Test that breakpad is installed → Mozmill test for verifying breakpad is installed
Whiteboard: [mozmill-smoketest] → [mozmill-smoketest][mozmill-installation]
Updated•6 years ago
|
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•