Webshop Test Automation

Java · Selenium · TestNG

Recreated GitLab pipeline for anonymized Selenium test automation
Professional case studyAnonymized for this portfolio

What the work was about

Important webshop journeys crossed several pages, account states, and dependent systems. Isolated UI checks were not enough.

Situation

Search, product data, enquiries, and checkout needed to be tested as connected journeys.

Objective

Build repeatable regression and make failed CI runs easier to understand.

An anonymized reconstruction of professional engineering work. Names, data, metrics, interfaces, and system details were recreated or abstracted for this portfolio.

From pipeline to evidence

The test job starts the suite. Maven, Surefire, and TestNG then control the browser run and its outputs.

System flow

Pipeline

GitLab CI

Starts build, test, and the subsequent outputs in sequence.

Build job

Maven compile

Compiles the Java test project in the CI runner.

Test job

Prepare the run

Selects the environment, starts the virtual display, and creates evidence directories.

Pipeline → Build job → Test job

01 / 03

My contribution

Analysed critical journeys together

Defined sign-in, search, product data, enquiries, basket, and checkout as checks.

Maintained test data per environment

Spreadsheet values vary by environment while the browser journeys stay unchanged.

Ran headless Chrome in GitLab

Brought TestNG, Allure, screenshots, and logs together in the runner.

Maintained robust selectors

Preferred stable IDs, used CSS deliberately, and reserved XPath for gaps.

What the suite covers

An anonymized overview of the covered business areas
AreaWhy it mattersWhat is checkedEvidence
Access & accountThe correct account state must remain reachable.Sign-in, sign-out, recovery, and protected statesStatus and screenshot
Search & product dataIncorrect results or details can lead to the wrong selection.Search, suggestions, filters, and product attributesAllure and screenshot
Documents & languageProduct details, links, and language must agree.Availability, relationship, and English presentationBrowser state and context
Basket & checkoutQuantity, price, and completion must stay consistent.Quantity rules, visible price, basket, and checkoutAssertions and result file
Contact & enquiryForm or upload information must not be lost.Required fields, consent, upload, and confirmationJourney and screenshot
Dependent statesChanges from another system must reach the webshop.Visible behavior after a controlled state changeBrowser state and diagnostics

Three representative checks

Every example uses invented data.

Compare product data
Compare product data
Starting point

A fictional technical product is prepared in the test environment.

Steps
  1. Search for the product
  2. Filter the result
  3. Open the detail page
  4. Compare details and document relationship
Expected result
  • Result and filter agree
  • The visible core data matches
  • The expected document action is available

Evidence: TestNG status, Allure steps, and screenshot

What a run leaves behind

Recreated GitLab job view with abstracted test output, state, and artifacts
Example view

Job and test result

Status, test output, and artifacts remain available in the CI job.

Simplified CI flow from test data to reporting and monitoring
Example view

CI flow

The path from test run to results stays easy to follow.

Decisions that mattered

Business journey before isolated check

The tests follow the user's goal rather than individual page elements.

Same flow, different data

Environment values change while the browser logic remains reusable.

Failures must stay explainable

Reports, screenshots, and logs remain available after a failed run.

Résumé and contact

My résumé covers more of my experience. I am also easy to reach with questions.