diff --git a/projects.html b/projects.html index e80fa7c..f78a780 100644 --- a/projects.html +++ b/projects.html @@ -321,30 +321,30 @@
Project | Web & API
Five design patterns doing real work in one Java framework: Page Object, Factory (browser and engine), Strategy (JSON, CSV or API test data)…
-The same 11 UI tests run on Selenium WebDriver and on Playwright for Java, on 7 browser setups, through one Browser interface. Running both engines exposed a Chrome password-leak dialog that swallowed clicks on Selenium only; the fix lives in the Factory and a test keeps it there.
Historical repository or workflow evidence
The same 13 UI tests run on Selenium WebDriver and on Playwright for Java, on 7 browser setups, through one Browser interface. Running both engines exposed a Chrome password-leak dialog that swallowed clicks on Selenium only; the fix lives in the Factory and a test keeps it there.
Historical repository or workflow evidence
Project | Web & API, CI/CD
Sign-in, products, cart and checkout pages with a data-testid on every element a test needs, and the same catalog through REST/JSON, a…
-A small shop I control, so my frameworks never depend on a public demo site: each CI job starts a fresh copy from a Docker image in seconds. 19 JUnit tests and an image smoke test gate every change, and a hosted copy is online for demos.
Historical repository or workflow evidence
Sign-in, a sortable product list, product pages, cart and a two-step checkout, with a data-testid on every element a test needs, and the same…
+A small shop I control, used by four of my frameworks instead of public demo sites: each CI job starts a fresh copy from a Docker image in seconds. 32 JUnit tests and an image smoke test gate every change, and a hosted copy is online for demos.
Historical repository or workflow evidence
Project | Web & API
Five design patterns doing real work in one Java framework: Page Object, Factory (browser and engine), Strategy (JSON, CSV or API test data), Adapter (two browser engines, three catalog APIs) and Observer (reports, logs, metrics and screenshots from test events).
The same 11 UI tests run on Selenium WebDriver and on Playwright for Java, on 7 browser setups, through one Browser interface. Running both engines exposed a Chrome password-leak dialog that swallowed clicks on Selenium only; the fix lives in the Factory and a test keeps it there.
Evidence checked 20 Nov 2026 | CI run on main
The same 13 UI tests run on Selenium WebDriver and on Playwright for Java, on 7 browser setups, through one Browser interface. Running both engines exposed a Chrome password-leak dialog that swallowed clicks on Selenium only; the fix lives in the Factory and a test keeps it there.
Evidence checked 22 Nov 2026 | CI run on main
Pattern names are easy to list and hard to show. Here each pattern solves a problem the framework really has: two browser engines behind one interface, test data that can come from three sources, three catalog APIs that disagree on names and prices, and reporting that must not be called from the tests. Running one set of tests on two engines also turns environment problems into visible differences instead of flaky tests.
run config ──► BrowserFactory ──► Browser (Selenium or Playwright adapter) Factory, Adapter
▲
test ──► LoginPage / ProductsPage ──┘ (no locators or waits in the test) Page Object
└── users, products ◄── TestDataSource (json | csv | api) Strategy
-TestNG ──► TestNgEventBridge ──► TestEventBus ──► report, log, metrics, screenshots Observer| Area | Tools |
|---|---|
| Tests | Java 21, TestNG 7.12, AssertJ: 37 tests (26 unit and API, 11 UI) |
| Engines | Selenium 4.53 (Chrome, Firefox, Edge, Selenium Grid) and Playwright 1.65 for Java (Chromium, Firefox, WebKit) |
| Application | Pattern Shop: pages, REST, SOAP-style XML and a legacy text API |
| CI | GitHub Actions: a core job and 7 UI jobs, each with its own shop container; weekly and on demand |
Project-specific checks and execution details documented in the repository:
Historical repository or workflow evidence
CI run on main
The same 11 UI tests run on Selenium WebDriver and on Playwright for Java, on 7 browser setups, through one Browser interface. Running both engines exposed a Chrome password-leak dialog that swallowed clicks on Selenium only; the fix lives in the Factory and a test keeps it there.
Evidence checked: | Open dated evidence
Static screenshots are labelled as images; dated workflow links identify the execution evidence and its check date.
The first Selenium Chrome run failed every test that clicked twice after signing in, while Playwright's Chromium passed. Chrome's password manager had recognised the demo password from a data breach and opened a dialog that swallowed the next click. The fix went into the Factory, and a unit test keeps it there.
Static material from the public repository. The linked verification record was checked 2026-11-20; that date is not a screenshot capture date.
Dated workflow record
Evidence checked 2026-11-20. Open CI run on main
docker run -d -p 8080:8080 ghcr.io/niranjankagri/pattern-shop-demo-app:latest
+TestNG ──► TestNgEventBridge ──► TestEventBus ──► report, log, metrics, screenshots Observer| Area | Tools |
|---|---|
| Tests | Java 21, TestNG 7.12, AssertJ: 39 tests (26 unit and API, 13 UI) |
| Engines | Selenium 4.53 (Chrome, Firefox, Edge, Selenium Grid) and Playwright 1.65 for Java (Chromium, Firefox, WebKit) |
| Application | Pattern Shop: pages, REST, SOAP-style XML and a legacy text API |
| CI | GitHub Actions: a core job and 7 UI jobs, each with its own shop container; weekly and on demand |
Project-specific checks and execution details documented in the repository:
Historical repository or workflow evidence
CI run on main
The same 13 UI tests run on Selenium WebDriver and on Playwright for Java, on 7 browser setups, through one Browser interface. Running both engines exposed a Chrome password-leak dialog that swallowed clicks on Selenium only; the fix lives in the Factory and a test keeps it there.
Evidence checked: | Open dated evidence
Static screenshots are labelled as images; dated workflow links identify the execution evidence and its check date.
The first Selenium Chrome run failed every test that clicked twice after signing in, while Playwright's Chromium passed. Chrome's password manager had recognised the demo password from a data breach and opened a dialog that swallowed the next click. The fix went into the Factory, and a unit test keeps it there.
Static material from the public repository. The linked verification record was checked 2026-11-22; that date is not a screenshot capture date.
Dated workflow record
Evidence checked 2026-11-22. Open CI run on main
docker run -d -p 8080:8080 ghcr.io/niranjankagri/pattern-shop-demo-app:latest
mvnw.cmd verify -Dsuite=core
mvnw.cmd verify -Dsuite=ui -Dengine=playwright -Dbrowser=webkit -Ddata.source=csvLayers 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.
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.
automation/src/test/java/com/enterprise/automation/testsBusiness-level assertions are grouped by API, UI, database, integration, end-to-end and platform behavior.
automation/src/test/java/com/enterprise/automation/testsKeep selectors, API resources and SQL out of test methods.
automation/src/main/java/com/enterprise/automationProvide the configured local or remote browser and environment-specific settings.
automation/src/main/java/com/enterprise/automation/driverExpose the same shop records through the user interface, REST API and database.
demo-app/src/main/java/com/enterprise/demoappAttach failure diagnostics and per-test context to the run report.
automation/src/main/java/com/enterprise/automation/reporting| Area | Tools |
|---|---|
| Language / build | Java 17, Maven (multi-module) |
| Test runner | TestNG 7.12 |
| UI | Selenium 4 (local and Selenium Grid) |
| API | REST Assured 6, Jackson, JSON Schema validation |
| Database | JDBC (H2), parameterised queries |
| Assertions / data | AssertJ, Datafaker, JSON and CSV files |
| Logging / reporting | SLF4J + Logback per thread and test; Allure 3 |
| Containers | Docker, docker compose, Selenium Grid (hub + Chrome, Firefox, Edge nodes) |
| CI/CD | GitHub Actions, Dependabot, dependency review, Checkstyle |
| Layer | Responsibility | Examples |
|---|---|---|
| Tests | What is checked, in business terms; no Selenium, HTTP or SQL | tests/api, tests/ui, tests/db, tests/integration, tests/e2e |
| Pages, API services, DB queries | One class per screen, API resource or query area; the only place that knows locators, endpoints and SQL | page objects, service objects, query classes |
| Components and clients | Reusable UI components, the REST client, the query executor, waits on real state | ApiClient, QueryExecutor, components |
| Driver and configuration | Browser per thread (local or Grid), layered configuration, secrets from the environment | DriverFactory, configuration loader |
| Execution and evidence | Retry policy for infrastructure failures, logging, Allure steps and attachments | listeners, SecretMasker, Allure |
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.
Verify the same demo-shop business flows across UI, API and database layers.
Separate business assertions from browser, HTTP and SQL access; isolate test data and retain failure evidence.
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.
Project-specific checks and execution details documented in the repository:
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
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.
Static material from the public repository. The linked verification record was checked 2026-11-19; that date is not a screenshot capture date.
Dated workflow record
Evidence checked 2026-11-19. Open Nightly regression #103 on main
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 testsRequirements: JDK 17+, Maven 3.9+, Chrome or Edge; Node.js for the Allure CLI. Full instructions in the README.
Requirements: JDK 17+, Maven 3.9+, Chrome or Edge; Node.js for the Allure CLI. Full instructions in the README.