Skip to content
ombre42 edited this page Jun 17, 2012 · 17 revisions

You can incorporate jrobotremoteserver into your project or use it as a standalone jar.

Table of Contents

Programmatic Usage

    public class ServerLauncher {
        public static void main(String[] args) throws Exception {
            RemoteServer.configureLogging();
            RemoteServer server = new RemoteServer();
            server.addLibrary(MyLibrary.class, 8270);
            server.addLibrary(MyOtherLibrary.class, 8271);
            server.start();
        }
    }

Standalone Usage

First configure the CLASSPATH to include your libraries and jrobotremoteserver. Then do something like this:

 java org.robotframework.remoteserver.RemoteServer --library org.example.MyLibrary:8270 --library org.example.MyOtherLibrary:8271

Status Page

Once the remote server has launched, you can see a status page in a web browser. The page displays what libraries are served on which ports, and is served on every port in use. For example, go to http://localhost:8270/ if you have a library assigned to port 8270.

Stopping the Server

You can stop the server in one of several ways:

  1. Execute keyword Stop Remote Server from Robot Framework (can be disabled)
  2. Raise a keyboard interrupt in the console -- CTRL + C
  3. Call RemoteServer.stop()
  4. Call XML-RPC method stop_remote_server() (disabled if the first option is)

Adding as a Maven Dependency

If and when it is added to a repo:

 <dependency>
    <groupId>org.robotframework</groupid>
    <artifactId>remote-server</artifactid>
    <version>1.0</version>
 </dependency>
Clone this wiki locally