W3C home > Mailing lists > Public > www-xkms@w3.org > August 2004

template for tests

From: Guillermo Álvaro Rey <alvarorg@cs.tcd.ie>
Date: Tue, 17 Aug 2004 15:54:18 +0100
To: www-xkms@w3.org
Message-Id: <1092754458.5073.214.camel@lamb.dsg.cs.tcd.ie>
Hi all,

During last teleconf I agreed to send a template so that others could
contribute with more test scenarios and messages easily. I think this is
quite understandable:

<!-- test "name the test here" -->
<test id="test id here">
  <text>your test description here
  </text>
<message ref="msg/msgTestNumbera.xml"/>
<message ref="msg/msgTestNumberb.xml"/>
</test>

For example, if I am writting a new test scenario similar to the first
one (synchronous locate) but using Two Phase Protocol, I will write
something like:

<!-- test "two phase" -->
<test id="T3">
  <text>
    Two Phase: A client wishes to obtain an encryption key bound to
bob@example.com, so it can be able to send an encrypted mail to Bob. The
client secure email format is S/MIME. The processing mode is two-phase.
The resulting set of messages will consist of two Locate Requests to the
server and two Locate Responses returned.
  </text>
<message ref="msg/msgT3a.xml"/>
<message ref="msg/msgT3b.xml"/>
<message ref="msg/msgT3c.xml"/>
<message ref="msg/msgT3d.xml"/>
</test>

Notice that there are four messages in this case; no problem about that.

And it would be very useful if along with this xml piece and the xml
messages you could indicate what assertions are being covered. For this
two-phase example it could be:

XKMS_2_0_Paragraph_64-majorresultrepresent,
XKMS_2_0_Paragraph_67-respmechanismphase1,
XKMS_2_0_Paragraph_120-resultmajorrepresent
etc.

Talk to you in the call later. I would be pleased to get feedback.

Kind regards,

 - -Guillermo Alvaro
Received on Tuesday, 17 August 2004 14:54:19 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:31:42 UTC