- Open intelliJ and Click "Checkout from Version Control"
- Past following url and select directory to save.
git repository
:https://github.com/selcukayhan/baseTestAutomationPOM.git
- Build as a Maven Project
-
Before running tests please update Config file and Buyer e-mails.
- Please update
DEFAULT_USERNAME
andDEFAULT_PASSWORD
variables in the Config file. - Please update buyer e-mails in the BuyerPool file as specified.
- Please update
-
To execute whole tests in Test Classes :
- Open
SmokeTest.java
undersrc/test/java/com/selenium
- Right click inside the home class and Click "Run SmokeTest".
- Or Type
mvn clean test -Dtest=SmokeTest
to terminal.
- Open
-
To execute a simple test in Test Class :
- Open
SmokeTest.java
undersrc/test/java/com/selenium
- Right click inside the test method and Click "Run testMethodName()" for example "Run shouldLogin()"
- Or Type
mvn clean test -Dtest=SmokeTest#shouldLogin
to terminal.
- Open
-
To execute api tests :
- Open ApiTest under
src/test/java/com/api
- Right click inside the test method and Click "Run testMethodName()" for example "Run shouldGiveMeDirectionsFromDisneylandToUniversal()"
- Please update
API_KEY
under the config file :src/main/java/com/api/objects/Config
- Open ApiTest under