Exercise
-
Use Groovy to implement a RESTful API web application. http://ratpack.io or https://grails.org for RESTful API implementation, or any framework you want to use.
-
Use Robotframework (http://robotframework.org) to write a test case to search "Ruckus Wireless" on Google, and check if any result found.
-
Export a RESTful API endpoint to run the test case.
-
Use Gradle & Docker to package the application to container.
-
Send me the Docker container and prepare a readme file to teach me how to use.
This is the sample for Ruckus's Exercise. Implement a REST server ahd be the endpoint to start the Google Search by Robotframework. This application package into Docker's container
REST server default address is 0.0.0.0:5000
After deploy can use 2 command to check the server and REST server status:
-
http://docker_ip:port/
-
http://docker_ip:port/todo/api/v1.0/tasks
First download this image from
https://registry.hub.docker.com/u/chaircos/rest/
Second deploy and run the image on the container
MAX OS X sample:
git clone https://github.com/chairco/RuckusTEST.git the tree will like below:
├── Dockerfile
├── GoogleDemo
│ ├── google_search.txt
│ ├── log.html
│ ├── output.xml
│ ├── report.html
├── README.md
├── mockflask.py
├── .gitignore
└── requirements.txt
REST Server, by flask web framework
robot script
build the image need
python packages