Thank you very much for your
reply. In the project, using
the most simple addition and subtraction service process as a test bpel file, I
am trying to use wsdl4j to parse of bpel, don't know whether suitable or not. For the bpel file and the soap message, I also
need to research, it is a complex project.
<?xml version="1.0" encoding="UTF-8"?><tes:testSuite xmlns:tes="http://www.bpelunit.org/schema/testSuite" xmlns:sam="http://eclipse.org/bpel/sample"> <tes:name>suite.bpts</tes:name> <tes:baseURL>http://localhost:7777/ws</tes:baseURL> <tes:deployment> <tes:put type="fixed" name="CaculatorProcess"> <tes:wsdl>bpelContent/CaculatorProcessArtifacts.wsdl</tes:wsdl> </tes:put> </tes:deployment> <tes:testCases> <tes:testCase name="CaculatorTest" basedOn="client" abstract="false" vary="false"> <tes:clientTrack> <tes:sendReceive service="sam:CaculatorProcessService" port="CaculatorProcessPort" operation="process"> <tes:send service="sam:CaculatorProcessService" port="CaculatorProcessPort" operation="process" fault="false"> <tes:data>dsaf</tes:data> </tes:send> <tes:receive service="sam:CaculatorProcessService" port="CaculatorProcessPort" operation="process" fault="false"> <tes:condition> <tes:expression>//sam:a</tes:expression> <tes:value>4</tes:value> </tes:condition> <tes:condition> <tes:expression>//sam:b</tes:expression> <tes:value>7</tes:value> </tes:condition> <tes:condition> <tes:expression>//sam:type</tes:expression> <tes:value>add</tes:value> </tes:condition> </tes:receive> </tes:sendReceive> </tes:clientTrack> </tes:testCase> </tes:testCases></tes:testSuite>
<?xml version="1.0" encoding="UTF-8" standalone="no"?><definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://eclipse.org/bpel/sample" xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop" xmlns:wsdl="http://add.example.ws" xmlns:wsdl1="http://sub.example.ws" name="CaculatorProcess" targetNamespace="http://eclipse.org/bpel/sample">
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ TYPE DEFINITION - List of types participating in this BPEL process The BPEL Designer will generate default request and response types but you can define or import any XML Schema type and use them as part of the message types. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <plnk:partnerLinkType name="addPLT"> <plnk:role name="addProvider" portType="wsdl:AddService"/> </plnk:partnerLinkType> <plnk:partnerLinkType name="subPLT"> <plnk:role name="subProvider" portType="wsdl1:SubService"/> </plnk:partnerLinkType> <import location="AddService.wsdl" namespace="http://add.example.ws"/> <import location="SubService.wsdl" namespace="http://sub.example.ws"/> <types> <schema xmlns="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://eclipse.org/bpel/sample">
<element name="CaculatorProcessRequest"> <complexType> <sequence> <element name="a" type="double" /> <element name="b" type="double"></element> <element name="type" type="string"></element> </sequence> </complexType> </element>
<element name="CaculatorProcessResponse"> <complexType> <sequence> <element name="result" type="double"/> </sequence> </complexType> </element> </schema> </types>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ MESSAGE TYPE DEFINITION - Definition of the message types used as part of the port type defintions ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <message name="CaculatorProcessRequestMessage"> <part element="tns:CaculatorProcessRequest" name="payload"/> </message> <message name="CaculatorProcessResponseMessage"> <part element="tns:CaculatorProcessResponse" name="payload"/> </message>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PORT TYPE DEFINITION - A port type groups a set of operations into a logical service unit. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- portType implemented by the CaculatorProcess BPEL process --> <portType name="CaculatorProcess"> <operation name="process"> <input message="tns:CaculatorProcessRequestMessage"/> <output message="tns:CaculatorProcessResponseMessage"/> </operation> </portType> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PARTNER LINK TYPE DEFINITION ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <plnk:partnerLinkType name="CaculatorProcess"> <plnk:role name="CaculatorProcessProvider" portType="tns:CaculatorProcess"/> </plnk:partnerLinkType>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BINDING DEFINITION - Defines the message format and protocol details for a web service. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <binding name="CaculatorProcessBinding" type="tns:CaculatorProcess"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <operation name="process"> <soap:operation soapAction="http://eclipse.org/bpel/sample/process"/> <input> <soap:body use="literal"/> </input> <output> <soap:body use="literal"/> </output> </operation> </binding>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SERVICE DEFINITION - A service groups a set of ports into a service unit. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <service name="CaculatorProcessService"> <port binding="tns:CaculatorProcessBinding" name="CaculatorProcessPort"> <soap:address location="http://localhost:8080/ode/processes/Caculator/CaculatorProcess"/> </port> </service></definitions>
--
Sie erhalten diese Nachricht, weil Sie in Google Groups E-Mails von der Gruppe "BPELUnit" abonniert haben.
Wenn Sie sich von dieser Gruppe abmelden und keine E-Mails mehr von dieser Gruppe erhalten möchten, senden Sie eine E-Mail an bpelunit+unsubscribe@googlegroups.com.
Weitere Optionen finden Sie unter https://groups.google.com/d/optout.
Wenn Sie sich von dieser Gruppe abmelden und keine E-Mails mehr von dieser Gruppe erhalten möchten, senden Sie eine E-Mail an bpelunit+u...@googlegroups.com.
Wenn Sie sich von dieser Gruppe abmelden und keine E-Mails mehr von dieser Gruppe erhalten möchten, senden Sie eine E-Mail an bpelunit+unsubscribe@googlegroups.com.
Dear Antonio,
Thank you very much for your
reply and kind help. Now, I
am very interested in the bpel-generator tool, and try to use it. When I
use HelloBPELProcess bpel file, it's very lucky to get the . BPTS file, the
following code:
<tes:testSuite xmlns:sam="http://sample.bpel.org/bpel/sample" xmlns:tes="http://www.bpelunit.org/schema/testSuite"> <tes:name>HelloBPELProcessTest</tes:name>
<tes:baseURL>http://localhost:7777/ws</tes:baseURL> <tes:deployment>
<tes:put name="HelloBPELProcess" type="activebpel"> <tes:wsdl>HelloBPELProcessArtifacts.wsdl</tes:wsdl> <tes:property name="BPRFile">HelloBPELProcess.bpr</tes:property> </tes:put> </tes:deployment> <tes:setUp> <tes:dataSource type="velocity" src="data.vm"> <tes:property name="iteratedVars">HelloBPELProcessRequest</tes:property> </tes:dataSource> </tes:setUp> <tes:testCases> <tes:testCase name="MainTemplate" basedOn="" abstract="false" vary="false"> <tes:clientTrack> <tes:sendReceive service="sam:HelloBPELProcessService" port="HelloBPELProcessPort" operation="process"> <tes:send fault="false"> <tes:template><![CDATA[<s:HelloBPELProcessRequest xmlns:s="http://sample.bpel.org/bpel/sample"><s:input>$HelloBPELProcessRequest</s:input></s:HelloBPELProcessRequest>]]></tes:template> </tes:send> <tes:receive fault="false"/>
</tes:sendReceive> </tes:clientTrack> </tes:testCase> </tes:testCases></tes:testSuite>
I try
to use bpelunit to test this .BPTS file , encountered an error, as shown in the
figure below.
For the
bpel-genertor, can generate specific test cases? as shown in the figure below. And where is the test case generated code?
Project
under "https://neptuno.uca.es/redmine/projects/sources-fm/repository/show/trunk/src", In order to want to look around carafully, I wonder if you have any corresponding
document of project?
Thank you very nuch!
Hongwei Zhou
Wenn Sie sich von dieser Gruppe abmelden und keine E-Mails mehr von dieser Gruppe erhalten möchten, senden Sie eine E-Mail an bpelunit+unsubscribe@googlegroups.com.