Software Testing Engineering / SYSTEM & END-TO-END SMOKE TESTING / TST-025

Journey Selection

Explore concept graph

Materi

Masalah: setiap validasi bank dimasukkan ke browser E2E. CI jadi mahal, rapuh, dan error yang seharusnya mudah dicari di API/SQL malah sulit didiagnosis.

Mulai: pilih dua perjalanan pengguna yang menghasilkan nilai bisnis nyata dan bukti yang benar-benar terlihat.

Peta konsep statis. Ikuti alur teks dari atas ke bawah.
                    High-value user outcomes
                            |
                   2 E2E smoke journeys
                  /                    \
          Login -> Balance       Login -> Transfer -> Receipt
                   \                      /
                    visible business assertions
                            |
               technical failure cases below
                 /       |        |       \
               Unit     API    Contract  Integration
             rounding  errors    drift    DB/timeout

Test stage decision matrix

Scenario Best-fit test stage Why
Login → view balance E2E smoke Authenticated user navigation plus visible balance
Login → transfer → receipt E2E smoke Visible confirmation after multi-step user workflow
Fee rounding Unit Pure arithmetic with deterministic values
Invalid login, negative pagination, malformed JSON API Request/response contracts and validation
Amount schema drift Contract Consumer-provider compatibility
Same-key payment conflict Integration Request replay and persisted state
Bank timeout persists UNKNOWN Integration Real service, bank stub and PostgreSQL

Batas yang disengaja: CS-101 adalah pustaka materi tanpa login maupun aplikasi bank. Kedua perjalanan ini adalah rencana pengujian untuk aplikasi bank hipotetis, belum test browser yang dijalankan. Jangan menambahkan sistem bank atau akun ke CS-101 untuk memenuhi unit pemilihan strategi.

Konsep 1 / 3

Select exactly two valuable end-to-end user journeys with observable outcomes and no unnecessary test duplication.

UI E2E tests are expensive and fragile; excessive coverage obscures the critical release signal.

Mulai dari sini

Write the balance journey in three steps.

Intuisi utama

Select a user-visible cross-system outcome, not one browser test per validation branch.

For a hypothetical bank application, journey one is login → view balance and journey two is login → transfer → receipt. Both cross authentication and navigation to a business outcome visible to a user. The receipt shows a created/PENDING transfer reference, not completed bank settlement. This selection is a design exercise: CS-101 itself is a read-only educational library, with no login or banking UI. The executable fixture checks this proposed selection; it does not launch a browser.

Contoh bertahap

An engineer proposes a browser E2E for every pagination and currency validation error.

  1. List two highest-value full user tasks: balance access and transfer receipt.

    Mengapa: These combine important behavior that a single API assertion cannot prove from the user's perspective.

    Hasil yang diharapkan: Two distinct, end-user-observable journeys.

  2. Write visible end conditions for each one.

    Mengapa: An E2E smoke must prove the user reached the intended outcome.

    Hasil yang diharapkan: Balance amount visible; receipt reference and PENDING status visible.

Konsep 2 / 3

Classify complex validation and failure cases into unit, API, contract or service-integration tests rather than E2E.

A lower-level test often reproduces a failure more reliably, with faster diagnostics and isolated dependencies.

Mulai dari sini

Pick one failure case and name the layer that can verify its invariant.

Intuisi utama

Place the assertion at the cheapest real boundary that can observe the failure.

Decimal rounding belongs to unit tests. Unsupported pagination and invalid amounts belong to API tests. OpenAPI field-type drift belongs to contract testing. Idempotency key replay and provider timeout/UNKNOWN persistence belong to real service and database integration tests. These choices build on TST-019 through TST-024 and should not be duplicated as browser E2E matrix rows. API/integration tests remain necessary alongside two browser journeys.

Contoh bertahap

The provider times out after receiving a debit; QA suggests 15 browser cases to inspect UNKNOWN outcomes.

  1. Identify whether browser navigation is essential to observe the failure.

    Mengapa: Provider timeout and persisted state are primarily service-boundary contracts.

    Hasil yang diharapkan: The failure can be proven through HTTP requests, stub call counts and SQL rows.

  2. Assign the provider timeout case to service integration, and field-type drift to contract tests.

    Mengapa: Keep E2E tests narrowly focused on visible user journey outcomes.

    Hasil yang diharapkan: All technical edge cases have an owner below E2E.

Konsep 3 / 3

Distinguish a two-journey smoke gate from the broad regression suite and from business acceptance criteria.

If all tests are called E2E or acceptance, a team cannot keep CI fast or interpret failures.

Mulai dari sini

Write the user-visible acceptance criterion for balance and receipt.

Intuisi utama

Smoke = critical narrow release signal; regression = broader change protection; acceptance = observable business criteria across layers.

The two chosen journeys are proposed browser smoke cases for a future bank UI. Their acceptance conditions are 'balance visible for an authenticated account' and 'receipt reference/status visible after transfer'. Regression cases include unit/API/contract/integration tests for rounding, auth, invalid amount, pagination, idempotency, drift and timeout persistence. For the bank mutation journey, seed a unique test account and fake external provider; avoid production credentials and shared mutable accounts. Browser automation and any real bank UI are intentionally deferred to TST-026 and later.

Contoh bertahap

A smoke suite fails because the transfer test reuses an account changed by the previous test.

  1. Use a dedicated seeded account per mutating scenario and isolate browser state.

    Mengapa: Tests must not depend on execution order or prior balances.

    Hasil yang diharapkan: Two journeys can run independently.

  2. Define release smoke separately from broad regression and acceptance statements.

    Mengapa: Different evidence tiers answer different questions.

    Hasil yang diharapkan: Two proposed E2E smoke journeys, multiple lower-level regression checks, and two visible acceptance conditions.

Sumber primer

Sumber

Cross-domain connections

Curated relationships for this unit at G1. Proposed edges are suggestions, not prerequisites.

Concept connectionsG1 · 3 visible concepts · 3 curated links
100%

Dashed = proposed relationship; solid = reviewed connection. Only reviewed prerequisites constrain a learning path. Keyboard and text links remain available.