1 / 6

ETSL Test Cases

Execution Model. Trigger. Event Board. ETSL Test Cases. ETSL Processor. Event Manager. ebMS Testbed Adapter. ebMS Testbed. Candidate MSH. Event Board Architecture. Events. event. @evtype, @id, @temp, @timepost. evproperties. property. @name. content. Event Board Example.

alain
Download Presentation

ETSL Test Cases

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Execution Model Trigger Event Board ETSL Test Cases ETSL Processor Event Manager ebMS Testbed Adapter ebMS Testbed Candidate MSH

  2. Event Board Architecture Events event @evtype, @id, @temp, @timepost evproperties property @name content

  3. 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="20040421-045424Z-00003@61.106.51.198" syncType="asynchronous" type="text/xml"> <mime:MessageContainer Content-Type="text/xml" charset="UTF-8" contentId="20040421-045424Z-00003@61.106.51.198" declaration="true"> …

  4. 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"> …

  5. 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.

  6. 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="20080325-111708Z-00004@192.168.10.116" syncType="asynchronous" type="text/xml"> <mime:MessageContainer Content-Type="text/xml" charset="UTF-8" contentId="20080325-111708Z-00004@192.168.10.116" 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>

More Related