Lesson 3: Testing a transformation service

In this lesson, you test a transformation service, using sample data from an XML file.

Before you start this lesson, complete “Lesson 2: Defining mapping for a transformation service”.

  1. Select the Test tab at the bottom of the Transformation Service editor.

  2. In the first row of the Instance Document Selection table, click the button with three dots (ellipsis) in the Instance column.

  3. Select the test data file %PROJECT_DIR%\MySybStore_Tutorials\ Services\Transformation\TestData\DesignTime\RestockMessage.xml and click Open. %PROJECT_DIR% is where your personal WorkSpace files are stored.

  4. Click Test in the Instance Document Selection pane.

    If the transformation mapping is correct, these results appear in the Test Results pane:

    <sy1:SimpleTypes xmlns:sy1="http://sybase.com/workspace/
         tutorials/sybstore/schemas">
    <sy1:StringValue>3items of productA6459need to be
         restocked</sy1:StringValue>
    <sy1:FloatValue>0.0</sy1:FloatValue>
    <sy1:IntegerValue>0</sy1:IntegerValue>
    </sy1:SimpleTypes>
    

    The tested transformation service can be consumed in a business process service.

  5. Select File|Close from the main menu bar to close the Transformation Service editor.