git clone git@github.com:ypasmk/robot-framework-docker.git
docker pull ypasmk/robot-framework
cd robot-framework-docker && docker-compose up
cd robot-framework-docker && ./run_tests.sh
You can run the tests without cloning the repository by creating a docker-compose.yml file with the following content:
version: '3.3'
services:
test:
network_mode: host
image: ypasmk/robot-framework
shm_size: "256M"
environment:
USERNAME: Ipatios Asmanidis
volumes: [
"$PWD/output:/output",
"$PWD/suites:/suites",
"$PWD/scripts:/scripts",
"$PWD/reports:/reports"
]
Afterwards, run the following command within the directory of your docker-compose file:
docker-compose up
This image contains the following to facilitate robot testing
You can use it to start a visual display and fire up a browser for UI testing.
Example (suites/virtual_display.robot):
Start Virtual Display 1920 1080
More details here http://robotframework.org/Selenium2Library/Selenium2Library.html
Also have a look at suites/virtual_display.robot
More details here https://github.com/peritus/robotframework-httplibrary
Example:
Create Http Context api.some-end-point.com
GET /some/service/that/supports/get
Verify Status 200
${response}= Get Response Body
[return] ${response}
More details here http://robotframework.org/SSHLibrary/latest/SSHLibrary.html
More details here http://navinet.github.io/robotframework-excellibrary/ExcelLibrary-KeywordDocumentation.html
ENJOY
For any requests or changes please open issues or create pull requests :)