Skip to content

Commit 4c3413b

Browse files
committed
Improved atest/README.rst
1 parent 429a348 commit 4c3413b

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

atest/README.rst

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,21 @@ system settings, which python is used by default. It is possible to run test
3636
by using different interpreter by using the `--interpreter` command line
3737
argument.
3838

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+
3954
Robot Framework command line arguments
4055
--------------------------------------
4156
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
4459
developing new functionality for the library. Example like --test, --suite,
4560
--include and --exclude.
4661

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-
6062
Examples
6163
--------
6264
Examples::
6365

6466
run.py chrome
6567
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
6769
run.py --interpreter "py -2" chrome --suite javascript
6870

6971
To run just the unit tests, run::
@@ -79,13 +81,12 @@ Travis CI integration
7981
`Travis CI`_ is used to automatically test all new pull request to the
8082
repository. The detailed information about execution matrix can be found
8183
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.
8686

8787
.. _browser driver: https://github.com/robotframework/SeleniumLibrary#browser-drivers
8888
.. _PATH: https://en.wikipedia.org/wiki/PATH_(variable)
8989
.. _robotstatuschecker: https://github.com/robotframework/statuschecker/
9090
.. _Travis CI: https://travis-ci.org/robotframework/SeleniumLibrary
9191
.. _.travis.yam: https://github.com/robotframework/SeleniumLibrary/blob/master/.travis.yml
92+
.. _Selenium Grid: https://github.com/SeleniumHQ/selenium/wiki/Grid2

0 commit comments

Comments
 (0)