Skip to main content

Introduction

Robot Framework remote servers allow hosting test libraries on different processes or machines than Robot Framework itself is running on. This version is implemented in Python and supports also Jython (JVM) and IronPython (.NET). See remote library interface documentation for more information about the remote interface in general as well as for a list of remote server implementations in other programming languages.

This project is hosted in GitHub and downloads are available in PyPI.

Installation

The easiest installation approach is using pip:

$ pip install robotremoteserver

Alternatively you can download the source distribution, extract it, and install it using:

$ python setup.py install

Starting

The remote server can be started by simply creating an instance of the server and passing a test library instance or module to it:

from robotremoteserver import RobotRemoteServer
from mylibrary import MyLibrary

RobotRemoteServer(MyLibrary())

By default the server listens to address 127.0.0.1 and port 8270. See the next section for information about configuring the server.

Configuration

The remote server accepts following configuration parameters:

Argument

Default

Explanation

host

'127.0.0.1'

Address to listen. Use '0.0.0.0' to listen to all available interfaces.

port

8270

Port to listen. Use 0 to select a free port automatically.

port_file

None

File to write port that is used.

allow_stop

True

Allow/disallow stopping the server using Stop Remote Server keyword.

Address and port that are used are printed to the console where the server is started. Writing port to a file by using port_file argument is especially useful when the server selects a free port automatically. Other tools can then easily read the active port from the file. If the file is removed prior to starting the server, tools can also wait until the file exists to know that the server is up and running.

Example:

from robotremoteserver import RobotRemoteServer
from mylibrary import MyLibrary

RobotRemoteServer(MyLibrary(), host='10.0.0.42', port=0,
                  port_file='/tmp/remote-port.txt', allow_stop=False)

Stopping

The remote server can be gracefully stopped using three different methods:

  • Hitting Ctrl-C on the console where the server is running.

  • Sending the process SIGINT, SIGTERM, or SIGHUP signal.

  • Using Stop Remote Server keyword (unless explicitly disabled).

Example

The remote server project contains an example that can be studied and also executed once the library is installed. The example is also included in the source distribution.

Metadata

Release files for robotremoteserver 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for robotremoteserver 1.0
File Size Uploaded
robotremoteserver-1.0.tar.gz 10.7 kB Details

Release files / robotremoteserver-1.0.tar.gz

Download URL robotremoteserver-1.0.tar.gz
Size 10.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3a1e18f1bb9232527d131b60f0b04a937d76d6e4386948c60d6699ff4bf23d53
BLAKE2b-256 checksum
How to use checksums
97bc02ab83da90906f8e9a146588422c043b7b90f29972cd8ffef0789bb14b47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

1.1.1

2 release files

1.1

2 release files

1.0.1

1 release file

This release

1.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page