<test>
Description
Required root element of the xml
-file.
Attributes
integration
: boolean — defines the use of real http-calls in tests. Iftrue
, real http calls will be made instead of using the data defined in the<mockData>
tags.false
by default.
Child elements
How to use
<test>
<test-case>
<q>question 1</q>
<a>answer 1</a>
</test-case>
</test>
<test>
<mockData>
<query method="get">http://number.example.com/</query>
<response type="text">42</response>
</mockData>
<test-case>
<q>number</q>
<a>number from server: 42<a>
</test-case>
</test>
<test integration="true">
<test-case>
<q>number</q>
<a>number from server: 36<a>
</test-case>
</test>