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

Issue 11790043: rerefactor browser test driver (Closed)

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

Description

Chrome testing is still failing randomly due to some chromedriver issue where it hangs forever waiting for something. This is a refactor that tries to avoid the problem, by reinstating code to use fresh windows in the same browser instance, but rewritten a little more cleanly. I've been using this to run Chrome tests continually on my laptop for a while, and it hasn't failed. I have low confidence this will actually solve the problem, because my previous attempt at a fix also ran fine in continual testing on my laptop. But this was easy to do, and it does have a chance of fixing the problem, so why not try it. (My current guess about the failure is that it started happening because of the forced switch to chromedriver2 because of lack of support for chromedriver1 in the newer versions of chrome, but I'm having trouble reproducing a failure and/or capturing info from a failure, so this is a lot of stumbling in the dark.)

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -81 lines) Patch
M tests/com/google/caja/lang/css/CssPropertyPatternsTest.java View 1 chunk +0 lines, -1 line 0 comments Download
M tests/com/google/caja/plugin/BrowserTestCase.java View 4 chunks +45 lines, -53 lines 2 comments Download
A tests/com/google/caja/plugin/Echo.java View 1 chunk +42 lines, -0 lines 2 comments Download
M tests/com/google/caja/plugin/WebDriverHandle.java View 5 chunks +30 lines, -25 lines 0 comments Download
M tests/com/google/caja/util/TestFlag.java View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 3
felix8a
12 years, 8 months ago (2013-07-24 22:20:49 UTC) #1
kpreid2
LGTM https://codereview.appspot.com/11790043/diff/1/tests/com/google/caja/plugin/BrowserTestCase.java File tests/com/google/caja/plugin/BrowserTestCase.java (right): https://codereview.appspot.com/11790043/diff/1/tests/com/google/caja/plugin/BrowserTestCase.java#newcode90 tests/com/google/caja/plugin/BrowserTestCase.java:90: serverHost = ThisHostName.value(); Comment on what's going on ...
12 years, 8 months ago (2013-07-24 22:45:16 UTC) #2
felix8a
12 years, 8 months ago (2013-07-25 00:33:31 UTC) #3
@r5506

https://codereview.appspot.com/11790043/diff/1/tests/com/google/caja/plugin/B...
File tests/com/google/caja/plugin/BrowserTestCase.java (right):

https://codereview.appspot.com/11790043/diff/1/tests/com/google/caja/plugin/B...
tests/com/google/caja/plugin/BrowserTestCase.java:90: serverHost =
ThisHostName.value();
On 2013/07/24 22:45:16, kpreid2 wrote:
> Comment on what's going on here — why this condition goes with this value. "If
> WEBDRIVER_URL is set, then we're doing remote testing, so..."

Done.

https://codereview.appspot.com/11790043/diff/1/tests/com/google/caja/plugin/E...
File tests/com/google/caja/plugin/Echo.java (right):

https://codereview.appspot.com/11790043/diff/1/tests/com/google/caja/plugin/E...
tests/com/google/caja/plugin/Echo.java:21: public class Echo {
On 2013/07/24 22:45:16, kpreid2 wrote:
> a comment talking about why this particular bundle of functions exists would
be
> nice.

Done.
Sign in to reply to this message.

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