This is my assignment for Take-home Challenge. I just use Maven + TestNG + Extend Report + Selenium Webdrive and apply PageObjectMode and Java programming to build a basic framework.
This script is verify order items successfully.
Software name | Version | Note |
---|---|---|
IntelliJ IDEA | Optional | |
Java JDK | Download and install to C: driver | |
Maven | Download and extract to C: driver | |
Git (cmd console) | Download and install to C: driver | |
Notepad++ | Optional | |
https://github.com/vecelo/WZassignment.git
- Open Git Bash
- Change the current working directory to the location where you want the cloned directory
git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY
This way is for quick review, your maven and jdk won't work when you restart console
Call Windows console (Win - R > type: cmd > OK) Typing these commands to temporarily setup variable enviroment for MAVEN and JAVA JDK
set JAVA_HOME=C:\Program Files\Java\jdk-14.0.1
set MAVEN_HOME=C:\apache-maven-3.6.3\bin
set PATH=%MAVEN_HOME%;%JAVA_HOME%\bin;%PATH%
If you are using Chrome version 83, download ChromeDriver here and stored in \Assignment\src\main\resources
If you are using Firefox version 77.x, download GeckoDriver here and stored in \Assignment\src\main\resources\
<https://chromedriver.storage.googleapis.com/83.0.4103.39/chromedriver_win32.zip>
<https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-win64.zip>
The Test Report and Screenshot is stored in \Assignment\reports