Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WBRIDGE and version 7.7.1
Div
Classe2e-refDiv

Otp
Floatingfalse
maxHLevel2

Rp

SOAP Test Tool

...

Analyzer

...

Bridge REST Test Tool

To test REST services, you can use the embedded SOAP Test Tool, the E2E Analyzer, and the Bridge 6.0.55.2E2E Bridge REST Test Tool.

Testing the REST Methods via Their SOAP Port

The E2E Builder provides SOAP trace ports for each REST service.

...

Run the REST service in the E2E Embedded Runtime. You can test the implementation of the REST methods with the SOAP Test tool as described on Working with the Test Cases View pp. You also can use the Interactive Debugger to track down errors. How to use the Interactive Debugger is described on Interactive Debugger pp.

Additionally, you can access the E2E Bridge REST Test Tool via the E2E Builder. If the xUML service is running on the E2E embedded Runtime, switch to Run View, select the REST port type from the list and click Open.Figure: Accessing the REST Test Tool via the E2E Builder

For a detailed description of the E2E Bridge REST Test Tool refer to section Testing the REST Interface with the E2E Bridge REST Test Tool further below.

Testing the REST Methods with the

...

Analyzer

Opening the REST Builder project with the Analyzer, you can use the SOAP ports to test the implementation of the REST methods with the Trace Analyzer and the Regression Test Tool just the way you are used to (see also Analyzer User's Guide).

The E2E REST example comes with predefined test cases and regression tests. You can just open them with the E2E Analyzer and try them out.

...

Hint: There is a service setting regarding the support case id: Generate unique support case ID on server (true) or client (false). Set it to false so the id given from the test cases will be used.
If you leave this setting to true, all tests will be red due to divergent ids.

Testing the REST Interface with the

...

Bridge REST Test Tool

The E2E Bridge as of above mentioned version provides an OpenAPI 2.0 Specification for documentation and testing purposes. Via a link on the xUML service page, you can access a REST service documentation page where you can inspect the service interface and make HTTP calls on the service. The information displayed on that page comes from the service descriptor associated to the service.

On the E2E Bridge, go to the xUML service preferences page (see xUML Service Details for more information on how to do this).Figure: Accessing the E2E Bridge REST Test Tool

In section Rest Ports, you find a list of all REST service components and their port types. You can do the following here:

...