Chromium Code Reviews| Index: tools/perf/page_sets/webrtc_cases.py |
| diff --git a/tools/perf/page_sets/webrtc_cases.py b/tools/perf/page_sets/webrtc_cases.py |
| index f157d576047d6c108272aa1caf33868fa586720d..459c1288c29bc94953a55250e6df958be52c87da 100644 |
| --- a/tools/perf/page_sets/webrtc_cases.py |
| +++ b/tools/perf/page_sets/webrtc_cases.py |
| @@ -7,6 +7,7 @@ from telemetry import story |
| from telemetry.page import page as page_module |
| +WEBRTC_TEST_PAGES_URL = 'https://test.webrtc.org/manual/' |
| WEBRTC_GITHUB_SAMPLES_URL = 'https://webrtc.github.io/samples/src/content/' |
| MEDIARECORDER_GITHUB_URL = 'https://rawgit.com/cricdecyan/mediarecorder/master/' |
| @@ -153,6 +154,24 @@ class Page8(WebrtcPage): |
| action_runner.Wait(10) |
| +class Page9(WebrtcPage): |
| + """Why: Sets up several peerconnections in the same page.""" |
| + |
| + def __init__(self, page_set): |
| + super(Page9, self).__init__( |
| + url= WEBRTC_TEST_PAGES_URL + 'multiple-peerconnections/', |
|
sullivan
2016/11/01 12:39:23
Has this already been added to cloud storage?
ehmaldonado_chromium
2016/11/01 13:27:26
It has now.
Thanks :)
|
| + name='multiple_peerconnections', |
| + page_set=page_set) |
| + |
| + def RunPageInteractions(self, action_runner): |
| + with action_runner.CreateInteraction('Action_Create_PeerConnection', |
| + repeatable=False): |
| + action_runner.ExecuteJavaScript( |
| + 'document.getElementById("peer-connections-input").value=15') |
|
ehmaldonado_chromium
2016/10/31 16:29:19
I couldn't figure out how to set the slider or the
sullivan
2016/11/01 12:39:23
Should there be a comment in the code explaining a
ehmaldonado_chromium
2016/11/01 13:27:26
Done. This is supposed to set the number of peer c
|
| + action_runner.ClickElement('button[id="start-test-button"]') |
| + action_runner.Wait(45) |
| + |
| + |
| class WebrtcGetusermediaPageSet(story.StorySet): |
| """WebRTC tests for local getUserMedia: video capture and playback.""" |
| @@ -164,6 +183,17 @@ class WebrtcGetusermediaPageSet(story.StorySet): |
| self.AddStory(Page1(self)) |
| +class WebrtcStresstestPageSet(story.StorySet): |
| + """WebRTC stress-testing with multiple peer connections.""" |
| + |
| + def __init__(self): |
| + super(WebrtcStresstestPageSet, self).__init__( |
| + archive_data_file='data/webrtc_stresstest_cases.json', |
| + cloud_storage_bucket=story.PUBLIC_BUCKET) |
| + |
| + self.AddStory(Page9(self)) |
| + |
| + |
| class WebrtcPeerconnectionPageSet(story.StorySet): |
| """WebRTC tests for Real-time video and audio communication.""" |