PracticeQAAutomation logoPracticeQAAutomation

📘 Project KT · Insurance

🛡️ SecureLife

Car insurance

Complexity
Advanced
Screens
4
Scenarios
8
Test cases
16

1Business context

SecureLife sells motor insurance online. The business must price policies correctly (IDV, add-ons, no-claim bonus), validate vehicle and owner details strictly, and take payment through a third-party gateway embedded in an iframe.

Vehicle details with dependent dropdowns, plan comparison with an IDV slider and add-on switches, a proposal with nominee, and payment inside an iframe gateway.

2Users & roles

  • 👤 Car owner — gets a quote, fills the proposal, pays and downloads the policy

3Modules & screens

ScreenRouteWhat it does
Quote form/apps/insuranceRegistration number, dependent make/model, fuel, year, claims history
Plans/apps/insurance/quoteThird-party vs comprehensive, IDV slider, add-on switches
Proposal/apps/insurance/proposalOwner and nominee details, declaration, iframe payment
My policies/apps/insurance/policyIssued policy with downloadable document

4Main end-to-end journey

Quote to issued policy

  1. Enter MH12AB1234, Maruti Swift, petrol, 2021
  2. Answer No to previous claims and choose 20% NCB
  3. Get quote, choose Comprehensive with Roadside assistance
  4. Fill owner and nominee details and accept the declaration
  5. Pay inside the gateway iframe with 4111… 12/30 123
  6. Download the policy

Expected: Premium is ₹14,442.00, the policy is issued, and a .txt file named with the policy number downloads

5Business rules & validations

  • Dependent dropdownsBeginner

    vehicle-model is disabled until vehicle-make is chosen, and resets when the make changes.

  • Conditional fieldBeginner

    claim-no reveals ncb; claim-yes hides it and removes the bonus from the premium.

  • Pattern validationIntermediate

    reg-number and owner-dob reject bad formats with error-* messages; under-18 owners fail.

  • Plan comparisonIntermediate

    Assert premium-* for all three plans; third-party disables idv-slider and add-on switches.

  • Range sliderAdvanced

    Move idv-slider (keyboard arrows or fill) and verify idv-value and od-premium change.

  • Iframe paymentAdvanced

    Switch into payment-gateway, test gw-error validation, pay, and switch back to the parent.

  • Cancel in the iframeAdvanced

    gw-cancel closes the gateway and shows payment-cancelled in the parent page.

  • Download policyIntermediate

    download-policy saves a .txt; assert the file name contains the policy number.

6Test data & credentials

URL
/apps/insurance
Reg. format
MH12AB1234
Gateway card
any 16 digits
Owner age
18+ (DD/MM/YYYY)

7Glossary

IDV
Insured Declared Value — the car's insured value; drives the premium
NCB
No-claim bonus discount — only if no previous claims
Payment gateway
Card form hosted in an iframe; supports cancel

8Watch-outs for automation

  • ⚠️Model dropdown is disabled until make is chosen and resets when make changes
  • ⚠️Switch into the payment iframe and back to the parent page
  • ⚠️Owners under 18 are rejected; DOB is DD/MM/YYYY

9Suggested test strategy

1 · Smoke

2

P1 positive and end-to-end cases — run on every build.

2 · Regression

16

All cases, incl. 5 negative and 4 edge — run before release.

3 · End-to-end

3

Full user journeys — run nightly.

Start with these smoke cases

  • SECURELIFE-01 — Buy a motor policy
  • SECURELIFE-E2E-01 — Quote to issued policy