Skip to content

ddenya/automation-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automation Test Task example

This is simple java-based docker project built to control chrome through java code.

The project is built using docker-selenium image with additional tools installed.

  1. Install Docker from https://docs.docker.com/v17.09/engine/installation/

  2. Install vncviewer from www.realvnc.com

  3. Get Docker tarball from docker.link with cat docker.link | wget -i

  4. Import tarball to Docker with docker load < ~/chrome-node-original.tar

  5. Run container with docker run -d -e SCREEN_WIDTH=1366 -e SCREEN_HEIGHT=768 -p 5900:5900 -p 4444:4444 -v /dev/shm:/dev/shm -v ~/dockershare:/home/seluser/code chrome-node-original

  6. Open shell in container (assuming this only one container running) with ID=$(docker ps | awk '{printf $1}' | cut -c 10-);docker exec -it $ID /bin/bash;echo $ID;

  7. Change folder to home with cd ~/code/moneylion-example

  8. Launch tests with mvn -U clean test

  9. Find the screenshots from each test run in ~/code/screenshots

  10. Find reports in code/moneylion-example/target/surefire-reports folder

  11. Launch API test with python3 /home/seluser/code/moneylion-example/apitest/unifiTestWrapper.py

  12. Find reports in python3 /home/seluser/code/moneylion-example/apitest/reports/report folder

About

automation-test-task-example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published