execution model etsl test cases etsl processor (includes case interpreter and monitors) korbit ebms...

6
Execution Model ETSL Test Cases ETSL Processor (includes case interpreter and monitors) KorBIT ebMS Testbed (includes event adapter and eval adaptor) KorBITAdapter Candidate MSH Trigger Event Board 1

Upload: karin-mathews

Post on 05-Jan-2016

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Execution Model ETSL Test Cases ETSL Processor (includes case interpreter and monitors) KorBIT ebMS Testbed (includes event adapter and eval adaptor)

Execution Model

ETSL

Test Cases

ETSL Processor

(includes case interpreter and monitors)

KorBIT ebMS Testbed (includes event adapter and eval adaptor)

KorBITAdapter

Candidate

MSH

Trigger

Event Board

1

Page 2: Execution Model ETSL Test Cases ETSL Processor (includes case interpreter and monitors) KorBIT ebMS Testbed (includes event adapter and eval adaptor)

Event Board Architecture

Events

event

evproperties

property

content

@evtype, @id, @temp, @timepost

@name

2

Page 3: Execution Model ETSL Test Cases ETSL Processor (includes case interpreter and monitors) KorBIT ebMS Testbed (includes event adapter and eval adaptor)

Event Board Example

<?xml version="1.0" encoding="UTF-8"?><Events> <event evtype="Start-Case" id="5c00acfd1498ab17:-2610e26b:118e38309ff:-7f71" temp="false" timepost="2008-03-25-11:17:08KST"> <evproperties> <property name="CaseId">eac_testcase_t1_2_1</property> </evproperties> <content>Processor is created for 'eac_testcase_t1_2_1'.</content> </event> <event evtype="Send Message" id="5c00acfd1498ab17:-2610e26b:118e38309ff:-7f6f" temp="false" timepost="2008-03-25-11:17:09KST"> <evproperties> <property name="conversationId">2b1c8248-5f7b-460f-a8e4-b4d856d3c9b2</property> </evproperties> <content> <TEST:Event xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" xmlns:TEST="http://www.oasis-open.org/tc/ebxml-iic/testing/messageStore" xmlns:eb="http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd" xmlns:mime="http://www.oasis-open.org/tc/ebxml-iic/testing/mime" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.oasis-open.org/tc/ebxml-iic/testing/messageStore"> <mime:Message Content-Type="multipart/related" boundary="----=_Part_3_21153656.1082534064761" start="[email protected]" syncType="asynchronous" type="text/xml"> <mime:MessageContainer Content-Type="text/xml" charset="UTF-8" contentId="[email protected]" declaration="true">

3

Page 4: Execution Model ETSL Test Cases ETSL Processor (includes case interpreter and monitors) KorBIT ebMS Testbed (includes event adapter and eval adaptor)

Test Case Example

<?xml version="1.0" encoding="UTF-8"?><monitor label="eac_testcase_t1_2_1"> <call adapter="org.kiec.gateway.adapter.EbmsTestAdapter" step="step1" type="event"> <param arg="1"> <template document="t_eac_testcase_t1_2_1.xml"> <set value="Get(ConversationId);" var="ConversationId"/> <set value="KORBIT-TESTDRIVER-MSH-GENERAL" var="CPAId"/> <set value="Dummy" var="Action"/> <set value="Get(MessageId);" var="MessageId"/> </template> </param> </call> <sleep duration="2" step="step2"/> <find get="last" step="step3"> <selector> <ns prefix="TEST">http://www.oasis-open.org/tc/ebxml-iic/testing/messageStore</ns> <ns prefix="SOAP">http://schemas.xmlsoap.org/soap/envelope/</ns> <ns prefix="mime">http://www.oasis-open.org/tc/ebxml-iic/testing/mime</ns> <ns prefix="eb">http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd</ns> <xpath>Events/event[@evtype='Receive Message']/content/TEST:Event/mime:Message</xpath> </selector> </find> <cad step="step4"> <ns prefix="eb">http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd</ns> <ns prefix="mime">http://www.oasis-open.org/tc/ebxml-iic/testing/mime</ns> <ns prefix="SOAP">http://schemas.xmlsoap.org/soap/envelope/</ns> <condition language="xpath">//mime:Message[mime:MessageContainer[1]/SOAP:Envelope /SOAP:Header/eb:MessageHeader[eb:Service='urn:ebxml:iic:test']]</condition> <do> <post evtype="Check Service Name" step="step5">

4

Page 5: Execution Model ETSL Test Cases ETSL Processor (includes case interpreter and monitors) KorBIT ebMS Testbed (includes event adapter and eval adaptor)

Issues of implementation

• We created an event board file per a test case. If a test case is selected and executed, KorBIT generates an event board with unique id

and related event information.

• We used only the element defined in the specification. We used the <property> element’s key and value when we need other keys and values.

• The Event Board is a XML file format, So we had a trouble in implementing the Event Manager to process a massive request of posting simultaneously.

We plan to modify the structure of our event board. We believe that we had better use Data base instead of XML file.

• The <content> element contains the XML schema. Since some XML schema file is of large size, it need not be loaded in the event board. So we would like to exclude the content from event board when the content has no meaning.

The e-TSL specification may contain how to exclude the content element and instead may refer to the external content.

5

Page 6: Execution Model ETSL Test Cases ETSL Processor (includes case interpreter and monitors) KorBIT ebMS Testbed (includes event adapter and eval adaptor)

Example of the Difference between specification and implementation[4.1 The Event Model]the <content> element is a wrapper for any document associated with the event.Example: An event may be a SOAP message either sent or received. In that case the <content >element contains the SOAP envelope or a subset of it. In case there are attachments (MIME parts)these may remain external to the event envelope representation, and be referred to. The <content> element in our Testbed contains a whole MIME part.

<content> <TEST:Event xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" xmlns:TEST="http://www.oasis-open.org/tc/ebxml-iic/testing/messageStore" xmlns:eb="http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd" xmlns:mime="http://www.oasis-open.org/tc/ebxml-iic/testing/mime" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.oasis-open.org/tc/ebxml-iic/testing/messageStore"> <mime:Message Content-Type="multipart/related" boundary="----=_Part_19_10700675.1206411428765" start="[email protected]" syncType="asynchronous" type="text/xml"> <mime:MessageContainer Content-Type="text/xml" charset="UTF-8" contentId="[email protected]" declaration="true"> <SOAP:Envelope… </SOAP:Envelope> </mime:MessageContainer> <mime:MessageContainer Content-Type="application/octet-stream" contentId="payload_01"> <Payload> <Payload_1/> </Payload> </mime:MessageContainer> </mime:Message> </TEST:Event> </content>

6