Skip to main content

Webservice for running Robot Framework tasks

Project description

Robot Task Webservice

A web service managing Robot Framework tasks.

Status: Prototype

Goal

This web service shall start Robot Framework tasks and return and cache the according reports.

Install

pip install robotframework-webservice

Usage

Call robot task:

http://localhost:5003/robotframework/run/mytask

Call robot task with variables:

http://localhost:5003/robotframework/run/mytask?myVariable1=42&anotherVariable=Mustermann

Response contains status and log report.

Start web service

The web service starts automatically with uvicorn inside. Simply call:

python -m RobotFrameworkService.main

You can check available options with

python -m RobotFrameworkService.main --help

Example:

python -m RobotFrameworkService.main -p 5003 -t path_to_my_taskfolder

Example - Variablefiles:

You can provide variable files that are passed to all robot suites on execution:

python -m RobotFrameworkService.main -p 5003 -t path_to_my_taskfolder --variablefiles config/env/test.py

Custom WSGI server

You can start RobotFrameworkService with bare WSGI servers:

uvicorn RobotFrameworkService.main:app --port 5003

Or start web service with other WSGI server, i.e waitress:

waitress-serve --port 5003 RotbotFrameworkService.main:app

SwaggerUi

Swagger-UI is available under http://localhost:5003/docs

Demo-Tasks

This project contains some tasks for demonstration. They are located in tasks folder. You may add your own task suites in that directory, if you like.

Task name with spaces in URL

Tasks may contain spaces, URL must not. Luckily, Robot Framework supports CamelCase as well as snake_case syntax. Meaning: "Another Task" can be trigger in url with parameter AnotherTask or another_task

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

robotframework-webservice-0.4.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file robotframework-webservice-0.4.0.tar.gz.

File metadata

File hashes

Hashes for robotframework-webservice-0.4.0.tar.gz
Algorithm Hash digest
SHA256 277e9ad9520fa22cd820fb410e6ce65244de90bbb46b572e0500f7e024bb447a
MD5 9e762f895e82c45399474b913b3fa30d
BLAKE2b-256 0eafe5409818ec4cae438d3ece8a8c14ed47365afda1aaf2f4e9261efee84135

See more details on using hashes here.

File details

Details for the file robotframework_webservice-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for robotframework_webservice-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 088e39833f665101f171c093c40213231a9fe198615da91a45f465bbef57d141
MD5 7aae7786380178171b2c1224dd98cb7a
BLAKE2b-256 dfea592f042202a326cd22c167ad7ed0ced868f3ecad1c16bb74ae95d79cd246

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page