Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Accruent/robotframework-hub

 
 

Repository files navigation

Robot Framework Hub

tests Coverage Status CodeFactor

This is a very early version of a server for the robot framework testing framework. The hub uses flask to provide both a RESTful interface and a browser-based UI for accessing test assets.

It's crazy easy to get started. To install and run from a PyPi package, do the following:

    $ pip install https://github.com/Accruent/robotframework-hub/tarball/master
    $ python -m rfhub

To run from source it's the same, except intead of installing, you cd to the folder that has this file.

That's it! You can now browse documentation by visiting the url http://localhost:7070/doc/

Want to browse your local robotframework assets? Just include the path to your test suites or resource files on the command line:

    $ python -m rfhub /path/to/test/suite

By default it will create in-memory SQLite database. If you want to run it with persistent database (for example PostgreSQL):

    $ python -m rfhub --db postgresql://postgres:@localhost:5432/db /path/to/test/suite

NOTE: Application uses SQLAlchemy for database interaction. In order to use it with specific database you need to install related Python package (like psycopg2 for PostgreSQL)

Web and Worker modes

By default application is responsible for both loading data to database and running web server. If you want to run them separately, for example to deploy server without access to actual library files and load data periodically to shared database, you can run application in web and worker modes:

    $ python -m rfhub --db postgresql://postgres:@localhost:5432/db --web
    $ python -m rfhub --db postgresql://postgres:@localhost:5432/db --worker

Web process skips loading library data (but it tries to create required tables if they are not yet created) and starts web server.

Worker process creates tables if required, loads library data and exits.

Websites

Source code, screenshots, and additional documentation can be found here:

Acknowledgements

A huge thank-you to Echo Global Logistics (echo.com) for supporting the development of this package.

Releases

No releases published

Packages

No packages published

Languages

  • Python 66.7%
  • RobotFramework 28.5%
  • HTML 2.8%
  • JavaScript 2.0%