OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 | 2 |
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 | 7 |
8 class MediaTestEnvNames: | 8 class MediaTestEnvNames: |
9 """Class that contains all environment names used in media tests. | 9 """Class that contains all environment names used in media tests. |
10 | 10 |
11 Since PyAuto does not support commandline arguments, we have to rely on | 11 Since PyAuto does not support commandline arguments, we have to rely on |
12 environment variables. The following are the names of the environment | 12 environment variables. The following are the names of the environment |
13 variables that are used in chrome/src/test/functional/media_test_runner.py | 13 variables that are used in chrome/src/test/functional/media_test_runner.py |
14 and media tests (subclasses of MediaTestBase in | 14 and media tests (subclasses of MediaTestBase in |
15 chrome/src/test/functional/media_test_base.py) | 15 chrome/src/test/functional/media_test_base.py) |
16 """ | 16 """ |
17 # PLAYER_HTML is a HTML file that contains media tag and other | 17 # PLAYER_HTML is a HTML file that contains media tag and other |
18 # JavaScript code for running the test. | 18 # JavaScript code for running the test. |
19 # Use this to indicate its URL. | 19 # Use this to indicate its URL. |
20 PLAYER_HTML_URL_ENV_NAME = 'PLAYER_HTML_URL' | 20 PLAYER_HTML_URL_ENV_NAME = 'PLAYER_HTML_URL' |
21 | 21 |
22 # Display the result output in compact form (e.g., "local", "remote"). | 22 # Display the result output in compact form (e.g., "local", "remote"). |
23 PLAYER_HTML_URL_NICKNAME_ENV_NAME = 'PLAYER_HTML_URL_NICKNAME' | 23 PLAYER_HTML_URL_NICKNAME_ENV_NAME = 'PLAYER_HTML_URL_NICKNAME' |
24 | 24 |
25 # Use this when you want to add extra information in the result output. | 25 # Use this when you want to add extra information in the result output. |
26 EXTRA_NICKNAME_ENV_NAME = 'EXTRA_NICKNAME' | 26 EXTRA_NICKNAME_ENV_NAME = 'EXTRA_NICKNAME' |
27 | 27 |
28 # Use this when you do not want to report the first result output. | 28 # Define this environment variable when you do not want to report |
29 # First result includes time to start up the browser. | 29 # the first result output. First result includes time to start up the browser. |
30 REMOVE_FIRST_RESULT_ENV_NAME = 'REMOVE_FIRST_RESULT' | 30 REMOVE_FIRST_RESULT_ENV_NAME = 'REMOVE_FIRST_RESULT' |
31 | 31 |
32 # Add t=Data() parameter in query string to disable media cache. | 32 # Add t=Data() parameter in query string to disable media cache |
| 33 # if this environment is defined. |
33 ADD_T_PARAMETER_ENV_NAME = 'ADD_T_PARAMETER' | 34 ADD_T_PARAMETER_ENV_NAME = 'ADD_T_PARAMETER' |
34 | 35 |
35 # Print out only playback time information. | |
36 PRINT_ONLY_TIME_ENV_NAME = 'PRINT_ONLY_TIME' | |
37 | |
38 # Define the number of tries. | 36 # Define the number of tries. |
39 N_RUNS_ENV_NAME = 'N_RUNS' | 37 N_RUNS_ENV_NAME = 'N_RUNS' |
40 | 38 |
41 # Define the tag name in HTML (either video or audio). | 39 # Define the tag name in HTML (either video or audio). |
42 MEDIA_TAG_ENV_NAME = 'HTML_TAG' | 40 MEDIA_TAG_ENV_NAME = 'HTML_TAG' |
43 | 41 |
44 # Define the media file name. | 42 # Define the media file name. |
45 MEDIA_FILENAME_ENV_NAME = 'MEDIA_FILENAME' | 43 MEDIA_FILENAME_ENV_NAME = 'MEDIA_FILENAME' |
46 | 44 |
47 # Define the media file nickname that is used for display. | 45 # Define the media file nickname that is used for display. |
48 MEDIA_FILENAME_NICKNAME_ENV_NAME = 'MEDIA_FILENAME_NICKNAME' | 46 MEDIA_FILENAME_NICKNAME_ENV_NAME = 'MEDIA_FILENAME_NICKNAME' |
49 | 47 |
50 # Define the interval for the measurement. | 48 # Define the interval for the measurement. |
51 MEASURE_INTERVAL_ENV_NAME = 'MEASURE_INTERVALS' | 49 MEASURE_INTERVAL_ENV_NAME = 'MEASURE_INTERVALS' |
52 | 50 |
53 # Define the test scenario file, which contains all operations during tests. | 51 # Define the test scenario file, which contains all operations during tests. |
54 TEST_SCENARIO_FILE_ENV_NAME = 'TEST_SCENARIO_FILE' | 52 TEST_SCENARIO_FILE_ENV_NAME = 'TEST_SCENARIO_FILE' |
55 | 53 |
56 # Define the test scenario, which contains operations during tests. | 54 # Define the test scenario, which contains operations during tests. |
57 TEST_SCENARIO_ENV_NAME = 'TEST_SCENARIO' | 55 TEST_SCENARIO_ENV_NAME = 'TEST_SCENARIO' |
| 56 |
| 57 # Define this environment variable if we want to run test using binaries of |
| 58 # reference build, otherwise do not define this variable. |
| 59 REFERENCE_BUILD_ENV_NAME = 'REFERENCE_BUILD' |
| 60 |
| 61 # Define the path to the directory that contains binaries of reference build. |
| 62 REFERENCE_BUILD_DIR_ENV_NAME = 'REFERENCE_BUILD_DIR' |
OLD | NEW |