Your task is to create automated checks for the search function for the CRUK find a shop page (https://www.cancerresearchuk.org/get-involved/find-a-shop).
You need to test the following scenarios (this is a live website, please don't overuse the page/functionality):
- create a "happy path" scenario.
- create a negative scenario.
If you prefer to use a different test framework (feel free to add it as a dependency, we use Cypress.io at CRUK) to solve the challenge. Use best practices for the test architecture and setup.
- Java installed
- Maven installed
- Download ChromeDriver & put in
C:/chromedriver/folder (Windows) or/Users/<Username>/chromedriver/Chromedriver Downloads. If not using windows you will need to uncomment the executable path. On Mac you may need to allow Chromedriver in system preferences > Security & Privacy. - Download docker
Using docker to run Selenium Grid (Feel free to use a local instance yourself)
docker pull elgalu/selenium
docker run -d --name=grid -p 4444:24444 -p 5900:25900 \
-e TZ="US/Pacific" -v /dev/shm:/dev/shm --privileged elgalu/seleniummvn clean test -DsuiteXmlFile=testng/testng.xmlPlease describe in a README.md file how to run the tests and any other additional info needed about any assumptions you make.
Please either:
- Zip up the project and send it back to the hiring manager
- Publish to your github and send us the link