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

Issue 10736055: Smoke test for tracing infrastructure in PyAuto (Closed)

Created:
8 years, 5 months ago by Russ Harmon
Modified:
8 years, 4 months ago
Reviewers:
nduca, Nirnimesh
CC:
Sonny, chromium-reviews
Visibility:
Public.

Description

Introduce an API and associated smoke test for writing PyAuto tests which collect and analyze trace events. BUG=137356 TEST=manually Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149345

Patch Set 1 #

Total comments: 15

Patch Set 2 : Example pyauto test for getting trace events. #

Patch Set 3 : Example pyauto test for getting trace events. #

Patch Set 4 : Example pyauto test for getting trace events. #

Patch Set 5 : Smoke test for tracing infrastructure in PyAuto #

Patch Set 6 : Smoke test for tracing infrastructure in PyAuto #

Total comments: 24

Patch Set 7 : Introduce a decorator around the TraceModel which has all the support code. #

Patch Set 8 : Use argument slices rather than explicit argument lists where appropriate. #

Patch Set 9 : Use argument slices rather than explicit argument lists where appropriate. #

Total comments: 13

Patch Set 10 : Enable multiple traces per test. #

Patch Set 11 : Rename the last few variables from decorator to shim. #

Patch Set 12 : Remove changes to pyauto.py which I didn't mean to put here. #

Patch Set 13 : Minor cleanup #

Patch Set 14 : Fix a bug preventing you from using one tracer to perform multiple traces. #

Patch Set 15 : Minor cleanup. #

Patch Set 16 : Clean up js TimelineModel when the python TimelineModelProxy is deleted. #

Total comments: 6

Patch Set 17 : Fix up style issues. Add suite to PYAUTO_TESTS #

Total comments: 15

Patch Set 18 : Add more docstrings, fixup more style issues. #

Patch Set 19 : Add more docstrings. #

Total comments: 32

Patch Set 20 : Fix more style issues. #

Patch Set 21 : More style fixes. #

Patch Set 22 : Add an explicit test for the validity of a TimelineModel after it's producing Tracer is deleted. #

Patch Set 23 : Remove unused unittest import. #

Total comments: 6

Patch Set 24 : Fix more stylistic issues. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+399 lines, -0 lines) Patch
M chrome/test/functional/PYAUTO_TESTS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/test/functional/tracing/pyauto_tracing.py View 1 2 3 1 chunk +22 lines, -0 lines 0 comments Download
A chrome/test/functional/tracing/tab_tracker.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +83 lines, -0 lines 0 comments Download
A chrome/test/functional/tracing/timeline_model.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +57 lines, -0 lines 0 comments Download
A chrome/test/functional/tracing/timeline_model_shim.js View 1 2 3 4 5 6 7 8 9 1 chunk +53 lines, -0 lines 0 comments Download
A chrome/test/functional/tracing/tracer.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +34 lines, -0 lines 0 comments Download
A chrome/test/functional/tracing/tracer.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +86 lines, -0 lines 0 comments Download
A chrome/test/functional/tracing/tracing_smoke_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +57 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
Russ Harmon
Please disregard. This is a work in progress.
8 years, 5 months ago (2012-07-12 21:33:27 UTC) #1
nduca
a http://codereview.chromium.org/10736055/diff/1/chrome/test/functional/tracing.py File chrome/test/functional/tracing.py (right): http://codereview.chromium.org/10736055/diff/1/chrome/test/functional/tracing.py#newcode14 chrome/test/functional/tracing.py:14: class TimelineModel: TimelineModelProxy http://codereview.chromium.org/10736055/diff/1/chrome/test/functional/tracing.py#newcode15 chrome/test/functional/tracing.py:15: def __init__(self, test): ...
8 years, 5 months ago (2012-07-13 09:47:56 UTC) #2
nduca
http://codereview.chromium.org/10736055/diff/1/chrome/test/functional/tracing.py File chrome/test/functional/tracing.py (right): http://codereview.chromium.org/10736055/diff/1/chrome/test/functional/tracing.py#newcode9 chrome/test/functional/tracing.py:9: import pyauto Lets split this into timeline_model.pyand tracing_smoke_test.py Tracing ...
8 years, 5 months ago (2012-07-13 17:36:08 UTC) #3
Russ Harmon
http://codereview.chromium.org/10736055/diff/1/chrome/test/functional/tracing.py File chrome/test/functional/tracing.py (right): http://codereview.chromium.org/10736055/diff/1/chrome/test/functional/tracing.py#newcode50 chrome/test/functional/tracing.py:50: self.NavigateToURL('chrome://tracing', self.trace_win) On 2012/07/13 09:47:56, nduca wrote: > do ...
8 years, 5 months ago (2012-07-13 23:24:24 UTC) #4
Russ Harmon
So this should be ready for review, but it won't work without Nat's changes here ...
8 years, 5 months ago (2012-07-14 11:58:45 UTC) #5
nduca
http://codereview.chromium.org/10736055/diff/13001/chrome/test/functional/tracing/pyauto_tracing.py File chrome/test/functional/tracing/pyauto_tracing.py (right): http://codereview.chromium.org/10736055/diff/13001/chrome/test/functional/tracing/pyauto_tracing.py#newcode19 chrome/test/functional/tracing/pyauto_tracing.py:19: I'm confused what this file does? If you look ...
8 years, 5 months ago (2012-07-18 05:51:35 UTC) #6
nduca
http://codereview.chromium.org/10736055/diff/19013/chrome/test/functional/tracing/timeline_model.py File chrome/test/functional/tracing/timeline_model.py (right): http://codereview.chromium.org/10736055/diff/19013/chrome/test/functional/tracing/timeline_model.py#newcode13 chrome/test/functional/tracing/timeline_model.py:13: def __init__(self, js_executor, uuid): uuid -> something more obvious. ...
8 years, 5 months ago (2012-07-20 07:13:13 UTC) #7
Russ Harmon
craigdh@ gave permission for the changes to pyauto.py
8 years, 5 months ago (2012-07-26 00:24:04 UTC) #8
Russ Harmon
On 2012/07/26 00:24:04, Russ Harmon wrote: > craigdh@ gave permission for the changes to pyauto.py ...
8 years, 5 months ago (2012-07-26 00:40:34 UTC) #9
nduca
LGTM. This is nice work.
8 years, 5 months ago (2012-07-26 00:48:48 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eatnumber@chromium.org/10736055/39001
8 years, 4 months ago (2012-07-27 16:53:37 UTC) #11
commit-bot: I haz the power
Presubmit check for 10736055-39001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 4 months ago (2012-07-27 16:53:45 UTC) #12
Nirnimesh
1. There are many python style issues with this CL. Please follow the python-specific notes ...
8 years, 4 months ago (2012-07-30 18:57:19 UTC) #13
Nirnimesh
https://chromiumcodereview.appspot.com/10736055/diff/39001/chrome/test/functional/tracing/tab_tracker.py File chrome/test/functional/tracing/tab_tracker.py (right): https://chromiumcodereview.appspot.com/10736055/diff/39001/chrome/test/functional/tracing/tab_tracker.py#newcode11 chrome/test/functional/tracing/tab_tracker.py:11: def __init__(self, browser, visible = False): On 2012/07/30 18:57:19, ...
8 years, 4 months ago (2012-07-30 18:58:03 UTC) #14
Russ Harmon
Ok, I think I've fixed all the style issues, added appropriate docstrings, and added a ...
8 years, 4 months ago (2012-07-30 20:46:37 UTC) #15
Nirnimesh
More style issues remaining. I'm pointing each one out only once, but please apply throughout. ...
8 years, 4 months ago (2012-07-30 21:03:51 UTC) #16
Russ Harmon
Ok. Nirnimesh, want to have a look again? https://chromiumcodereview.appspot.com/10736055/diff/31011/chrome/test/functional/tracing/timeline_model.py File chrome/test/functional/tracing/timeline_model.py (right): https://chromiumcodereview.appspot.com/10736055/diff/31011/chrome/test/functional/tracing/timeline_model.py#newcode58 chrome/test/functional/tracing/timeline_model.py:58: TimelineModel ...
8 years, 4 months ago (2012-07-31 01:11:16 UTC) #17
Nirnimesh
There still are several style issues remaining in this CL. Please fix them all. I'm ...
8 years, 4 months ago (2012-07-31 20:05:57 UTC) #18
Russ Harmon
https://chromiumcodereview.appspot.com/10736055/diff/31011/chrome/test/functional/tracing/timeline_model.py File chrome/test/functional/tracing/timeline_model.py (right): https://chromiumcodereview.appspot.com/10736055/diff/31011/chrome/test/functional/tracing/timeline_model.py#newcode58 chrome/test/functional/tracing/timeline_model.py:58: TimelineModel = TimelineModelProxy On 2012/07/31 20:05:57, Nirnimesh wrote: > ...
8 years, 4 months ago (2012-07-31 20:54:18 UTC) #19
Nirnimesh
Please respond to my comment regarding tab indices. https://chromiumcodereview.appspot.com/10736055/diff/31011/chrome/test/functional/tracing/timeline_model.py File chrome/test/functional/tracing/timeline_model.py (right): https://chromiumcodereview.appspot.com/10736055/diff/31011/chrome/test/functional/tracing/timeline_model.py#newcode58 chrome/test/functional/tracing/timeline_model.py:58: TimelineModel ...
8 years, 4 months ago (2012-07-31 21:15:05 UTC) #20
Russ Harmon
On 2012/07/31 20:05:57, Nirnimesh wrote: > There still are several style issues remaining in this ...
8 years, 4 months ago (2012-07-31 22:24:36 UTC) #21
Russ Harmon
https://chromiumcodereview.appspot.com/10736055/diff/26021/chrome/test/functional/tracing/tracing_smoke_test.py File chrome/test/functional/tracing/tracing_smoke_test.py (right): https://chromiumcodereview.appspot.com/10736055/diff/26021/chrome/test/functional/tracing/tracing_smoke_test.py#newcode33 chrome/test/functional/tracing/tracing_smoke_test.py:33: del tracer On 2012/07/31 20:54:18, Russ Harmon wrote: > ...
8 years, 4 months ago (2012-07-31 22:24:54 UTC) #22
Nirnimesh
A few more minor comments. Then LGTM. https://chromiumcodereview.appspot.com/10736055/diff/39018/chrome/test/functional/tracing/tab_tracker.py File chrome/test/functional/tracing/tab_tracker.py (right): https://chromiumcodereview.appspot.com/10736055/diff/39018/chrome/test/functional/tracing/tab_tracker.py#newcode19 chrome/test/functional/tracing/tab_tracker.py:19: TabTracker is ...
8 years, 4 months ago (2012-07-31 23:39:10 UTC) #23
Russ Harmon
On 2012/07/31 23:39:10, Nirnimesh wrote: > A few more minor comments. Then LGTM. > > ...
8 years, 4 months ago (2012-07-31 23:50:45 UTC) #24
Nirnimesh
My previous LGTM holds.
8 years, 4 months ago (2012-07-31 23:52:04 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eatnumber@chromium.org/10736055/28015
8 years, 4 months ago (2012-07-31 23:53:02 UTC) #26
commit-bot: I haz the power
8 years, 4 months ago (2012-08-01 01:16:31 UTC) #27
Change committed as 149345

Powered by Google App Engine
This is Rietveld 408576698