Skip to content
Swarmetry

Web pages and APIs in one scenario

Test what your users really go through: pages, REST and SOAP APIs, GraphQL, gRPC, WebSocket and server-sent events, in one scenario.

What the animation shows

  1. The scenario starts with an HTTP step that logs in.
  2. A GraphQL step lists the products.
  3. A gRPC step reserves the stock.
  4. A WebSocket step follows the cart updates.
  5. A server-sent events step waits for the order status.
  6. A last HTTP step places the order.
  7. All six steps run in the same test.
A scenario whose steps speak HTTP, GraphQL, gRPC, WebSocket and server-sent events.

Protocols

  • HTTP in depth

    Parallel requests, cookies, binary responses, compression, and values extracted with JSONPath, XPath or SOAP envelopes.

  • GraphQL and gRPC

    GraphQL queries and mutations, gRPC calls with reflection or your proto files, with TLS and mutual TLS.

  • WebSocket and events

    Send and listen on WebSocket connections, binary messages and pings included, and read server-sent event streams.

How it works

  1. Choose

    Pick the protocol of each step: a request, a message or a call.

  2. Extract

    Take the values you need from responses and pass them to the next steps.

  3. Check

    Add checks on status, content and timing for every protocol.

Ask the assistant

Examples of requests, and what it does with them.

Call GetProduct on api.example.com:443 over TLS with the CA in the secret SHOP_TLS_CA.
Listen to three ticks of the ticker.

It adds the step from the guides' worked examples, such as gRPC over TLS or listening to a WebSocket.

Frequently asked questions

Is SOAP supported?

Yes, as XML over HTTP: build the envelope, send it and extract values with XPath.

Can I test services that require a client certificate?

Yes. Environments hold client certificates and gRPC calls support TLS and mutual TLS.

See Swarmetry on your own application

We show you a test of your own application and answer your questions.