Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Issue 2528483004: Adds skeleton of new integration test framework. (Closed)

Created:
4 years ago by Robert Ogden
Modified:
4 years ago
Reviewers:
RyanSturm, tbansal1
CC:
chromium-reviews, tbansal+watch-data-reduction-proxy_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adds skeleton of new integration test framework. Includes a working test case and basic functionality. Much more to come. BUG=669956 Committed: https://crrev.com/c2a3d73bf201088d52b9e1226f8277d8f011163c Cr-Commit-Position: refs/heads/master@{#435047}

Patch Set 1 #

Total comments: 18

Patch Set 2 : Fix nits. #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+243 lines, --1 lines) Patch
A tools/chrome_proxy/webdriver/__init__.py View 0 chunks +-1 lines, --1 lines 0 comments Download
A tools/chrome_proxy/webdriver/common.py View 1 1 chunk +221 lines, -0 lines 4 comments Download
A tools/chrome_proxy/webdriver/simple_smoke.py View 1 1 chunk +23 lines, -0 lines 2 comments Download

Messages

Total messages: 23 (11 generated)
Robert Ogden
A wild integration test framework appeared!
4 years ago (2016-11-23 21:33:28 UTC) #2
Robert Ogden
4 years ago (2016-11-28 21:21:00 UTC) #6
Robert Ogden
Third reviewer is the charm. (One of many CLs on this framework to come)
4 years ago (2016-11-29 18:18:45 UTC) #8
tbansal1
few nits https://codereview.chromium.org/2528483004/diff/1/tools/chrome_proxy/webdriver/common.py File tools/chrome_proxy/webdriver/common.py (right): https://codereview.chromium.org/2528483004/diff/1/tools/chrome_proxy/webdriver/common.py#newcode65 tools/chrome_proxy/webdriver/common.py:65: self._args = {} Can this be renamed ...
4 years ago (2016-11-29 18:38:53 UTC) #9
Robert Ogden
https://codereview.chromium.org/2528483004/diff/1/tools/chrome_proxy/webdriver/common.py File tools/chrome_proxy/webdriver/common.py (right): https://codereview.chromium.org/2528483004/diff/1/tools/chrome_proxy/webdriver/common.py#newcode65 tools/chrome_proxy/webdriver/common.py:65: self._args = {} On 2016/11/29 18:38:53, tbansal1 wrote: > ...
4 years ago (2016-11-29 18:53:54 UTC) #10
tbansal1
lgtm. Thanks for doing this.
4 years ago (2016-11-29 18:55:30 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2528483004/20001
4 years ago (2016-11-29 18:56:08 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-11-29 19:10:39 UTC) #16
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/c2a3d73bf201088d52b9e1226f8277d8f011163c Cr-Commit-Position: refs/heads/master@{#435047}
4 years ago (2016-11-29 19:17:04 UTC) #18
RyanSturm
Adding mostly style nits. https://codereview.chromium.org/2528483004/diff/1/tools/chrome_proxy/webdriver/common.py File tools/chrome_proxy/webdriver/common.py (right): https://codereview.chromium.org/2528483004/diff/1/tools/chrome_proxy/webdriver/common.py#newcode29 tools/chrome_proxy/webdriver/common.py:29: parser.add_argument('--via_header_matches', metavar='via_header', nargs=1, nit: s/via_header_matchers/via_header_value/ ...
4 years ago (2016-11-29 19:31:46 UTC) #20
RyanSturm
On 2016/11/29 19:31:46, Ryan Sturm wrote: > Adding mostly style nits. > > https://codereview.chromium.org/2528483004/diff/1/tools/chrome_proxy/webdriver/common.py > ...
4 years ago (2016-11-29 19:32:19 UTC) #21
Robert Ogden
4 years ago (2016-11-29 22:39:37 UTC) #22
Message was sent while issue was closed.
Changes in the work now, I'll add you as a reviewer when done.

https://codereview.chromium.org/2528483004/diff/20001/tools/chrome_proxy/webd...
File tools/chrome_proxy/webdriver/common.py (right):

https://codereview.chromium.org/2528483004/diff/20001/tools/chrome_proxy/webd...
tools/chrome_proxy/webdriver/common.py:67: self.chrome_args = {}
On 2016/11/29 19:31:46, Ryan Sturm wrote:
> can this be a set instead of a dict? I don't see much value in setting the key
> pair to value : true when you can just add value instead.

Done in follow up CL

https://codereview.chromium.org/2528483004/diff/20001/tools/chrome_proxy/webd...
tools/chrome_proxy/webdriver/common.py:188: return
self._driver.execute_script("return " + script)
On 2016/11/29 19:31:46, Ryan Sturm wrote:
> What happens if LoadPage was not called (i.e., _StartDriver was just called)?

Chrome would start but would stay on a blank page.

https://codereview.chromium.org/2528483004/diff/20001/tools/chrome_proxy/webd...
File tools/chrome_proxy/webdriver/simple_smoke.py (right):

https://codereview.chromium.org/2528483004/diff/20001/tools/chrome_proxy/webd...
tools/chrome_proxy/webdriver/simple_smoke.py:19: time.sleep(5)
On 2016/11/29 19:31:46, Ryan Sturm wrote:
> Why is the sleep(5) necessary? 

Demonstration purposes only. Real tests won't have this. Added comment in follow
up CL

Powered by Google App Engine
This is Rietveld 408576698