Skip to content

nattatorn-dev/robot-framework-recipe

Repository files navigation

README

Robot framework

Robot Framework API automation example

How do I get set up?

  • Install Python 3
  • Clone or download this repository
  • Using the command line navigate in to the project folder and execute the command pip install -r requirements.txt this will install robot framework and the required supporting library's and their dependencies

Once everything has been installed you can run the test suite from the command line in the projects folder with the commandrobot api.robot

By default it will run on the live site on the web, this can be changed at the command line to point to a local instance of restfulbooker by running robot -v BASE_URL:127.0.0.1:80 api.robot or changing the ${BASEURL} variable in the api.robot file

RUN

robot -v ENV:local testcases/

Run Only Sanity Testing

robot -v ENV:local -i sanity testcases/

Docker Compose

docker-compose  up -d --build
docker-compose up -d