Skip to content

Test suite to demo some of the capabilities of the Robotframework

Notifications You must be signed in to change notification settings

Nilsty/robotframework-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo test suite for Robotframework

This project will demo the use of the testing framework Robotframework. In particular the Selenium Library is used for UI testing as well as the Requests Library is used for API testing.

Run test suite in docker

docker-compose up This is using the docker image ppodgorsek/robot-framework from docker hub.

Run test suite locally

To run the test suite locally the following needs to be installed:

  • Google Chrome
  • Chrome Driver
  • Python 3
  • pip libraries:
    • robotframework
    • robotframework-seleniumlibrary
    • selenium
    • robotframework-requests

After installing all requirements the test suite can be executed with: robot --outputdir=./output-local --variable HEADLESS_BROWSER_ENABLED:False robot-tests

Test executed

Test report

After the tests have been run the test report can be accessed from the output folder. e.g. output/report.html

Run test suite on Kubernetes

The file test-on-k8s.yml contains a definition to run the test suite inside a pod on a kubernetes cluster. With the command kubectl apply -f test-on-k8s.yml, this repo will be cloned to an "initContainer" and then executed inside the docker image ppodgorsek/robot-framework.

Working with the Robotframework

Here are a couple of helpful resources when working with the Robotframework.

About

Test suite to demo some of the capabilities of the Robotframework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published