Hierarchy

  • Case

Constructors

  • Parameters

    • meta: {
          name: string;
          team?: string;
          suite?: string;
          version?: string;
      }
      • name: string
      • Optional team?: string
      • Optional suite?: string
      • Optional version?: string

    Returns Case

Methods

  • Captures the value of a given variable as a data point for the declared test case and associates it with the specified key.

    Parameters

    • key: string

      name to be associated with the captured data point

    • value: ToucaType

      value to be captured as a test result

    • Optional options: CheckOptions

      comparison rule for this test result

    Returns void

  • Captures an external file as a data point for the declared test case and associates it with the specified key.

    Parameters

    • key: string

      name to be associated with the captured file

    • path: string

      path to the external file to be captured

    Returns void

  • Logs a given value as an assertion for the declared test case and associates it with the specified key.

    Parameters

    • key: string

      name to be associated with the logged test result

    • value: ToucaType

      value to be logged as a test result

    Returns void

  • Adds a given value to a list of results for the declared test case which is associated with the specified key.

    Parameters

    • key: string

      name to be associated with the logged test result

    • value: ToucaType

      element to be appended to the array

    Returns void

  • Increments value of key every time it is executed. creates the key with initial value of one if it does not exist.

    Parameters

    • key: string

      name to be associated with the logged test result

    Returns void

  • Adds an already obtained measurements to the list of captured performance benchmarks.

    Useful for logging a metric that is measured without using this SDK.

    Parameters

    • key: string

      name to be associated with this performance benchmark

    • milliseconds: number

      duration of this measurement in milliseconds

    Returns void

  • Starts timing an event with the specified name.

    Measurement of the event is only complete when function stop_timer is later called for the specified name.

    Parameters

    • key: string

      name to be associated with the performance metric

    Returns void

  • Stops timing an event with the specified name.

    Expects function startTimer to have been called previously with the specified name.

    Parameters

    • key: string

      name to be associated with the performance metric

    Returns void

  • Returns CaseJson

  • Returns Uint8Array