Skip to content

Test case: Verify checkout functionality with missing username #1337

@kanwaljeetsnagarro

Description

@kanwaljeetsnagarro

Description

Add a test case to verify system behavior when attempting checkout without a username in the session. This is an edge case that should be handled gracefully by the system.

Test Scenario

  1. Access the checkout flow directly without logging in
  2. Attempt to complete checkout without user session
  3. Verify appropriate error handling and user redirection

Acceptance Criteria

  • Test verifies that checkout cannot proceed without a username
  • Test confirms user is redirected to login page
  • Test validates appropriate error message is displayed
  • Test ensures cart contents are preserved after login redirect
  • Test follows existing test structure and uses Page Object Model

Additional Context

  • This test case will help improve system security and user experience
  • Should be added to the existing suite of checkout tests
  • Will help prevent unauthorized access to checkout functionality

Implementation Notes

  • Use TestNG data provider pattern consistent with existing tests
  • Implement in CheckoutTest.java using Page Object Model
  • Add appropriate test data in TestData.xlsx
  • Follow existing error handling and logging patterns

Priority

Medium

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions