@@ -87,14 +87,43 @@ Example:
8787 RobotRemoteServer(MyLibrary(), host='10.0.0.42', port=0,
8888 port_file='/tmp/remote-port.txt', allow_stop=False)
8989
90+ Testing is server running
91+ -------------------------
92+
93+ Starting from version 1.0.1 , ``robotremoteserver `` module supports testing is
94+ a remote server running. This can be accomplished by running the module as
95+ a script with ``test `` argument and an optional URI:
96+
97+ .. sourcecode :: bash
98+
99+ $ python -m robotremoteserver test
100+ Remote server running at http://127.0.0.1:8270.
101+ $ python -m robotremoteserver test http://10.0.0.42:57347
102+ No remote server running at http://10.0.0.42:57347.
103+
104+ .. tip :: As discussed below, using ``stop`` instead of ``test`` allows stopping
105+ the server. Both testing and stopping works also against other Robot
106+ Framework remote server implementations.
107+
90108Stopping
91109--------
92110
93111The remote server can be gracefully stopped using three different methods:
94112
95- - Hitting ``Ctrl-C `` on the console where the server is running.
96- - Sending the process ``SIGINT ``, ``SIGTERM ``, or ``SIGHUP `` signal.
97- - Using ``Stop Remote Server `` keyword (unless explicitly disabled).
113+ - Hitting ``Ctrl-C `` on the console where the server is running. Starting from
114+ version 1.0.1 this ought to work regardless the operating system and Python
115+ interpreter.
116+
117+ - Sending the process ``SIGINT ``, ``SIGTERM ``, or ``SIGHUP `` signal. Does not
118+ work on Windows. Notice that with Jython you need to send the signal to the
119+ started Java process, not to the shell typically started by ``jython `` command.
120+
121+ - Using ``Stop Remote Server `` keyword. This can be disabled by using
122+ ``allow_stop=False `` when starting the server.
123+
124+ - Running ``python -m robotremoteserver stop [uri] `` similarly as when testing
125+ is the server running. Also this can be disabled using ``allow_stop=False ``.
126+ New in version 1.0.1.
98127
99128Example
100129-------
0 commit comments