| Author: | Buddhika Chamith |
|---|---|
| Version: | 2009-07-22 |
In the second part of this two part tutorial, how to unit test a process inclusive partner service calls will be covered. Since this will be an extension of the first part of the tutorial it is assumed you have completed the first part of this tutorial and have the test suite project available for modification.
This time we will be using a different input to the process with different language codes so that the process will invoke the external translator service. The completed test project can be found here.

Add... button of Test Cases and Tracks section.Test Cases and Tracks section.Add... button in the activities section. Choose the Send/Receive Synchronous activity and confirm.Send/Receive Synchronous dialog if they are not already filled out automatically.| Service: | Translator |
| Port: | TranslatorPort |
| Operation: | process |
"Data to be sent" text area of the dialog box.
<TranslatorProcessRequest(Greetings translated to German is Gruß)
xmlns="http://www.se.uni-hannover.de/soa08/tutorial/TranslatorProcess"> <From>GE</From> <To>EN</To> <Text>Gruß</Text> </TranslatorProcessRequest>
//tran:TranslatorProcessResponse/tran:Text
as the XPath query and 'Greetings' as the expected value. Please be aware of the quotes that are necessary to denote that Greetings is an XPath string. Your dialog should then look like in the following figure:

"Test Cases and Tracks" section. "Activities" section. 
Next button. Copy and paste the following to the Data to
be sent text area of the dialog.
<TranslateResponse
xmlns="http://www.se.uni-hannover.de/soa08/tutorial/TranslatorService"> <Text>Greetings</Text> </TranslateResponse>



Last Update: 2009-07-27 by Buddhika Chamith
Webmaster
© 2004-2010 Fachgebiet Software Engineering
Impressum
|