Class CoverageIntegration
java.lang.Object
com.parasoft.coverage.integration.api.CoverageIntegration
Utility methods for user tests and applications under test that need access
to the current Parasoft coverage integration context.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic CoverageApiClientCreates a coverage API client fromcoverage-integration.propertiesand system properties.static StringReturns the value to use for the Baggage HTTP header for the currently executing test.Returns the Baggage HTTP header that contains the currenttest-operator-idreturned by the CTP/test/startAPI.
-
Field Details
-
BAGGAGE_HEADER_NAME
Name of the HTTP header that carries W3C baggage.- See Also:
-
TEST_OPERATOR_ID_BAGGAGE_KEY
W3C baggage key used for the current test operator identifier.- See Also:
-
-
Method Details
-
createApiClient
Creates a coverage API client fromcoverage-integration.propertiesand system properties.This is intended for rare standalone use cases, such as a
mainmethod or custom test harness. JUnit users should prefer the JUnit integration modules.- Returns:
- a coverage API client
-
getBaggageHeader
Returns the value to use for the Baggage HTTP header for the currently executing test.- Returns:
- the Baggage header value returned by the CTP
/test/startAPI, ornullwhen no baggage value applies to the current test
-
getCurrentTestOperatorIdHeader
Returns the Baggage HTTP header that contains the currenttest-operator-idreturned by the CTP/test/startAPI.- Returns:
- a map containing the
Baggageheader name and value, or an empty map when no current test operator ID applies to the current test
-