| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 from telemetry.page import page as page_module | 4 from telemetry.page import page as page_module |
| 5 from telemetry import story | 5 from telemetry import story |
| 6 | 6 |
| 7 _PAGE_TAGS_LIST = [ | 7 _PAGE_TAGS_LIST = [ |
| 8 # Audio codecs: | 8 # Audio codecs: |
| 9 'pcm', | 9 'pcm', |
| 10 'mp3', | 10 'mp3', |
| 11 'aac', | 11 'aac', |
| 12 'vorbis', | 12 'vorbis', |
| 13 'opus', | 13 'opus', |
| 14 # Video codecs: | 14 # Video codecs: |
| 15 'h264', | 15 'h264', |
| 16 'vp8', | 16 'vp8', |
| 17 'vp9', | 17 'vp9', |
| 18 # Test types: | 18 # Test types: |
| 19 'audio_video', | 19 'audio_video', |
| 20 'audio_only', | 20 'audio_only', |
| 21 'video_only', | 21 'video_only', |
| 22 # Other filter tags: | 22 # Other filter tags: |
| 23 'is_50fps', | 23 'is_50fps', |
| 24 'is_4k', | 24 'is_4k', |
| 25 # Play action |
| 26 'seek', |
| 27 'normal_play', |
| 25 ] | 28 ] |
| 26 | 29 |
| 27 | 30 |
| 28 class ToughVideoCasesPage(page_module.Page): | 31 class ToughVideoCasesPage(page_module.Page): |
| 29 | 32 |
| 30 def __init__(self, url, page_set, tags): | 33 def __init__(self, url, page_set, tags): |
| 31 if tags: | 34 if tags: |
| 32 for t in tags: | 35 for t in tags: |
| 33 assert t in _PAGE_TAGS_LIST | 36 assert t in _PAGE_TAGS_LIST |
| 34 super(ToughVideoCasesPage, self).__init__( | 37 super(ToughVideoCasesPage, self).__init__( |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 def RunPageInteractions(self, action_runner): | 71 def RunPageInteractions(self, action_runner): |
| 69 self.PlayAction(action_runner) | 72 self.PlayAction(action_runner) |
| 70 | 73 |
| 71 | 74 |
| 72 class Page4(ToughVideoCasesPage): | 75 class Page4(ToughVideoCasesPage): |
| 73 | 76 |
| 74 def __init__(self, page_set): | 77 def __init__(self, page_set): |
| 75 super(Page4, self).__init__( | 78 super(Page4, self).__init__( |
| 76 url='file://tough_video_cases/video.html?src=crowd1080.webm', | 79 url='file://tough_video_cases/video.html?src=crowd1080.webm', |
| 77 page_set=page_set, | 80 page_set=page_set, |
| 78 tags=['is_50fps', 'vp8', 'vorbis', 'audio_video']) | 81 tags=['is_50fps', 'vp8', 'vorbis', 'audio_video', 'normal_play']) |
| 79 | 82 |
| 80 self.add_browser_metrics = True | 83 self.add_browser_metrics = True |
| 81 | 84 |
| 82 def RunPageInteractions(self, action_runner): | 85 def RunPageInteractions(self, action_runner): |
| 83 self.PlayAction(action_runner) | 86 self.PlayAction(action_runner) |
| 84 | 87 |
| 85 | 88 |
| 86 class Page7(ToughVideoCasesPage): | 89 class Page7(ToughVideoCasesPage): |
| 87 | 90 |
| 88 def __init__(self, page_set): | 91 def __init__(self, page_set): |
| 89 super(Page7, self).__init__( | 92 super(Page7, self).__init__( |
| 90 url='file://tough_video_cases/video.html?src=tulip2.ogg&type=audio', | 93 url='file://tough_video_cases/video.html?src=tulip2.ogg&type=audio', |
| 91 page_set=page_set, | 94 page_set=page_set, |
| 92 tags=['vorbis', 'audio_only']) | 95 tags=['vorbis', 'audio_only', 'normal_play']) |
| 93 | 96 |
| 94 self.add_browser_metrics = True | 97 self.add_browser_metrics = True |
| 95 | 98 |
| 96 def RunPageInteractions(self, action_runner): | 99 def RunPageInteractions(self, action_runner): |
| 97 self.PlayAction(action_runner) | 100 self.PlayAction(action_runner) |
| 98 | 101 |
| 99 | 102 |
| 100 class Page8(ToughVideoCasesPage): | 103 class Page8(ToughVideoCasesPage): |
| 101 | 104 |
| 102 def __init__(self, page_set): | 105 def __init__(self, page_set): |
| 103 super(Page8, self).__init__( | 106 super(Page8, self).__init__( |
| 104 url='file://tough_video_cases/video.html?src=tulip2.wav&type=audio', | 107 url='file://tough_video_cases/video.html?src=tulip2.wav&type=audio', |
| 105 page_set=page_set, | 108 page_set=page_set, |
| 106 tags=['pcm', 'audio_only']) | 109 tags=['pcm', 'audio_only', 'normal_play']) |
| 107 | 110 |
| 108 self.add_browser_metrics = True | 111 self.add_browser_metrics = True |
| 109 | 112 |
| 110 def RunPageInteractions(self, action_runner): | 113 def RunPageInteractions(self, action_runner): |
| 111 self.PlayAction(action_runner) | 114 self.PlayAction(action_runner) |
| 112 | 115 |
| 113 | 116 |
| 114 class Page11(ToughVideoCasesPage): | 117 class Page11(ToughVideoCasesPage): |
| 115 | 118 |
| 116 def __init__(self, page_set): | 119 def __init__(self, page_set): |
| 117 super(Page11, self).__init__( | 120 super(Page11, self).__init__( |
| 118 url='file://tough_video_cases/video.html?src=crowd1080.mp4', | 121 url='file://tough_video_cases/video.html?src=crowd1080.mp4', |
| 119 page_set=page_set, | 122 page_set=page_set, |
| 120 tags=['is_50fps', 'h264', 'aac', 'audio_video']) | 123 tags=['is_50fps', 'h264', 'aac', 'audio_video', 'normal_play']) |
| 121 | 124 |
| 122 self.add_browser_metrics = True | 125 self.add_browser_metrics = True |
| 123 | 126 |
| 124 def RunPageInteractions(self, action_runner): | 127 def RunPageInteractions(self, action_runner): |
| 125 self.PlayAction(action_runner) | 128 self.PlayAction(action_runner) |
| 126 | 129 |
| 127 | 130 |
| 128 class Page12(ToughVideoCasesPage): | 131 class Page12(ToughVideoCasesPage): |
| 129 | 132 |
| 130 def __init__(self, page_set): | 133 def __init__(self, page_set): |
| 131 super(Page12, self).__init__( | 134 super(Page12, self).__init__( |
| 132 url='file://tough_video_cases/video.html?src=crowd2160.mp4', | 135 url='file://tough_video_cases/video.html?src=crowd2160.mp4', |
| 133 page_set=page_set, | 136 page_set=page_set, |
| 134 tags=['is_4k', 'is_50fps', 'h264', 'aac', 'audio_video']) | 137 tags=['is_4k', 'is_50fps', 'h264', 'aac', 'audio_video', 'normal_play']) |
| 135 | 138 |
| 136 self.add_browser_metrics = True | 139 self.add_browser_metrics = True |
| 137 | 140 |
| 138 def RunPageInteractions(self, action_runner): | 141 def RunPageInteractions(self, action_runner): |
| 139 self.PlayAction(action_runner) | 142 self.PlayAction(action_runner) |
| 140 | 143 |
| 141 | 144 |
| 142 class Page13(ToughVideoCasesPage): | 145 class Page13(ToughVideoCasesPage): |
| 143 | 146 |
| 144 def __init__(self, page_set): | 147 def __init__(self, page_set): |
| 145 super(Page13, self).__init__( | 148 super(Page13, self).__init__( |
| 146 url='file://tough_video_cases/video.html?src=tulip2.mp3&type=audio', | 149 url='file://tough_video_cases/video.html?src=tulip2.mp3&type=audio', |
| 147 page_set=page_set, | 150 page_set=page_set, |
| 148 tags=['mp3', 'audio_only']) | 151 tags=['mp3', 'audio_only', 'normal_play']) |
| 149 | 152 |
| 150 self.add_browser_metrics = True | 153 self.add_browser_metrics = True |
| 151 | 154 |
| 152 def RunPageInteractions(self, action_runner): | 155 def RunPageInteractions(self, action_runner): |
| 153 self.PlayAction(action_runner) | 156 self.PlayAction(action_runner) |
| 154 | 157 |
| 155 | 158 |
| 156 class Page14(ToughVideoCasesPage): | 159 class Page14(ToughVideoCasesPage): |
| 157 | 160 |
| 158 def __init__(self, page_set): | 161 def __init__(self, page_set): |
| 159 super(Page14, self).__init__( | 162 super(Page14, self).__init__( |
| 160 url='file://tough_video_cases/video.html?src=tulip2.mp4', | 163 url='file://tough_video_cases/video.html?src=tulip2.mp4', |
| 161 page_set=page_set, | 164 page_set=page_set, |
| 162 tags=['h264', 'aac', 'audio_video']) | 165 tags=['h264', 'aac', 'audio_video', 'normal_play']) |
| 163 | 166 |
| 164 self.add_browser_metrics = True | 167 self.add_browser_metrics = True |
| 165 | 168 |
| 166 def RunPageInteractions(self, action_runner): | 169 def RunPageInteractions(self, action_runner): |
| 167 self.PlayAction(action_runner) | 170 self.PlayAction(action_runner) |
| 168 | 171 |
| 169 | 172 |
| 170 class Page15(ToughVideoCasesPage): | 173 class Page15(ToughVideoCasesPage): |
| 171 | 174 |
| 172 def __init__(self, page_set): | 175 def __init__(self, page_set): |
| 173 super(Page15, self).__init__( | 176 super(Page15, self).__init__( |
| 174 url='file://tough_video_cases/video.html?src=tulip2.m4a&type=audio', | 177 url='file://tough_video_cases/video.html?src=tulip2.m4a&type=audio', |
| 175 page_set=page_set, | 178 page_set=page_set, |
| 176 tags=['aac', 'audio_only']) | 179 tags=['aac', 'audio_only', 'normal_play']) |
| 177 | 180 |
| 178 self.add_browser_metrics = True | 181 self.add_browser_metrics = True |
| 179 | 182 |
| 180 def RunPageInteractions(self, action_runner): | 183 def RunPageInteractions(self, action_runner): |
| 181 self.PlayAction(action_runner) | 184 self.PlayAction(action_runner) |
| 182 | 185 |
| 183 | 186 |
| 184 class Page16(ToughVideoCasesPage): | 187 class Page16(ToughVideoCasesPage): |
| 185 | 188 |
| 186 def __init__(self, page_set): | 189 def __init__(self, page_set): |
| 187 super(Page16, self).__init__( | 190 super(Page16, self).__init__( |
| 188 url='file://tough_video_cases/video.html?src=garden2_10s.webm', | 191 url='file://tough_video_cases/video.html?src=garden2_10s.webm', |
| 189 page_set=page_set, | 192 page_set=page_set, |
| 190 tags=['is_4k', 'vp8', 'vorbis', 'audio_video']) | 193 tags=['is_4k', 'vp8', 'vorbis', 'audio_video', 'normal_play']) |
| 191 | 194 |
| 192 self.add_browser_metrics = True | 195 self.add_browser_metrics = True |
| 193 | 196 |
| 194 def RunPageInteractions(self, action_runner): | 197 def RunPageInteractions(self, action_runner): |
| 195 self.PlayAction(action_runner) | 198 self.PlayAction(action_runner) |
| 196 | 199 |
| 197 | 200 |
| 198 class Page17(ToughVideoCasesPage): | 201 class Page17(ToughVideoCasesPage): |
| 199 | 202 |
| 200 def __init__(self, page_set): | 203 def __init__(self, page_set): |
| 201 super(Page17, self).__init__( | 204 super(Page17, self).__init__( |
| 202 url='file://tough_video_cases/video.html?src=garden2_10s.mp4', | 205 url='file://tough_video_cases/video.html?src=garden2_10s.mp4', |
| 203 page_set=page_set, | 206 page_set=page_set, |
| 204 tags=['is_4k', 'h264', 'aac', 'audio_video']) | 207 tags=['is_4k', 'h264', 'aac', 'audio_video', 'normal_play']) |
| 205 | 208 |
| 206 self.add_browser_metrics = True | 209 self.add_browser_metrics = True |
| 207 | 210 |
| 208 def RunPageInteractions(self, action_runner): | 211 def RunPageInteractions(self, action_runner): |
| 209 self.PlayAction(action_runner) | 212 self.PlayAction(action_runner) |
| 210 | 213 |
| 211 | 214 |
| 212 class Page19(ToughVideoCasesPage): | 215 class Page19(ToughVideoCasesPage): |
| 213 | 216 |
| 214 def __init__(self, page_set): | 217 def __init__(self, page_set): |
| 215 super(Page19, self).__init__( | 218 super(Page19, self).__init__( |
| 216 url='file://tough_video_cases/video.html?src=tulip2.ogg&type=audio', | 219 url='file://tough_video_cases/video.html?src=tulip2.ogg&type=audio&seek', |
| 217 page_set=page_set, | 220 page_set=page_set, |
| 218 tags=['vorbis', 'audio_only']) | 221 tags=['vorbis', 'audio_only', 'seek']) |
| 219 | 222 |
| 220 self.skip_basic_metrics = True | 223 self.skip_basic_metrics = True |
| 221 | 224 |
| 222 def RunPageInteractions(self, action_runner): | 225 def RunPageInteractions(self, action_runner): |
| 223 self.SeekBeforeAndAfterPlayhead(action_runner) | 226 self.SeekBeforeAndAfterPlayhead(action_runner) |
| 224 | 227 |
| 225 | 228 |
| 226 class Page20(ToughVideoCasesPage): | 229 class Page20(ToughVideoCasesPage): |
| 227 | 230 |
| 228 def __init__(self, page_set): | 231 def __init__(self, page_set): |
| 229 super(Page20, self).__init__( | 232 super(Page20, self).__init__( |
| 230 url='file://tough_video_cases/video.html?src=tulip2.wav&type=audio', | 233 url='file://tough_video_cases/video.html?src=tulip2.wav&type=audio&seek', |
| 231 page_set=page_set, | 234 page_set=page_set, |
| 232 tags=['pcm', 'audio_only']) | 235 tags=['pcm', 'audio_only', 'seek']) |
| 233 | 236 |
| 234 self.skip_basic_metrics = True | 237 self.skip_basic_metrics = True |
| 235 | 238 |
| 236 def RunPageInteractions(self, action_runner): | 239 def RunPageInteractions(self, action_runner): |
| 237 self.SeekBeforeAndAfterPlayhead(action_runner) | 240 self.SeekBeforeAndAfterPlayhead(action_runner) |
| 238 | 241 |
| 239 | 242 |
| 240 class Page23(ToughVideoCasesPage): | 243 class Page23(ToughVideoCasesPage): |
| 241 | 244 |
| 242 def __init__(self, page_set): | 245 def __init__(self, page_set): |
| 243 super(Page23, self).__init__( | 246 super(Page23, self).__init__( |
| 244 url='file://tough_video_cases/video.html?src=tulip2.mp3&type=audio', | 247 url='file://tough_video_cases/video.html?src=tulip2.mp3&type=audio&seek', |
| 245 page_set=page_set, | 248 page_set=page_set, |
| 246 tags=['mp3', 'audio_only']) | 249 tags=['mp3', 'audio_only', 'seek']) |
| 247 | 250 |
| 248 self.skip_basic_metrics = True | 251 self.skip_basic_metrics = True |
| 249 | 252 |
| 250 def RunPageInteractions(self, action_runner): | 253 def RunPageInteractions(self, action_runner): |
| 251 self.SeekBeforeAndAfterPlayhead(action_runner) | 254 self.SeekBeforeAndAfterPlayhead(action_runner) |
| 252 | 255 |
| 253 | 256 |
| 254 class Page24(ToughVideoCasesPage): | 257 class Page24(ToughVideoCasesPage): |
| 255 | 258 |
| 256 def __init__(self, page_set): | 259 def __init__(self, page_set): |
| 257 super(Page24, self).__init__( | 260 super(Page24, self).__init__( |
| 258 url='file://tough_video_cases/video.html?src=tulip2.mp4', | 261 url='file://tough_video_cases/video.html?src=tulip2.mp4&seek', |
| 259 page_set=page_set, | 262 page_set=page_set, |
| 260 tags=['h264', 'aac', 'audio_video']) | 263 tags=['h264', 'aac', 'audio_video', 'seek']) |
| 261 | 264 |
| 262 self.skip_basic_metrics = True | 265 self.skip_basic_metrics = True |
| 263 | 266 |
| 264 def RunPageInteractions(self, action_runner): | 267 def RunPageInteractions(self, action_runner): |
| 265 self.SeekBeforeAndAfterPlayhead(action_runner) | 268 self.SeekBeforeAndAfterPlayhead(action_runner) |
| 266 | 269 |
| 267 | 270 |
| 268 class Page25(ToughVideoCasesPage): | 271 class Page25(ToughVideoCasesPage): |
| 269 | 272 |
| 270 def __init__(self, page_set): | 273 def __init__(self, page_set): |
| 271 super(Page25, self).__init__( | 274 super(Page25, self).__init__( |
| 272 url='file://tough_video_cases/video.html?src=garden2_10s.webm', | 275 url='file://tough_video_cases/video.html?src=garden2_10s.webm&seek', |
| 273 page_set=page_set, | 276 page_set=page_set, |
| 274 tags=['is_4k', 'vp8', 'vorbis', 'audio_video']) | 277 tags=['is_4k', 'vp8', 'vorbis', 'audio_video', 'seek']) |
| 275 | 278 |
| 276 self.skip_basic_metrics = True | 279 self.skip_basic_metrics = True |
| 277 | 280 |
| 278 def RunPageInteractions(self, action_runner): | 281 def RunPageInteractions(self, action_runner): |
| 279 self.SeekBeforeAndAfterPlayhead(action_runner) | 282 self.SeekBeforeAndAfterPlayhead(action_runner) |
| 280 | 283 |
| 281 | 284 |
| 282 class Page26(ToughVideoCasesPage): | 285 class Page26(ToughVideoCasesPage): |
| 283 | 286 |
| 284 def __init__(self, page_set): | 287 def __init__(self, page_set): |
| 285 super(Page26, self).__init__( | 288 super(Page26, self).__init__( |
| 286 url='file://tough_video_cases/video.html?src=garden2_10s.mp4', | 289 url='file://tough_video_cases/video.html?src=garden2_10s.mp4&seek', |
| 287 page_set=page_set, | 290 page_set=page_set, |
| 288 tags=['is_4k', 'h264', 'aac', 'audio_video']) | 291 tags=['is_4k', 'h264', 'aac', 'audio_video', 'seek']) |
| 289 | 292 |
| 290 self.skip_basic_metrics = True | 293 self.skip_basic_metrics = True |
| 291 | 294 |
| 292 def RunPageInteractions(self, action_runner): | 295 def RunPageInteractions(self, action_runner): |
| 293 self.SeekBeforeAndAfterPlayhead(action_runner) | 296 self.SeekBeforeAndAfterPlayhead(action_runner) |
| 294 | 297 |
| 295 | 298 |
| 296 class Page30(ToughVideoCasesPage): | 299 class Page30(ToughVideoCasesPage): |
| 297 | 300 |
| 298 def __init__(self, page_set): | 301 def __init__(self, page_set): |
| 299 super(Page30, self).__init__( | 302 super(Page30, self).__init__( |
| 300 url='file://tough_video_cases/video.html?src=tulip2.vp9.webm', | 303 url='file://tough_video_cases/video.html?src=tulip2.vp9.webm', |
| 301 page_set=page_set, | 304 page_set=page_set, |
| 302 tags=['vp9', 'opus', 'audio_video']) | 305 tags=['vp9', 'opus', 'audio_video', 'normal_play']) |
| 303 | 306 |
| 304 self.add_browser_metrics = True | 307 self.add_browser_metrics = True |
| 305 | 308 |
| 306 def RunPageInteractions(self, action_runner): | 309 def RunPageInteractions(self, action_runner): |
| 307 self.PlayAction(action_runner) | 310 self.PlayAction(action_runner) |
| 308 | 311 |
| 312 |
| 309 class Page31(ToughVideoCasesPage): | 313 class Page31(ToughVideoCasesPage): |
| 310 | 314 |
| 311 def __init__(self, page_set): | 315 def __init__(self, page_set): |
| 312 super(Page31, self).__init__( | 316 super(Page31, self).__init__( |
| 313 url='file://tough_video_cases/video.html?src=tulip2.vp9.webm', | 317 url='file://tough_video_cases/video.html?src=tulip2.vp9.webm&seek', |
| 314 page_set=page_set, | 318 page_set=page_set, |
| 315 tags=['vp9', 'opus', 'audio_video']) | 319 tags=['vp9', 'opus', 'audio_video', 'seek']) |
| 316 | 320 |
| 317 self.skip_basic_metrics = True | 321 self.skip_basic_metrics = True |
| 318 | 322 |
| 319 def RunPageInteractions(self, action_runner): | 323 def RunPageInteractions(self, action_runner): |
| 320 self.SeekBeforeAndAfterPlayhead(action_runner) | 324 self.SeekBeforeAndAfterPlayhead(action_runner) |
| 321 | 325 |
| 326 |
| 322 class Page32(ToughVideoCasesPage): | 327 class Page32(ToughVideoCasesPage): |
| 323 | 328 |
| 324 def __init__(self, page_set): | 329 def __init__(self, page_set): |
| 325 super(Page32, self).__init__( | 330 super(Page32, self).__init__( |
| 326 url='file://tough_video_cases/video.html?src=crowd1080_vp9.webm', | 331 url='file://tough_video_cases/video.html?src=crowd1080_vp9.webm', |
| 327 page_set=page_set, | 332 page_set=page_set, |
| 328 tags=['vp9', 'video_only']) | 333 tags=['vp9', 'video_only', 'normal_play']) |
| 329 | 334 |
| 330 self.add_browser_metrics = True | 335 self.add_browser_metrics = True |
| 331 | 336 |
| 332 def RunPageInteractions(self, action_runner): | 337 def RunPageInteractions(self, action_runner): |
| 333 self.PlayAction(action_runner) | 338 self.PlayAction(action_runner) |
| 334 | 339 |
| 340 |
| 335 class Page33(ToughVideoCasesPage): | 341 class Page33(ToughVideoCasesPage): |
| 336 | 342 |
| 337 def __init__(self, page_set): | 343 def __init__(self, page_set): |
| 338 super(Page33, self).__init__( | 344 super(Page33, self).__init__( |
| 339 url='file://tough_video_cases/video.html?src=crowd1080_vp9.webm', | 345 url='file://tough_video_cases/video.html?src=crowd1080_vp9.webm&seek', |
| 340 page_set=page_set, | 346 page_set=page_set, |
| 341 tags=['vp9', 'video_only']) | 347 tags=['vp9', 'video_only', 'seek']) |
| 342 | 348 |
| 343 self.skip_basic_metrics = True | 349 self.skip_basic_metrics = True |
| 344 | 350 |
| 345 def RunPageInteractions(self, action_runner): | 351 def RunPageInteractions(self, action_runner): |
| 346 self.SeekBeforeAndAfterPlayhead(action_runner) | 352 self.SeekBeforeAndAfterPlayhead(action_runner) |
| 347 | 353 |
| 354 |
| 348 class Page34(ToughVideoCasesPage): | 355 class Page34(ToughVideoCasesPage): |
| 349 | 356 |
| 350 def __init__(self, page_set): | 357 def __init__(self, page_set): |
| 351 super(Page34, self).__init__( | 358 super(Page34, self).__init__( |
| 352 url='file://tough_video_cases/video.html?src=crowd720_vp9.webm', | 359 url='file://tough_video_cases/video.html?src=crowd720_vp9.webm', |
| 353 page_set=page_set, | 360 page_set=page_set, |
| 354 tags=['vp9', 'video_only']) | 361 tags=['vp9', 'video_only', 'normal_play']) |
| 355 | 362 |
| 356 self.add_browser_metrics = True | 363 self.add_browser_metrics = True |
| 357 | 364 |
| 358 def RunPageInteractions(self, action_runner): | 365 def RunPageInteractions(self, action_runner): |
| 359 self.PlayAction(action_runner) | 366 self.PlayAction(action_runner) |
| 360 | 367 |
| 368 |
| 361 class Page35(ToughVideoCasesPage): | 369 class Page35(ToughVideoCasesPage): |
| 362 | 370 |
| 363 def __init__(self, page_set): | 371 def __init__(self, page_set): |
| 364 super(Page35, self).__init__( | 372 super(Page35, self).__init__( |
| 365 url='file://tough_video_cases/video.html?src=crowd720_vp9.webm', | 373 url='file://tough_video_cases/video.html?src=crowd720_vp9.webm&seek', |
| 366 page_set=page_set, | 374 page_set=page_set, |
| 367 tags=['vp9', 'video_only']) | 375 tags=['vp9', 'video_only', 'seek']) |
| 368 | 376 |
| 369 self.skip_basic_metrics = True | 377 self.skip_basic_metrics = True |
| 370 | 378 |
| 371 def RunPageInteractions(self, action_runner): | 379 def RunPageInteractions(self, action_runner): |
| 372 self.SeekBeforeAndAfterPlayhead(action_runner) | 380 self.SeekBeforeAndAfterPlayhead(action_runner) |
| 373 | 381 |
| 382 |
| 374 class Page36(ToughVideoCasesPage): | 383 class Page36(ToughVideoCasesPage): |
| 375 | 384 |
| 376 def __init__(self, page_set): | 385 def __init__(self, page_set): |
| 377 super(Page36, self).__init__( | 386 super(Page36, self).__init__( |
| 378 url=('file://tough_video_cases/video.html?src=' | 387 url=('file://tough_video_cases/video.html?src=' |
| 379 'smpte_3840x2160_60fps_vp9.webm'), | 388 'smpte_3840x2160_60fps_vp9.webm&seek'), |
| 380 page_set=page_set, | 389 page_set=page_set, |
| 381 tags=['is_4k', 'vp9', 'video_only']) | 390 tags=['is_4k', 'vp9', 'video_only', 'seek']) |
| 382 | 391 |
| 383 self.add_browser_metrics = True | 392 self.add_browser_metrics = True |
| 384 | 393 |
| 385 def RunPageInteractions(self, action_runner): | 394 def RunPageInteractions(self, action_runner): |
| 386 self.SeekBeforeAndAfterPlayhead(action_runner, | 395 self.SeekBeforeAndAfterPlayhead(action_runner, |
| 387 action_timeout_in_seconds=120) | 396 action_timeout_in_seconds=120) |
| 388 | 397 |
| 389 | 398 |
| 390 class ToughVideoCasesPageSet(story.StorySet): | 399 class ToughVideoCasesPageSet(story.StorySet): |
| 391 """ | 400 """ |
| 392 Description: Video Stack Perf pages that report time_to_play and many other | 401 Description: Video Stack Perf pages that report time_to_play, seek time and |
| 393 media-specific and generic metrics. | 402 many other media-specific and generic metrics. |
| 394 """ | 403 """ |
| 395 def __init__(self): | 404 def __init__(self): |
| 396 super(ToughVideoCasesPageSet, self).__init__( | 405 super(ToughVideoCasesPageSet, self).__init__( |
| 397 cloud_storage_bucket=story.PARTNER_BUCKET) | 406 cloud_storage_bucket=story.PARTNER_BUCKET) |
| 398 # TODO(crouleau): Page 36 is in ToughVideoCasesPageSet even though | |
| 399 # it both reports seek time instead of time_to_play. | |
| 400 # This may be a non-issue because we plan to merge these two page sets back | |
| 401 # together and use tags to allow teams to filter which pages they want. | |
| 402 | 407 |
| 408 # Normal play tests: |
| 403 self.AddStory(Page2(self)) | 409 self.AddStory(Page2(self)) |
| 404 self.AddStory(Page4(self)) | 410 self.AddStory(Page4(self)) |
| 405 self.AddStory(Page7(self)) | 411 self.AddStory(Page7(self)) |
| 406 self.AddStory(Page8(self)) | 412 self.AddStory(Page8(self)) |
| 407 self.AddStory(Page11(self)) | 413 self.AddStory(Page11(self)) |
| 408 self.AddStory(Page12(self)) | 414 self.AddStory(Page12(self)) |
| 409 self.AddStory(Page13(self)) | 415 self.AddStory(Page13(self)) |
| 410 self.AddStory(Page14(self)) | 416 self.AddStory(Page14(self)) |
| 411 self.AddStory(Page15(self)) | 417 self.AddStory(Page15(self)) |
| 412 self.AddStory(Page16(self)) | 418 self.AddStory(Page16(self)) |
| 413 self.AddStory(Page17(self)) | 419 self.AddStory(Page17(self)) |
| 414 self.AddStory(Page30(self)) | 420 self.AddStory(Page30(self)) |
| 415 self.AddStory(Page32(self)) | 421 self.AddStory(Page32(self)) |
| 416 self.AddStory(Page34(self)) | 422 self.AddStory(Page34(self)) |
| 417 self.AddStory(Page36(self)) | |
| 418 | 423 |
| 419 | 424 # Seek tests: |
| 420 class ToughVideoCasesExtraPageSet(story.StorySet): | |
| 421 """ | |
| 422 Description: Video Stack Perf pages that only report seek time. | |
| 423 """ | |
| 424 def __init__(self): | |
| 425 super(ToughVideoCasesExtraPageSet, self).__init__( | |
| 426 cloud_storage_bucket=story.PARTNER_BUCKET) | |
| 427 | |
| 428 self.AddStory(Page19(self)) | 425 self.AddStory(Page19(self)) |
| 429 self.AddStory(Page20(self)) | 426 self.AddStory(Page20(self)) |
| 430 self.AddStory(Page23(self)) | 427 self.AddStory(Page23(self)) |
| 431 self.AddStory(Page24(self)) | 428 self.AddStory(Page24(self)) |
| 432 self.AddStory(Page25(self)) | 429 self.AddStory(Page25(self)) |
| 433 self.AddStory(Page26(self)) | 430 self.AddStory(Page26(self)) |
| 434 self.AddStory(Page31(self)) | 431 self.AddStory(Page31(self)) |
| 435 self.AddStory(Page33(self)) | 432 self.AddStory(Page33(self)) |
| 436 self.AddStory(Page35(self)) | 433 self.AddStory(Page35(self)) |
| 434 self.AddStory(Page36(self)) |
| OLD | NEW |