@@ -36,6 +36,21 @@ system settings, which python is used by default. It is possible to run test
36
36
by using different interpreter by using the `--interpreter ` command line
37
37
argument.
38
38
39
+ Running test with Selenium Grid
40
+ -------------------------------
41
+ It is possible to run test by using `Selenium Grid `_ if keywords contains
42
+ some grid specific implementation. Running test Selenium Grid requires
43
+ that latest released selenium-server-standalone-*.jar is downloaded
44
+ in the project root and Java is installed. The `run.py` will start and
45
+ stop Selenium servers automatically. The testing with Selenium Grid
46
+ can done by using `--grid true` argument. In some cases Selenium Grid adds
47
+ some extra logging and causes test to fail when `robotstatuschecker`_ is
48
+ used. In this case, these test should be tagged with `NoGrid` tag to
49
+ exclude the test when Selenium Grid is being used. Also there might
50
+ be need write test that are only run when Selenium Grid is used.
51
+ Then in this case, test should be tagged with `OnlyGrid` tag to
52
+ include them only when Selenium Grid is used.
53
+
39
54
Robot Framework command line arguments
40
55
--------------------------------------
41
56
It is possible to pass Robot Framework command line arguments to the test
@@ -44,26 +59,13 @@ to use arguments to select required suite or test for the execution when
44
59
developing new functionality for the library. Example like --test, --suite,
45
60
--include and --exclude.
46
61
47
- Using Sauce Labs for acceptance tests
48
- -------------------------------------
49
- When running test by using browser from Sauce labs, it is required that the
50
- Sauce Connect is used. The Sauce Connect allows the browser from Sauce Labs
51
- reach the acceptance test web server. The acceptance test uses tunnel with
52
- name `localtunnel ` and therefore when establishing the Sauce Connect tunnel
53
- use the following command::
54
-
55
- bin/sc -u YOUR_USERNAME -k YOUR_ACCESS_KEY -i localtunnel
56
-
57
- More details and to download Sauce Connect visit:
58
- https://wiki.saucelabs.com/display/DOCS/High+Availability+Sauce+Connect+Proxy+Setup
59
-
60
62
Examples
61
63
--------
62
64
Examples::
63
65
64
66
run.py chrome
65
67
run.py --interpreter jython firefox --suite javascript
66
- run.py chrome --sauceusername your_username --saucekey account_key --suite javascript
68
+ run.py headlesschrome --nounit --grid true
67
69
run.py --interpreter "py -2" chrome --suite javascript
68
70
69
71
To run just the unit tests, run::
@@ -79,13 +81,12 @@ Travis CI integration
79
81
`Travis CI `_ is used to automatically test all new pull request to the
80
82
repository. The detailed information about execution matrix can be found
81
83
from the `.travis.yam `_. Generally speaking the test are automatically run
82
- by using Chrome and Firefox browsers. The project uses Python 2.7, Python 3.4,
83
- Python 3.6 and PyPy 3.5 for test execution. The project uses and latest available
84
- Selenium 3 version for test execution. Test uses Robot Framework versions
85
- 2.9.2 and 3.0.4 for acceptance test execution.
84
+ by using Chrome browser and by using supported Python and Robot Framework
85
+ versions. But in Travis only the latest released Selenium version is used.
86
86
87
87
.. _browser driver : https://github.com/robotframework/SeleniumLibrary#browser-drivers
88
88
.. _PATH : https://en.wikipedia.org/wiki/PATH_(variable)
89
89
.. _robotstatuschecker : https://github.com/robotframework/statuschecker/
90
90
.. _Travis CI : https://travis-ci.org/robotframework/SeleniumLibrary
91
91
.. _.travis.yam : https://github.com/robotframework/SeleniumLibrary/blob/master/.travis.yml
92
+ .. _Selenium Grid : https://github.com/SeleniumHQ/selenium/wiki/Grid2
0 commit comments