Real World Example

Project Setup on Day One

When you join an automation team at a service company, the first day is usually: clone the repo, import it as a Maven project, run the smoke suite. A typical pom.xml has a few more dependencies than ours:

DependencyPurpose
selenium-javabrowser automation
testngtest framework (medium level)
poi-ooxmlread test data from Excel (medium level)
extentreports / allure-testngHTML reports (advance level)
log4j-corelogging (advance level)

Running the Smoke Suite

Example

After importing, the team runs the smoke suite from the terminal:

git clone https://git.example.com/qa/shopease-tests.git
cd shopease-tests
mvn test -Dgroups=smoke

Example output

[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running TestSuite
[INFO] Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 48.31 s
[INFO] BUILD SUCCESS

Tip: If this works on your laptop on day one, your Java, Maven and browser setup is correct.