Skip to content

Commit 44a3683

Browse files
committed
examples: readme content
1 parent ca37e23 commit 44a3683

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

example/README.rst

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
Remote server example
2+
=====================
3+
4+
This directory contains a very simple remote library example in
5+
`<examplelibrary.py>`__ file and tests using it in `<example_tests.robot>`__.
6+
The example library can be executed with Python, Jython, and IronPython.
7+
Also tests can be run with any of these interpreters, independently from
8+
the interpreter used for executing the library.
9+
10+
A precondition to running the example is installing the remote server or
11+
putting it into PYTHONPATH or equivalent otherwise. After that the remote
12+
library can be started from the command line by just executing it with
13+
the selected interpreter::
14+
15+
python examplelibrary.py # Execute on Python
16+
jython examplelibrary.py # Execute on Jython
17+
ipy examplelibrary.py # Execute on IronPython
18+
19+
Alternatively the library can be double-clicked on a file manager. In that
20+
case it will run on Python.
21+
22+
After the library is running, tests can be executed normally::
23+
24+
pybot example_tests.robot # Execute with Python
25+
jybot example_tests.robot # Execute with Jython
26+
ipy example_tests.robot # Execute with IronPython
27+
28+
It is possible to use custom address and port by passing them as arguments
29+
to the library, which passes them further to the remote server, and overriding
30+
related variables when running tests::
31+
32+
python examplelibrary.py 0.0.0.0 7777
33+
pybot --variable PORT:7777 example_tests.py
34+
35+
See the example library and tests themselves for details how configuration
36+
is implemented and the general `remote server documentation <../README.rst>`__
37+
for more information about configuring the remote server in general.

0 commit comments

Comments
 (0)