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

Issue 11369075: Chrome remote control multipage tests: Add interactions. (Closed)

Created:
8 years, 1 month ago by marja
Modified:
8 years, 1 month ago
Reviewers:
dtu, nduca, tonyg
CC:
chromium-reviews, pam+watch_chromium.org, jochen (gone - plz use gerrit), dtu
Visibility:
Public.

Description

Chrome remote control multipage tests: Add interactions. The page set .json description defines what kind of interactions (e.g., link clicks) are possible for a page. The corresponding Web Page Replay .wpr file must contain replies to the requests sent when the interaction is executed. This will be used in memory tests (see http://codereview.chromium.org/11273081/ ). The top_25_usage.json is a proof of concept page set description adding a couple of interactions. When it's more complete, the existing tests will be migrated to use it. Parts of the code are stolen from nduca@chromium.org (see http://codereview.chromium.org/11114020/ ). BUG=158323 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=166734

Patch Set 1 #

Patch Set 2 : more robust dispatching (allow splitting interactions to separate files) #

Total comments: 8

Patch Set 3 : wip #

Patch Set 4 : simplified quoting #

Patch Set 5 : refactoring; add click_element.py, and js runner superclass for interactions. #

Total comments: 26

Patch Set 6 : code review & tests #

Total comments: 6

Patch Set 7 : code review & simplifications #

Patch Set 8 : simpler. #

Total comments: 2

Patch Set 9 : Rebased #

Patch Set 10 : code review (nduca) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+233 lines, -32 lines) Patch
M tools/perf/page_sets/top_25.json View 1 2 3 4 5 6 7 8 9 1 chunk +18 lines, -1 line 0 comments Download
A tools/telemetry/telemetry/click_to_navigate_interaction.py View 1 2 3 4 5 6 7 8 1 chunk +18 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/click_to_navigate_interaction_unittest.py View 1 2 3 4 5 6 7 8 1 chunk +25 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/compound_interaction.py View 1 2 3 4 5 6 7 8 1 chunk +17 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/compound_interaction_unittest.py View 1 2 3 4 5 6 7 8 1 chunk +42 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/inspector_page.py View 1 2 3 4 5 6 7 8 1 chunk +48 lines, -30 lines 0 comments Download
M tools/telemetry/telemetry/inspector_page_unittest.py View 1 2 3 4 5 6 7 8 2 chunks +27 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/page_interaction.py View 1 2 3 4 5 6 7 8 1 chunk +37 lines, -0 lines 0 comments Download
A + tools/telemetry/unittest_data/page_with_link.html View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
marja
This is the interaction part of http://codereview.chromium.org/11273081/ nduca, tonyg: could you review this? Thanks!
8 years, 1 month ago (2012-11-05 14:46:43 UTC) #1
tonyg
lgtm, but Nat should approve https://codereview.chromium.org/11369075/diff/3001/tools/perf/page_sets/top_25_usage.json File tools/perf/page_sets/top_25_usage.json (right): https://codereview.chromium.org/11369075/diff/3001/tools/perf/page_sets/top_25_usage.json#newcode12 tools/perf/page_sets/top_25_usage.json:12: "interactions": [ What do ...
8 years, 1 month ago (2012-11-06 00:28:20 UTC) #2
nduca
I think this needs a few more iterations. http://codereview.chromium.org/11369075/diff/3001/tools/chrome_remote_control/chrome_remote_control/interaction.py File tools/chrome_remote_control/chrome_remote_control/interaction.py (right): http://codereview.chromium.org/11369075/diff/3001/tools/chrome_remote_control/chrome_remote_control/interaction.py#newcode4 tools/chrome_remote_control/chrome_remote_control/interaction.py:4: interaction ...
8 years, 1 month ago (2012-11-06 05:03:27 UTC) #3
nduca
Also, I was thinking about how the goal here is to have some pages support ...
8 years, 1 month ago (2012-11-06 05:17:22 UTC) #4
marja
Thanks for comments! I'm adding this work-in-progress patch set so that we can discuss it ...
8 years, 1 month ago (2012-11-06 16:01:20 UTC) #5
marja
(Simplification below) http://codereview.chromium.org/11369075/diff/3001/tools/perf/page_sets/top_25_usage.json File tools/perf/page_sets/top_25_usage.json (right): http://codereview.chromium.org/11369075/diff/3001/tools/perf/page_sets/top_25_usage.json#newcode12 tools/perf/page_sets/top_25_usage.json:12: "interactions": [ On 2012/11/06 16:01:21, marja wrote: ...
8 years, 1 month ago (2012-11-06 16:36:07 UTC) #6
marja
I refactored this based on discussions with nduca@. nduca: could you have another look? This ...
8 years, 1 month ago (2012-11-06 19:51:28 UTC) #7
nduca
http://codereview.chromium.org/11369075/diff/3002/tools/chrome_remote_control/chrome_remote_control/click_element.js File tools/chrome_remote_control/chrome_remote_control/click_element.js (right): http://codereview.chromium.org/11369075/diff/3002/tools/chrome_remote_control/chrome_remote_control/click_element.js#newcode3 tools/chrome_remote_control/chrome_remote_control/click_element.js:3: // found in the LICENSE file. how about click_element_interaction.js? ...
8 years, 1 month ago (2012-11-07 04:13:49 UTC) #8
marja
Thanks for comments, can you have a look at the simplified new version? http://codereview.chromium.org/11369075/diff/3002/tools/chrome_remote_control/chrome_remote_control/click_element.js File ...
8 years, 1 month ago (2012-11-07 10:52:27 UTC) #9
nduca
http://codereview.chromium.org/11369075/diff/15009/tools/chrome_remote_control/chrome_remote_control/click_to_navigate_interaction.py File tools/chrome_remote_control/chrome_remote_control/click_to_navigate_interaction.py (right): http://codereview.chromium.org/11369075/diff/15009/tools/chrome_remote_control/chrome_remote_control/click_to_navigate_interaction.py#newcode7 tools/chrome_remote_control/chrome_remote_control/click_to_navigate_interaction.py:7: def __init__(self, data): what is data here? Is it ...
8 years, 1 month ago (2012-11-07 18:55:57 UTC) #10
marja
Hi again and thanks for comments! In addition to the comments, I simplified the interactions ...
8 years, 1 month ago (2012-11-08 10:24:00 UTC) #11
nduca
lgtm with nit http://codereview.chromium.org/11369075/diff/11004/tools/perf/page_sets/top_25.json File tools/perf/page_sets/top_25.json (right): http://codereview.chromium.org/11369075/diff/11004/tools/perf/page_sets/top_25.json#newcode63 tools/perf/page_sets/top_25.json:63: "tests": { lets take out the ...
8 years, 1 month ago (2012-11-08 19:23:17 UTC) #12
marja
Thanks for review! I'll commit this now. http://codereview.chromium.org/11369075/diff/11004/tools/perf/page_sets/top_25.json File tools/perf/page_sets/top_25.json (right): http://codereview.chromium.org/11369075/diff/11004/tools/perf/page_sets/top_25.json#newcode63 tools/perf/page_sets/top_25.json:63: "tests": { ...
8 years, 1 month ago (2012-11-08 19:45:26 UTC) #13
marja
Note: run_tests for telemetry doesn't pass, but the same tests are failing before and after ...
8 years, 1 month ago (2012-11-08 19:53:17 UTC) #14
dtu
8 years, 1 month ago (2012-11-08 20:35:03 UTC) #15
I'll take a look at the run_tests failures. They're not related to this CL.

Powered by Google App Engine
This is Rietveld 408576698