Skip to content

Commit ab86cea

Browse files
committed
Splitted capabilities files one for each browser.
With the new seleniumbender.py script its easy to switch between them.
1 parent b2a5013 commit ab86cea

File tree

5 files changed

+16
-8
lines changed

5 files changed

+16
-8
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ The most important class is `SeleniumTestCase`, which all of the unit test cases
114114
inherit from. This grants them access (via `self`) to a number of methods and
115115
attributes that are useful for performing codebender-specific actions.
116116

117-
**`codebender_testing/capabilities.yaml`** defines a list of `capabilities` to
117+
**`codebender_testing/capabilities_{firefox, chrome}.yaml`** defines a list of `capabilities` to
118118
be passed as arguments when instantiating remote webdrivers. In particular, it
119119
specifies the web browsers that we would like to use. Consult this file for more
120120
information.
@@ -141,4 +141,3 @@ compile.
141141
The `logs/` directory contains the results of running certain tests, e.g.
142142
whether certain sets of sketches have compiled successfully (see "Compilation
143143
Logs").
144-

codebender_testing/capabilities.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@
77
# https://docs.saucelabs.com/reference/test-configuration
88

99
- browserName: "firefox"
10-
version: 42
10+
version: 43
1111
public: "public restricted"
12-
seleniumVersion: "2.48.0"
1312
maxDuration: 10800
1413
- browserName: "chrome"
1514
version: 47
1615
public: "public restricted"
17-
seleniumVersion: "2.50.1"
1816
maxDuration: 10800
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This file contains a list of capabilities which will be used to instantiate
2+
# the remote selenium webdrivers.
3+
# Each list entry will cause the entire test suite to be run for a remote
4+
# webdriver with the capabilities specified in the entry.
5+
6+
# See here for more on test configuration:
7+
# https://docs.saucelabs.com/reference/test-configuration
8+
9+
- browserName: "chrome"
10+
version: 47
11+
public: "public restricted"
12+
maxDuration: 10800

codebender_testing/capabilities_firefox.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
# https://docs.saucelabs.com/reference/test-configuration
88

99
- browserName: "firefox"
10-
version: 42
10+
version: 43
1111
public: "public restricted"
12-
seleniumVersion: "2.48.0"
1312
maxDuration: 10800

codebender_testing/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def jsondump(data):
6666
CHROME_EXT_MAX_CHROME_VERSION = 41
6767

6868
# Path to YAML file specifying capability list.
69-
DEFAULT_CAPABILITIES_FILE = os.getenv('CAPABILITIES', 'capabilities.yaml')
69+
DEFAULT_CAPABILITIES_FILE = os.getenv('CAPABILITIES', 'capabilities_firefox.yaml')
7070
DEFAULT_CAPABILITIES_FILE_PATH = _rel_path(DEFAULT_CAPABILITIES_FILE)
7171

7272
# Files used for testing.

0 commit comments

Comments
 (0)