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)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: whimboo, Assigned: whimboo)

Details

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

Attachments

(2 files, 1 obsolete file)

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
Attached patch Patch v1 (trunk) (obsolete) — Splinter Review
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)
Comment on attachment 396479 [details] [diff] [review] Patch v1 (trunk) Needs an update.
Attachment #396479 - Attachment is obsolete: true
Attachment #396479 - Flags: review?(adesai)
Attached patch Patch v1 (1.9.1)Splinter Review
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)
Attached patch Patch v2 (trunk)Splinter Review
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)
Aakash: ping?
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 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+
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.
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.
Anthony, could you please have a look at the trunk patch and if you have problems too? Thanks.
AFAICT the code is well-formed. The test fails on line 82: controller.assertJS(crashReporter.enabled == states["Enabled"]); fail :: javascript assert was not succesful
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;
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
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.
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 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-
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.
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.
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.
(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.
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.
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?
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+
Status: ASSIGNED → RESOLVED
Closed: 16 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: Breakpad Integration → Mozmill Tests
Product: Toolkit → Mozilla QA
QA Contact: breakpad.integration → mozmill-tests
Version: 1.9.0 Branch → unspecified
Whiteboard: [mozmill-smoketest]
Status: RESOLVED → VERIFIED
Summary: [mozmill] Test that breakpad is installed → Mozmill test for verifying breakpad is installed
Whiteboard: [mozmill-smoketest] → [mozmill-smoketest][mozmill-installation]
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: