Skip to content

Feature: Iteration tracking for looped tests #148

@TB-1993

Description

@TB-1993

Problem/Opportunity

When a test is run using the --loop x option, the test function is repeatedx amount of times. Internally to the testController it tracks which iteration it is on so it can log each iteration separately. However, the iteration counter is local to the testController's run function and therefore cannot be used in the test itself.

Proposed Solution

Either save the current iteration to a self variable for the test controller or pass it into the testFunction. This would allow users overwriting the test function to write their tests to have access to the current iteration.

Acceptance Criteria (Optional)

  • Users can access the current iteration count of the test from their testFunction.

Additional Notes (Optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions