Type References for Filter functions
This page provides detailed descriptions of the various TypeScript types used in the HyperTest CLI's filtering functions:
filterFunctionToIgnoreMockDiffs andfilterFunctionToIgnoreResponseDiffs
to help users identify and ignore known non-critical differences in mocks and responses.
MockDifferenceType
Defines the types of differences that can be identified between the recorded and replayed mocks:
enum MockDifferenceType {
MOCK_NOT_USED,
MOCK_NOT_FOUND,
MOCK_FORCE_MATCHED,
// Instrumentation mock diff types
INSTRUMENTATION_MOCK_INPUT_KEY_REMOVED,
INSTRUMENTATION_MOCK_INPUT_KEY_ADDED,
INSTRUMENTATION_MOCK_INPUT_VALUE_MODIFIED,
INSTRUMENTATION_MOCK_INPUT_DATA_TYPE_CHANGED,
INSTRUMENTATION_MOCK_INPUT_LIST_ORDER_CHANGED,
INSTRUMENTATION_MOCK_INPUT_LIST_ORDER_CHANGED_KEY_REMOVED,
INSTRUMENTATION_MOCK_INPUT_LIST_ORDER_CHANGED_KEY_ADDED,
INSTRUMENTATION_MOCK_INPUT_LIST_ORDER_CHANGED_VALUE_MODIFIED,
INSTRUMENTATION_MOCK_INPUT_LIST_ORDER_DATA_TYPE_CHANGED,
INSTRUMENTATION_MOCK_INPUT_LIST_ITEMS_ADDED,
INSTRUMENTATION_MOCK_INPUT_LIST_ITEMS_REMOVED,
INSTRUMENTATION_MOCK_INPUT_LIST_ITEMS_MODIFIED,
INSTRUMENTATION_MOCK_INPUT_KEY_MODIFIED,
INSTRUMENTATION_MOCK_INPUT_VALUE_REMOVED,
INSTRUMENTATION_MOCK_INPUT_VALUE_ADDED,
INSTRUMENTATION_MOCK_INPUT_DATA_TYPE_MODIFIED,
}DifferenceType
Defines the types of differences identified between the expected and actual responses:
DifferenceSection
Categorizes the type of difference detected:
RequestType
Represents the type of request that is being tested:
BodyType
Defines the body format used in the requests, such as JSON, Multipart, or Raw:
HtGraphqlOpType
Represents the type of GraphQL operation in a GraphQL request:
HtRawEncoding
Specifies the encoding used for the message in a request's payload or response:
OutputStatus
Defines the status of the mock or response:
MockDifference
Describes the structure of the mock difference object, capturing the details of the difference between the original and replayed mocks:
ResponseDifference
Describes the structure of the response difference object, capturing details of the difference between the expected and actual responses:
currentMock Type
The Mock represents the original mock that was recorded during testing.
Type Definition:
requestObj Types
HTTP Request Object
Describes the components of an HTTP request recorded during testing:
GraphQL Request Object
Describes the components of a GraphQL request recorded during testing:
GRPC Request Object
Describes the components of a GRPC request recorded during testing:
Kafka Request Object
Describes the components of a Kafka request recorded during testing:
AMQP Request Object
Describes the components of an AMQP request recorded during testing:
Last updated