Re: Cannot see how test insert-005 can pass...

Thanks to everyone for their comments, I have updated my Test Suite
framework to properly handle multiple documents in the output,
although I'll probably have to check that the inputs are working in
the same way too.

Regards

Philip Fennell



2009/3/19  <Toman_Vojtech@emc.com>:
>> Jim,
>>
>> Thanks for your comments too.
>>
>> Is it not the case though that all outputs are documents (individual
>> or sequences) and that in all tests that don't explicitly use the
>> t:document its presence is implied?
>>
>> If so, that isn't made explicit in the documentation.
>
> Inputs/Outputs of a test are always documents (zero or more). If it is
> only one document, you don't have to use t:document:
>
> <t:input port='source'>
>  <doc>
> </t:input>
>
> Is the same as:
>
> <t:input port='source'>
>  <t:document><doc></t:document>
> </t:input>
>
> However, if you want to pass multiple documents as input (or check for
> multiple documents on the output), you will have to use t:document:
>
> <t:input port='source'>
>  <t:document><doc></t:document>
>  <t:document><doc></t:document>
>  <t:document><doc></t:document>
> </t:input>
>
> Regards,
> Vojtech
>
>

Received on Thursday, 19 March 2009 08:55:26 UTC