rfremoteserver

Robot Framework remote server written in Node.js

Usage no npm install needed!

<script type="module">
  import rfremoteserver from 'https://cdn.skypack.dev/rfremoteserver';
</script>

README

Build Status

robotremoteserver.js

Robot Framework Remote Server written in Node.js, loosely based on https://github.com/mkorpela/RoboZombie/blob/master/robozombie.coffee

Installation

Will upload to npm soonish

Usage

Create a class and that inherits from RemoteServer, e.g;

var TestLibrary = function() {
  var self = this;

  self.my_example_keyword = function(params, callback) {
    // do testy stuff here then either pass the keyword using this.pass or this.fail
    return this.pass(callback);
  }
};

util.inherits(TestLibrary, RemoteServer);

var server = new TestLibrary();
server.start_remote_server();

Example test case file for Robot Framework to use the above remote keyword library

*** Settings ***
Library    Remote    http://localhost:${PORT}

*** Variables ***
${PORT}    8270

*** Test Cases ***

Test Keyword
    ${ret}=   My Example Keyword
    Log    ${ret}