<test-case>
Description
Describes the test. Before executing the tests, user data such as clientData
or sessionData
are reset.
Attributes
-
id
: string is the identifier (name) of the test. Optional attribute. -
integration
: boolean determines whether real external services will be called or only mock data will be used for the test. It is similar to theintegration
attribute in the<test>
tag and can override its behavior. The default value is theintegration
attribute value of the<test>
tag.
Child elements
<a>
<context>
<dateTime>
<event>
<mail>
<mockData>
<q>
<random>
<rawRequest>
<request>
<requestData>
<responseData>
<state>
<timeout>
<timeoutReply>
Examples
<test-case id="test 1">
<q>test 1</q>
<a>test response</a>
</test-case>
<test-case id="test 2">
<requestData>
{ "field": "data from the request" }
</requestData>
<q>test 2</q>
<a>Using the requestData tag, you can pass request parameters</a>
<a>data from the request</a>
</test-case>
<test-case id="test 3">
<request>
{
"query": "test 3",
"channelType": "mockTest",
"data": {
"field": "data from the request"
}
}
</request>
<a>mockTest, data from the request</a>
</test-case>