Closed
Bug 1512615
Opened 6 years ago
Closed 6 years ago
Support screenshots for tests
Categories
(Testing :: Raptor, enhancement, P3)
Tracking
(firefox66 fixed)
RESOLVED
FIXED
mozilla66
| Tracking | Status | |
|---|---|---|
| firefox66 | --- | fixed |
People
(Reporter: Bebe, Assigned: Bebe)
Details
Attachments
(1 file)
make Raptor support screenshots when running tests
This would be useful when testing on different platforms or verifying different tests
| Assignee | ||
Comment 1•6 years ago
|
||
| Assignee | ||
Comment 2•6 years ago
|
||
I did a little hacking today to see how we can get this to work.
it still needs some work but it's a good start
Try job:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=b9897656008c13ccad711b3bf6158a309a553491
You can find the screenshots in the job details artifacts.
This would be really helpful when reviewing a tp6 tests.
| Assignee | ||
Comment 3•6 years ago
|
||
:rwood :davehunt please share your thought on this "feature" and how should it be implemented long term
Flags: needinfo?(rwood)
Flags: needinfo?(dave.hunt)
| Assignee | ||
Updated•6 years ago
|
Assignee: nobody → fstrugariu
Comment 4•6 years ago
|
||
This is really cool, thanks :bebe! Please see the feedback in the phabricator review. Quick summary:
1. Taking screenshots should be an option in the test INI i.e. screenshot = true/false, so that we can turn this on/off for specific tests.
2. We should expand this to work with benchmark type of tests too - when the runner.js receives the benchmark result from benchmark-relay.js, the runner.js could take the screenshot at that time, same method as pageload tests.
3. In the screenshot.html artifact, please include the test name, and use 'pagecycles' instead of 'test' and start at 1. i.e. headings should be:
'raptor-tp6-google-firefox pagecycle 1' to 25.
That will match the logging and make it easier to map screenshots to the test logs.
4. Doesn't work in google chromium, needs a fix for that (see phabricator).
5. Please see the additional notes in-line in the phabricator review.
Thanks!
Flags: needinfo?(rwood)
Comment 6•6 years ago
|
||
(In reply to Dave Hunt [:davehunt] [he/him] ⌚️UTC from comment #5)
> See also bug 1512615.
Sorry, that should be bug 1490399.
| Assignee | ||
Comment 7•6 years ago
|
||
Comment 8•6 years ago
|
||
As discussed with :davehunt, we will first land this just as an option in the test INI, with the default being off. Then if we want to test new or existing pages on all the platforms we could just set 'screenshots = True' in the test INI and push that to try, and that will use the current behaviour taking a screenshot on each pagecycle.
Down the road in follow-up bugs we can decide if/how to turn it on in production i.e. possibly take a screenshot on the first page cycle and after that only when there is a timeout (good suggestion :davehunt!).
| Assignee | ||
Comment 9•6 years ago
|
||
Updated and created the try job:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=ad53228de2ebb2b475bfe9484f407432c0bcc721&selectedJob=216992237
| Assignee | ||
Comment 10•6 years ago
|
||
Fixed the chrome errors:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=7794bbd49f898e08d3572d5e2a74ba49588d32f9
| Assignee | ||
Comment 11•6 years ago
|
||
| Assignee | ||
Updated•6 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Comment 12•6 years ago
|
||
| Assignee | ||
Comment 13•6 years ago
|
||
| Assignee | ||
Comment 14•6 years ago
|
||
Comment 15•6 years ago
|
||
Pushed by fstrugariu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1a25a39e7fb4
Support screenshots for tests r=rwood
Comment 16•6 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox66:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
You need to log in
before you can comment on or make changes to this bug.
Description
•