OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

ebxml-iic message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: [ebxml-iic] Scripting for interop test cases



>Jacques and all,


  Attached is HTML rendering of scripted 10 interop test cases defined by 
Steve Yung.

MIke


Title: ebXML Test Suite Author: Michael Kass Organization: NIST Date: 10/20/2002 Version 0.4 This file was provided by the National Institute of Standards and Technology. This software can be redistributed and/or modified freely provided that any derivative works bear some notice that they are derived from it, and any modified versions bear some notice that they have been modified.

OASIS/ebXML MS 2.0 Interoperability Test Suite

Test Object

ID

Description

Mode

Operation

Configuration

Message Expression

Test Case urn:TestCase:id:1.1Basic exchange, no payloadurn:config:cpa_basic
TestStep1Driver
Send basic message headerPutMessage
<MIME:Message>
<MIME:MessageContainer>
<SOAP:Envelope>
<SOAP:Header>
<eb:MessageHeader eb:Action="Dummy">
<eb:CPAId></eb:CPAId>
</eb:MessageHeader>
</SOAP:Header>
</SOAP:Envelope>
</MIME:MessageContainer>
</MIME:Message>
TestStep2Driver
Correlate returned messageGetMessage/TEST:PersistStore/MIME:Message[MIME:Container[1]/SOAP:Envelope/SOAP:Header/eb:MessageHeader[ eb:CPAId='cpa_basic' and eb:ConversationebTest:id=$ConversationId and eb:RefToMessageebTest:id=$RefToMessageId ]]
AssertionVerify that an ebXML message is returnedVerifyContent/MIME:Message[MIME:MessageContainer[1]/SOAP:Envelope/SOAP:Header/eb:MessageHeader]
Test Case urn:TestCase:id:1.2Basic asyncronous exchange with one payloadurn:config:cpa_basic
TestStep1Driver
Send basic message headerPutMessage
<MIME:Message>
<MIME:MessageContainer>
<SOAP:Envelope>
<SOAP:Header>
<eb:MessageHeader eb:Action="Reflector">
<eb:CPAId></eb:CPAId>
</eb:MessageHeader>
</SOAP:Header>
<SOAP:Body>
<eb:Manifest>
<eb:Reference xlink:href="cid:payload_1" />
</eb:Manifest>
</SOAP:Body>
</SOAP:Envelope>
</MIME:MessageContainer>
</MIME:Message>
Add content-id and payload to MIME messageSetPayload Content-ID="cid:payload_1 " messageRef=" urn:MessagePayload:payload_1"
TestStep2Driver
Correlate returned messagesGetMessage/TEST:PersistStore/MIME:Message[MIME:Container[1]/SOAP:Envelope/SOAP:Header/eb:MessageHeader[ eb:CPAId='cpa_basic' and eb:ConversationebTest:id=$ConversationId and eb:RefToMessageebTest:id=$RefToMessageId ]]
AssertionCheck for returned payloadVerifyContent/MIME:Message[MIME:MessageContainer[1]/SOAP:Body/eb:Manifest/eb:Reference[@xlink:href='']]
Find payload in messageGetPayload/MIME:Message/MIME:Container[@Content-Id = 'cid:payload_1']
AssertionVerify returned payload contentsVerifyContentj6lwx3rvEPO0vKtMup4NbeVu8nk=
Test Case urn:TestCase:id:1.3Basic exchange with three payloadsurn:config:cpa_basic
TestStep1Driver
Send basic message headerPutMessage
<MIME:Message>
<MIME:MessageContainer>
<SOAP:Envelope>
<SOAP:Header>
<eb:MessageHeader eb:Action="Reflector">
<eb:CPAId></eb:CPAId>
</eb:MessageHeader>
</SOAP:Header>
<SOAP:Body>
<eb:Manifest>
<eb:Reference xlink:href="cid:payload_1" />
<eb:Reference xlink:href="cid:payload_2" />
<eb:Reference xlink:href="cid:payload_3" />
</eb:Manifest>
</SOAP:Body>
</SOAP:Envelope>
</MIME:MessageContainer>
</MIME:Message>
Add content-id and payload to MIME messageSetPayload Content-ID="cid:payload_1 " messageRef=" urn:MessagePayload:payload_1"
Add content-id and payload to MIME messageSetPayload Content-ID="cid:payload_2 " messageRef=" urn:MessagePayload:payload_2"
Add content-id and payload to MIME messageSetPayload Content-ID="cid:payload_3 " messageRef=" urn:MessagePayload:payload_3"
TestStep2Driver
Correlate returned messagesGetMessage/TEST:PersistStore/MIME:Message[MIME:Container[1]/SOAP:Envelope/SOAP:Header/eb:MessageHeader[ eb:CPAId='cpa_basic' and eb:ConversationebTest:id=$ConversationId and eb:RefToMessageebTest:id=$RefToMessageId ]]
AssertionCheck for returned payloadVerifyContent/MIME:Message[MIME:MessageContainer[1]/SOAP:Body/eb:Manifest/eb:Reference[@xlink:href='']]
Find payload in messageGetPayload/MIME:Message/MIME:Container[@Content-Id = 'cid:payload_1']
AssertionVerify returned payload contentsVerifyContentj6lwx3rvEPO0vKtMup4NbeVu8nk=
Find payload in messageGetPayload/MIME:Message/MIME:Container[@Content-Id = 'cid:payload_2']
AssertionVerify returned payload contentsVerifyContentj6lwx3rvEPO0vKtMup4NbeVu8nk=
Find payload in messageGetPayload/MIME:Message/MIME:Container[@Content-Id = 'cid:payload_3']
AssertionVerify returned payload contentsVerifyContentj6lwx3rvEPO0vKtMup4NbeVu8nk=
Test Case urn:TestCase:id:1.4Basic exchange with Error Messageurn:config:cpa_basic
TestStep1Driver
MessageHeader mustUnderstand set to 'true'PutMessage
<MIME:Message>
<MIME:MessageContainer>
<SOAP:Envelope>
<SOAP:Header>
<eb:MessageHeader eb:Action="Dummy">
<eb:CPAId></eb:CPAId>
<eb:ExtensionLement SOAP:mustUnderstand="true" />
</eb:MessageHeader>
</SOAP:Header>
</SOAP:Envelope>
</MIME:MessageContainer>
</MIME:Message>
TestStep2Driver
Correlate returned messagesGetMessage/TEST:PersistStore/MIME:Message[MIME:Container[1]/SOAP:Envelope/SOAP:Header/eb:MessageHeader[eb:CPAId='cpa_basic' and eb:ConversationebTest:id=$ConversationId and eb:MessageData/RefToMessageebTest:id=$RefToMessageId ]]
AssertionTest if Error is generatedVerifyContentMIME:Message[MIME:MessageContainer[1]/SOAP:Envelope/SOAP:Body/SOAP:Fault/SOAP:Code[SOAP:Value='MustUnderstand']]
Test Case urn:TestCase:id:1.5Signed message with key infourn:config:cpa_basic
TestStep1Driver
Send basic message headerPutMessage
<MIME:Message>
<MIME:MessageContainer>
<SOAP:Envelope>
<SOAP:Header>
<eb:MessageHeader eb:Action="Reflector">
<eb:CPAId></eb:CPAId>
</eb:MessageHeader>
</SOAP:Header>
<SOAP:Body>
<eb:Manifest>
<eb:Reference xlink:href="cid:payload_1" />
</eb:Manifest>
</SOAP:Body>
</SOAP:Envelope>
</MIME:MessageContainer>
</MIME:Message>
Add content-id and payload to MIME messageSetPayload Content-ID="cid:payload_1 " messageRef=" urn:MessagePayload:payload_1"
DSigncid:payload_1
TestStep2Driver
Correlate returned messagesGetMessage/TEST:PersistStore/MIME:Message[MIME:Container[1]/SOAP:Envelope/SOAP:Header/eb:MessageHeader[ eb:CPAId='cpa_basic' and eb:ConversationebTest:id=$ConversationId and eb:RefToMessageebTest:id=$RefToMessageId ]]
AssertionCheck for returned payloadVerifyContent/MIME:Message[MIME:MessageContainer[1]/SOAP:Body/eb:Manifest/eb:Reference[@xlink:href='']]
Find payload in messageGetPayload/MIME:Message/MIME:Container[@Content-Id = 'cid:payload_1']
AssertionVerify returned payload contentsVerifyContentj6lwx3rvEPO0vKtMup4NbeVu8nk=
Test Case urn:TestCase:id:1.6Signed message without key infourn:config:cpa_basic_no_key_info
TestStep1Driver
Send basic message headerPutMessage
<MIME:Message>
<MIME:MessageContainer>
<SOAP:Envelope>
<SOAP:Header>
<eb:MessageHeader eb:Action="Reflector">
<eb:CPAId></eb:CPAId>
</eb:MessageHeader>
</SOAP:Header>
<SOAP:Body>
<eb:Manifest>
<eb:Reference xlink:href="cid:payload_1" />
</eb:Manifest>
</SOAP:Body>
</SOAP:Envelope>
</MIME:MessageContainer>
</MIME:Message>
Add content-id and payload to MIME messageSetPayload Content-ID="cid:payload_1 " messageRef=" urn:MessagePayload:payload_1"
DSign""
TestStep2Driver
Correlate returned messagesGetMessage/TEST:PersistStore/MIME:Message[MIME:Container[1]/SOAP:Envelope/SOAP:Header/eb:MessageHeader[ eb:CPAId='cpa_basic' and eb:ConversationebTest:id=$ConversationId and eb:RefToMessageebTest:id=$RefToMessageId ]]
AssertionCheck for returned payloadVerifyContent/MIME:Message[MIME:MessageContainer[1]/SOAP:Body/eb:Manifest/eb:Reference[@xlink:href='']]
Find payload in messageGetPayload/MIME:Message/MIME:Container[@Content-Id = 'cid:payload_1']
AssertionVerify returned payload contentsVerifyContentj6lwx3rvEPO0vKtMup4NbeVu8nk=
Test Case urn:TestCase:id:1.7Basic syncronous exchange with one payloadurn:config:cpa_basic
TestStep1Driver
Send basic message header with SyncReply PutMessage
<MIME:Message>
<MIME:MessageContainer>
<SOAP:Envelope>
<SOAP:Header>
<eb:MessageHeader eb:Action="Reflector">
<eb:CPAId></eb:CPAId>
</eb:MessageHeader>
<eb:SyncReply />
</SOAP:Header>
<SOAP:Body>
<eb:Manifest>
<eb:Reference xlink:href="cid:payload_1" />
</eb:Manifest>
</SOAP:Body>
</SOAP:Envelope>
</MIME:MessageContainer>
</MIME:Message>
Add content-id and payload to MIME messageSetPayload Content-ID="cid:payload_1 " messageRef=" urn:MessagePayload:payload_1"
TestStep2Driver
Correlate returned messagesGetMessage asycronous="false" /TEST:PersistStore/MIME:Message[MIME:Container[1]/SOAP:Envelope/SOAP:Header/eb:MessageHeader[ eb:CPAId='cpa_basic' and eb:ConversationebTest:id=$ConversationId and eb:RefToMessageebTest:id=$RefToMessageId ]]
AssertionCheck for returned payloadVerifyContent/MIME:Message[MIME:MessageContainer[1]/SOAP:Body/eb:Manifest/eb:Reference[@xlink:href='']]
Find payload in messageGetPayload/MIME:Message/MIME:Container[@Content-Id = 'cid:payload_1']
AssertionVerify returned payload contentsVerifyContentj6lwx3rvEPO0vKtMup4NbeVu8nk=
Test Case urn:TestCase:id:1.8Test unsigned AckRequested message with unsigned Acknowledgmenturn:config:cpa_basic
TestStep1Driver
Send basic message with AckRequested elementPutMessage
<MIME:Message>
<MIME:MessageContainer>
<SOAP:Envelope>
<SOAP:Header>
<eb:MessageHeader eb:Action="Dummy">
<eb:CPAId></eb:CPAId>
</eb:MessageHeader>
<eb:AckRequested />
</SOAP:Header>
<SOAP:Body>
<eb:Manifest>
<eb:Reference xlink:href="cid:payload_1" />
</eb:Manifest>
</SOAP:Body>
</SOAP:Envelope>
</MIME:MessageContainer>
</MIME:Message>
TestStep2Driver
Correlate returned messagesGetMessage/TEST:PersistStore/MIME:Message[MIME:Container[1]/SOAP:Envelope/SOAP:Header/eb:MessageHeader[ eb:CPAId='cpa_basic' and eb:ConversationebTest:id=$ConversationId and eb:MessageData/RefToMessageebTest:id=$RefToMessageId and ../eb:Acknowledgment]]
AssertionVerify that no Error is returnedVerifyContent/MIME:Message[not MIME:MessageContainer[1]/SOAP:Envelope/SOAP:Header/eb:ErrorList]
AssertionVerify that no SOAP fault is generated for warningsVerifyContent/MIME:Message[not MIME:MessageContainer[1]/SOAP:Envelope/SOAP:Body[not SOAP:Fault]]
AssertionVerify that only one Acknowledgment was returnedVerifyContent/MIME:Message[[MIME:MessageContainer[1]/SOAP:Envelope/eb:MessageHeader/eb:Acknowledgment]count()=1]
Test Case urn:TestCase:id:1.9Test signed AckRequested message with signed Acknowledgmenturn:config:cpa_basic
TestStep1Driver
Send basic message with AckRequested ( signed = 'true' ) element, and signed payloadPutMessage
<MIME:Message>
<MIME:MessageContainer>
<SOAP:Envelope>
<SOAP:Header>
<eb:MessageHeader eb:Action="Dummy">
<eb:CPAId></eb:CPAId>
</eb:MessageHeader>
<eb:AckRequested eb:signed="true" />
</SOAP:Header>
<SOAP:Body>
<eb:Manifest>
<eb:Reference xlink:href="cid:payload_1" />
</eb:Manifest>
</SOAP:Body>
</SOAP:Envelope>
</MIME:MessageContainer>
</MIME:Message>
Add content-id and payload to MIME messageSetPayload Content-ID="cid:payload_1 " messageRef=" urn:MessagePayload:payload_1"
Sign messageDSign""
TestStep2Driver
Correlate returned messagesGetMessage/TEST:PersistStore/MIME:Message[MIME:Container[1]/SOAP:Envelope/SOAP:Header/eb:MessageHeader[ eb:CPAId='cpa_basic' and eb:ConversationebTest:id=$ConversationId and eb:MessageData/RefToMessageebTest:id=$RefToMessageId and ../eb:Acknowledgment]]
AssertionVerify that no Error is returnedVerifyContent/MIME:Message[not MIME:MessageContainer[1]/SOAP:Envelope/SOAP:Header/eb:ErrorList]
AssertionVerify that no SOAP fault is generated for warningsVerifyContent/MIME:Message[not MIME:MessageContainer[1]/SOAP:Envelope/SOAP:Body[not SOAP:Fault]]
AssertionVerify that only one Acknowledgment was returnedVerifyContent/MIME:Message[[MIME:MessageContainer[1]/SOAP:Envelope/eb:MessageHeader/eb:Acknowledgment]count()=1]
AssertionValidate Acknowledgment SignatureValidateContent/MIME:Messag/[MIME:MessageContainer[1]/SOAP:Envelope/eb:MessageHeader/eb:Acknowledgment
Test Case urn:TestCase:id:1.10Test unsigned AckRequested message with unsigned Acknowledgmenturn:config:cpa_basic
TestStep1Driver
Send basic message with AckRequested elementPutMessage
<MIME:Message>
<MIME:MessageContainer>
<SOAP:Envelope>
<SOAP:Header>
<eb:MessageHeader eb:Action="Dummy">
<eb:CPAId></eb:CPAId>
</eb:MessageHeader>
<eb:AckRequested />
</SOAP:Header>
<SOAP:Body>
<eb:Manifest>
<eb:Reference xlink:href="cid:payload_1" />
</eb:Manifest>
</SOAP:Body>
</SOAP:Envelope>
</MIME:MessageContainer>
</MIME:Message>
TestStep2Driver
Correlate returned messagesGetMessage asycronous="false" /TEST:PersistStore/MIME:Message[MIME:Container[1]/SOAP:Envelope/SOAP:Header/eb:MessageHeader[ eb:CPAId='cpa_basic' and eb:ConversationebTest:id=$ConversationId and eb:MessageData/RefToMessageebTest:id=$RefToMessageId]]
AssertionVerify that no Error is returnedVerifyContent/MIME:Message[not MIME:MessageContainer[1]/SOAP:Envelope/SOAP:Header/eb:ErrorList]
AssertionVerify that no SOAP fault is generated for warningsVerifyContent/MIME:Message[not MIME:MessageContainer[1]/SOAP:Envelope/SOAP:Body[not SOAP:Fault]]
AssertionVerify that only one Acknowledgment was returnedVerifyContent/MIME:Message[[MIME:MessageContainer[1]/SOAP:Envelope/eb:MessageHeader/eb:Acknowledgment]count()=1]


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC