Skip to content

Add unique runID to SuiteRunContext for test suite execution tracking #18

@snytkine

Description

@snytkine

Description

Add a unique runID identifier to SuiteRunContext that is generated when each new instance is created. This runID will uniquely identify a specific test suite execution, enabling execution tracking, logging correlation, and per-run state management.

Requirements

  • Add private final field runID of type String to SuiteRunContext
  • Generate a unique value at the moment the SuiteRunContext instance is created
  • Value must be immutable (cannot be changed after initialization)
  • Value must be thread-safe
  • Provide a getter method to access the runID
  • Each new SuiteRunContext instance must have a different runID

Acceptance Criteria

  • SuiteRunContext has a private final runID field of type String
  • Getter method (e.g., getRunID()) returns the runID value
  • runID is generated automatically in the constructor
  • Field is immutable (final keyword prevents reassignment)
  • Thread-safety is guaranteed (final field is inherently thread-safe)
  • Unit tests verify unique runIDs across multiple instances
  • Javadoc documents the runID field and getter method
  • All constructor calls remain functional

Technical Notes

  • Consider using UUID.randomUUID().toString() for generating unique IDs
  • Alternative: timestamp-based with a counter or random component
  • The runID should be deterministic per instance but unique across instances
  • Consider whether the runID should be included in test execution logs/reports

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions