Previous Topic: Recorders and Test GeneratorsNext Topic: Record a Website


Generate a Web Service

You can create a Web Service (XML) test case. Use the Web Service Execution (XML) step to call web service operations in a test case and test the response and request. These web service operations provide the same functionality as the equivalent method calls in the EJB used in Tutorial 7. For more information about the Web Service Execution step, see Web Service Execution (XML) Step in Using CA Application Test.

Ensure you are running the demo server to use this step.

Generating a web service includes the following steps:

  1. Create the Web Service (XML) Step
  2. Create the Web Service Client
  3. Execute the Test Case
Create the Web Service (XML) Step

Follow these steps:

  1. Open the model editor in DevTest Workstation.
  2. Right-click in the model editor window and select Add Steps, Web/Web Services, Web Service Execution (XML).

    A Web Services step is added.

  3. Rename the step addUser in the Step Information area.
  4. Double-click the addUser step.
  5. The Web Service Execution editor opens.
  6. To create an XML document, click New Document.
Create the Web Service Client

Follow these steps:

  1. Enter the location of the WSDL in the WSDL URL field.
    http://WSSERVER:WSPORT/itko-examples/services/UserControlService?wsdl
    
  2. Enter UserControlServiceService in the Service Name field.

    Do not use spaces in the name of the web service.

  3. Enter UserControlServiceService in the Port field.
  4. Select the operation to be tested from the Operation list.
  5. Select the action to be taken on test error: Abort the Test from the On Error list.
Execute the Test Case

Follow these steps:

  1. Click Execute LISA--icon_image_rightarrowingreencircle.

    The test executes and displays the request and response.

  2. To view the request upon execution, click the Request tab.
  3. To view the response upon execution, click the Response tab.