Class CoverageTestContext

java.lang.Object
com.parasoft.coverage.integration.api.CoverageTestContext

public final class CoverageTestContext extends Object
Context returned by the CTP /test/start API for an individual test.
  • Method Details

    • getParallelId

      public String getParallelId()
      Gets the parallel execution identifier used for this test.
      Returns:
      the parallel ID, or null when parallel ID mode is disabled
    • getBaggageHeader

      public String getBaggageHeader()
      Gets the W3C Baggage header value returned by the CTP /test/start API.
      Returns:
      the Baggage header value, or null when CTP did not return one
    • getCurrentTestOperatorIdHeader

      public Map<String,String> getCurrentTestOperatorIdHeader()
      Gets the Baggage header containing the current test-operator-id.
      Returns:
      a map containing the Baggage header name and value, or an empty map when no header value is available