Skip to content

lewis-prescott-cruk/Selenium-Interview-Task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UI Tests

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).

Scenarios

You need to test the following scenarios (this is a live website, please don't overuse the page/functionality):

  1. create a "happy path" scenario.
  2. create a negative scenario.

Guidance

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.

Setup

  1. Java installed
  2. Maven installed
  3. 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.
  4. Download docker

Run Selenium Grid

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/selenium

Run

mvn clean test -DsuiteXmlFile=testng/testng.xml

Documentation

Please describe in a README.md file how to run the tests and any other additional info needed about any assumptions you make.

On Completion

Please either:

  1. Zip up the project and send it back to the hiring manager
  2. Publish to your github and send us the link

About

This repository comprises of Selenium Docker sample

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published