Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(82)

Issue 9830047: capture useful info after browser tests (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 9 months ago by felix8a
Modified:
12 years, 9 months ago
Reviewers:
kpreid2
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

html capture is an approximation of the dom, basically .innerHTML. I'm unsure how inaccurate it can be. screenshot capture is pretty reliable when available. logs capture is pretty useless right now, because webdriver doesn't give us what we want.

Patch Set 1 #

Patch Set 2 : capture useful info after browser tests #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -8 lines) Patch
M build.xml View 1 chunk +1 line, -0 lines 0 comments Download
M tests/com/google/caja/plugin/BrowserTestCase.java View 2 chunks +5 lines, -2 lines 1 comment Download
M tests/com/google/caja/plugin/CatalogTestCase.java View 1 chunk +1 line, -1 line 0 comments Download
M tests/com/google/caja/plugin/ModulesBrowserTest.java View 1 chunk +1 line, -1 line 0 comments Download
M tests/com/google/caja/plugin/WebDriverHandle.java View 1 3 chunks +74 lines, -4 lines 4 comments Download
M tests/com/google/caja/util/TestFlag.java View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 6
felix8a
12 years, 9 months ago (2013-06-12 06:29:04 UTC) #1
felix8a
er, wait. screenshot capture fails for the scanner.
12 years, 9 months ago (2013-06-12 06:46:39 UTC) #2
felix8a
html capture is an approximation of the dom, basically .innerHTML. I'm unsure how inaccurate it ...
12 years, 9 months ago (2013-06-12 07:06:31 UTC) #3
felix8a
On 2013/06/12 06:46:39, felix8a wrote: > er, wait. screenshot capture fails for the scanner. not ...
12 years, 9 months ago (2013-06-12 07:08:57 UTC) #4
kpreid2
LGTM https://codereview.appspot.com/9830047/diff/4001/tests/com/google/caja/plugin/BrowserTestCase.java File tests/com/google/caja/plugin/BrowserTestCase.java (right): https://codereview.appspot.com/9830047/diff/4001/tests/com/google/caja/plugin/BrowserTestCase.java#newcode120 tests/com/google/caja/plugin/BrowserTestCase.java:120: { I don't think the { on another ...
12 years, 9 months ago (2013-06-12 16:43:07 UTC) #5
felix8a
12 years, 9 months ago (2013-06-12 19:51:31 UTC) #6
@r5446

https://codereview.appspot.com/9830047/diff/4001/tests/com/google/caja/plugin...
File tests/com/google/caja/plugin/WebDriverHandle.java (right):

https://codereview.appspot.com/9830047/diff/4001/tests/com/google/caja/plugin...
tests/com/google/caja/plugin/WebDriverHandle.java:231: // ignore
On 2013/06/12 16:43:07, kpreid2 wrote:
> Please log this failure.

Done.

https://codereview.appspot.com/9830047/diff/4001/tests/com/google/caja/plugin...
tests/com/google/caja/plugin/WebDriverHandle.java:262: private void
saveToFile(String fileName, byte[] bytes) {
On 2013/06/12 16:43:07, kpreid2 wrote:
> I'm pretty sure we already have these somewhere in our classpath...
> 
> Yeah, try org.apache.commons.io.FileUtils; has string and array versions.

ok I just tried using FileUtils instead and it turns out not to be any simpler,
because I still need all the try/catch code. basically, it just saves 2 lines of
code. so, I'm not doing it.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b