Creating Webservice TestCases

As of Tricentis Tosca 12.2, the Webservice Engine 3.0 is no longer supported. By default, you cannot create WSE TestCases in API Scan.

For information on how to re-enable scanning WSE TestCases in API Scan, see chapter "Web service".

Create REST or SOAP Webservice TestCases and Modules with the Tosca API Scan as described in chapter "Tricentis Tosca API Scan" and chapter "Create TestCases with API Scan".

Alternatively, you can use two different procedures for creating Webservice TestCases for SOAP Webservices: you can either use the Module Communicate with Web service or you can create a copy of this Module by scanning a WSDL file. The copy already contains all the information required for communication.

As an alternative for REST Webservices, you can only use the Module Communicate with Web service (REST/JSON) or Communicate with Web service and edit it manually.

The Module Communicate with Web service

Messages are sent as requests and received as responses to communicate with Webservices. To reflect this information, the Module Communicate with Web service contains the following ModuleAttributes:

  • Request

    This ModuleAttribute contains the Request to be sent to the server. In the corresponding TestStepValue, either the Specialization Module of the message is used or the resource containing the request is entered.

  • Transform request

    This ModuleAttribute allows the request to be edited prior to being sent (see chapter "Transforming requests and responses").

  • Communicate

    This ModuleAttribute contains all the information that is required for communication.

  • Transform response

    This ModuleAttribute allows the response to be edited prior to being sent (see chapter "Transforming requests and responses").

  • Response

    This ModuleAttribute contains the response that is returned by the server. In the corresponding TestStepValue, either the Specialization Module of the message is used or the resource containing the response is entered.

Module - Communicate with Web service