Class CoverageTestContext
java.lang.Object
com.parasoft.coverage.integration.api.CoverageTestContext
Context returned by the CTP
/test/start API for an individual test.-
Method Summary
Modifier and TypeMethodDescriptionGets the W3C Baggage header value returned by the CTP/test/startAPI.Gets the Baggage header containing the currenttest-operator-id.Gets the parallel execution identifier used for this test.
-
Method Details
-
getParallelId
Gets the parallel execution identifier used for this test.- Returns:
- the parallel ID, or
nullwhen parallel ID mode is disabled
-
getBaggageHeader
Gets the W3C Baggage header value returned by the CTP/test/startAPI.- Returns:
- the
Baggageheader value, ornullwhen CTP did not return one
-
getCurrentTestOperatorIdHeader
Gets the Baggage header containing the currenttest-operator-id.- Returns:
- a map containing the
Baggageheader name and value, or an empty map when no header value is available
-