Short Description
Provide Robot framework environment plus web access to robot log
Full Description
Robot Plus
Use docker-compose to run Robot framework environment plus web access to robot log
Feature
- Provide Robot framework environment
- Provide web access to local robot log
Usage
- Set environment variable ROBOT_PLUS_PATH
e.g. echo 'export ROBOT_PLUS_PATH=/tmp' >> ~/.bashrc$ echo 'export ROBOT_PLUS_PATH=<robot_test_file_path>' >> ~/.bashrc $ source ~/.bashrc
- Prepare docker-compose.yml with the following content
robot-plus: container_name: robot-plus restart: always image: evaou/robot-plus volumes: - $ROBOT_PLUS_PATH:/data/robot-plus - $ROBOT_PLUS_PATH:/usr/share/nginx/html tty: true ports: - "80:80/tcp" working_dir: /data/robot-plus environment: - PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/data/robot-plus/bin
- Under the same folder of docker-compose.yml, run docker-compose command
$ docker-compose up -d
Under ROBOT_PLUS_PATH, prepare demo.robot with the following content
*** Test Cases *** Data Driven Test [Template] Add Two Numbers 1 2 3 4 *** Keywords *** Add Two Numbers [Arguments] ${arg1} ${arg2} ${sum} = Evaluate ${arg1} + ${arg2} Log ${arg1} + ${arg2} = ${sum}
- Run robot test
$ docker exec -it robot-plus pybot demo.robot
- Access robot log via
http://127.0.0.1/log.html (Linux)
http://192.168.99.100/log.html (iOS)
http://<linux_server_ip>/log.html (Linux)
Docker Pull Command
Owner
evaou