Featured project | Web & API, CI/CD

Enterprise Test Automation Framework

UI, API and database checks of one demo shop kept in the repository; parallel execution, infrastructure-only retries, Allure evidence, Docker + Selenium Grid, nightly CI on Chrome, Firefox and Edge.

19 Nov 2026 nightly execution results: Chrome 246/246 passed; Firefox, Edge and Selenium Grid each 182/182 passed; 0 failures, errors or skips.

On this page
  1. Problem and purpose
  2. Architecture
  3. Technology and tools
  4. Layers and responsibilities
  5. Configuration and execution
  6. Engineering decisions and approach
  7. Problem, decision and result
  8. Test scope and execution approach
  9. Results with dated evidence
  10. Evidence explorer
  11. Local setup and execution
  12. Workflow and reports
  13. Known limitations

Problem and purpose

Shows how a test platform for a real product is designed, built, documented and operated, not just a test suite. It tests ShopEase Admin, a small shop back office kept in the same repository, so one business record can be checked through the UI, the REST API and the database. It is a portfolio project, not a framework running in a company.

Architecture

Layers depend downwards only: tests contain no Selenium, HTTP or SQL. The repository documents the architecture in docs/architecture.md and 21 architecture decision records in docs/adr.

Explore the architecture

Select a component to see its purpose, technology, inputs, outputs and implementation path.

Business-level assertions are grouped by API, UI, database, integration, end-to-end and platform behavior.

Technology
Java 17, TestNG
Inputs
Test data and the configured application environment.
Outputs
Assertions, named Allure steps and test results.
View sourceautomation/src/test/java/com/enterprise/automation/tests

Architecture components

Test suites

Business-level assertions are grouped by API, UI, database, integration, end-to-end and platform behavior.

Technology
Java 17, TestNG
Inputs
Test data and the configured application environment.
Outputs
Assertions, named Allure steps and test results.
View sourceautomation/src/test/java/com/enterprise/automation/tests
Pages, services and queries

Keep selectors, API resources and SQL out of test methods.

Technology
Java page objects, API services and JDBC query classes.
Inputs
Actions and data requests from the test layer.
Outputs
UI actions, HTTP responses and database rows.
View sourceautomation/src/main/java/com/enterprise/automation
Driver and configuration

Provide the configured local or remote browser and environment-specific settings.

Technology
Selenium WebDriver, immutable configuration and Selenium Grid.
Inputs
Browser, environment, execution mode and parallelism settings.
Outputs
A browser session per test thread and resolved configuration.
View sourceautomation/src/main/java/com/enterprise/automation/driver
Application under test

Expose the same shop records through the user interface, REST API and database.

Technology
The ShopEase demo application and H2 database.
Inputs
Browser requests, API calls and test data.
Outputs
UI state, API responses and persisted demo records.
View sourcedemo-app/src/main/java/com/enterprise/demoapp
Execution evidence

Attach failure diagnostics and per-test context to the run report.

Technology
TestNG listeners, Logback and Allure.
Inputs
Test steps, responses, rows, screenshots, logs and run metadata.
Outputs
Dated test reports and failure diagnostics.
View sourceautomation/src/main/java/com/enterprise/automation/reporting

Technology and tools

AreaTools
Language / buildJava 17, Maven (multi-module)
Test runnerTestNG 7.12
UISelenium 4 (local and Selenium Grid)
APIREST Assured 6, Jackson, JSON Schema validation
DatabaseJDBC (H2), parameterised queries
Assertions / dataAssertJ, Datafaker, JSON and CSV files
Logging / reportingSLF4J + Logback per thread and test; Allure 3
ContainersDocker, docker compose, Selenium Grid (hub + Chrome, Firefox, Edge nodes)
CI/CDGitHub Actions, Dependabot, dependency review, Checkstyle

Layers and responsibilities

LayerResponsibilityExamples
TestsWhat is checked, in business terms; no Selenium, HTTP or SQLtests/api, tests/ui, tests/db, tests/integration, tests/e2e
Pages, API services, DB queriesOne class per screen, API resource or query area; the only place that knows locators, endpoints and SQLpage objects, service objects, query classes
Components and clientsReusable UI components, the REST client, the query executor, waits on real stateApiClient, QueryExecutor, components
Driver and configurationBrowser per thread (local or Grid), layered configuration, secrets from the environmentDriverFactory, configuration loader
Execution and evidenceRetry policy for infrastructure failures, logging, Allure steps and attachmentslisteners, SecretMasker, Allure

Configuration and execution

Settings are layered: defaults, an environment (-Denv=qa), then system properties, so the same tests run on a laptop, in Docker, against Grid or in CI without edits. Examples: -Dbrowser=firefox, -Dthreads=4, -Dsuite=smoke, -Dexecution=remote -Dgrid.url=....

Parallel execution: one browser per thread, unique data per test, per-thread clean-up and logs; the full suite took about 242 s serial, 171 s with 2 threads and 148 s with 4 (clean clone).

Retries: only transient infrastructure failures (browser start-up, lost sessions, refused connections) are retried, for test methods and for browser start-up; assertion failures and wait timeouts never are, and every retry is visible in the report.

Reporting: Allure shows every UI action, API call (request and response attached) and SQL query as a step; failed UI tests get screenshot, URL, page source and browser console; failures are categorised (configuration, infrastructure, timeout, authentication, database, UI, API, assertion); logs mask secrets.

Engineering decisions and approach

  • Test at the cheapest level (API) and check consistency across UI, API and database
  • Every test owns its data: independent, parallel-safe, no order dependencies, no shared fixtures, no sleeps
  • Retry only transient infrastructure failures (browser start-up, lost sessions, refused connections); assertion failures and wait timeouts never
  • Every failure explains itself: steps, request/response, rows, screenshot, log, environment and build in the report
  • Same tests everywhere: laptop, Docker, Grid and CI are configured, never edited
  • Cloud device farms deferred on purpose; Grid covers remote browsers

Problem, decision and result

Problem

Verify the same demo-shop business flows across UI, API and database layers.

Decision

Separate business assertions from browser, HTTP and SQL access; isolate test data and retain failure evidence.

Observed result

19 Nov 2026 nightly execution results: Chrome 246/246 passed; Firefox, Edge and Selenium Grid each 182/182 passed; 0 failures, errors or skips.

Evidence checked 2026-11-19 | Nightly regression #103 on main

Scope: Repository demo application; these results do not establish production customer impact.

Test scope and execution approach

Project-specific checks and execution details documented in the repository:

  • Earlier inventory (12 Oct 2026): 169 TestNG test executions from 124 test methods (data-driven tests run once per data row), all passing in that scheduled nightly run; by package, without overlap: API 57, UI 48, database 13, integration 9, end-to-end 2, framework unit tests 40. Evidence: nightly run 38226623404
  • Named suites (TestNG groups, which overlap): smoke 20, sanity 11, regression 121
  • Parallel execution: one browser per thread; full suite about 242 s serial, 171 s with 2 threads, 148 s with 4 (clean clone)
  • Allure report with every UI action, API call and SQL query as a step, failure categories and an environment panel
  • Secrets masked in every log line, report attachment and failure message
  • Docker compose: application, Selenium hub, Chrome/Firefox/Edge nodes and the test runner

Results with dated evidence

Historical workflow run · verified 20 Nov 2026

Nightly regression #103 on main

19 Nov 2026 nightly execution results: Chrome 246/246 passed; Firefox, Edge and Selenium Grid each 182/182 passed; 0 failures, errors or skips.

Evidence checked: | Open dated evidence

Evidence explorer

Static screenshots are labelled as images; dated workflow links identify the execution evidence and its check date.

The interactive architecture map above lists components and their source paths. Open the repository architecture guide.

Test report screenshot. Allure overview of a smoke run with one deliberately failing demo check. Static image; capture date is not recorded in the portfolio data.
Allure overview of a smoke run

Test report screenshot. Allure overview of a smoke run with one deliberately failing demo check. Static image; capture date is not recorded in the portfolio data.

Test report screenshot. The Docker Selenium Grid used by the nightly run. Static image; capture date is not recorded in the portfolio data.
Selenium Grid console with Chrome, Firefox and Edge nodes

Test report screenshot. The Docker Selenium Grid used by the nightly run. Static image; capture date is not recorded in the portfolio data.

Static material from the public repository. The linked verification record was checked 2026-11-19; that date is not a screenshot capture date.

Test report screenshot. A static report example; it demonstrates how an individual failure is represented, not the latest nightly outcome. Static image; capture date is not recorded in the portfolio data.
Allure report showing a deliberately failing demo check

Test report screenshot. A static report example; it demonstrates how an individual failure is represented, not the latest nightly outcome. Static image; capture date is not recorded in the portfolio data.

Dated workflow record

Evidence checked 2026-11-19. Open Nightly regression #103 on main

Local setup and execution

mvn clean test                                   # full suite, local app, Chrome
mvn clean test -Dsuite=smoke -Dheadless=true     # one suite
mvn clean test -Dbrowser=firefox -Dthreads=4     # another browser, 4 threads
docker compose -f docker/docker-compose.yml up --build --abort-on-container-exit --exit-code-from tests

Requirements: JDK 17+, Maven 3.9+, Chrome or Edge; Node.js for the Allure CLI. Full instructions in the README.

Workflow and reports

View workflow definition.

Known limitations

  • Cloud device farms are not integrated (deliberate, see the decision records)
  • The demo application uses an in-memory H2 database and demo-grade security; it is not a production deployment.
  • Allure steps are at user-action level; no business-level step names yet

Back to Projects