Public API

The API enables developers to perform actions such as login and run a test in LoadRunner Cloud. The public API is HTTP-based and RESTful. JSON is returned by all API responses.

At the end of each test run, a report is sent by email.

Access the public API help

To access the public API, perform the following steps:

  1. Click Public API Help to access the full online documentation.
  2. Enter your LoadRunner Cloud credentials.
  3. Click an operation to expand its full details.
  4. For each operation, click Try it out to perform the operation using the parameters you’ve specified.

Back to top

Integrate an application with LoadRunner Cloud

This section describes how to integrate an application with LoadRunner Cloud. You can authenticate with either a username and password, or with API access keys, consisting of a client ID and secret key.

Integrate an application using one of the following methods:

  • Invoke the /v1/auth API call with a username and password. The API call returns an access token. Set the LWSSO_COOKIE_KEY cookie to this token value, for example: Cookie: LWSSO_COOKIE_KEY=<token>.
  • Invoke the /v1/auth-client API call with a client id and secret key. The API call returns an OAuth token. Set the Bearer authentication header with the token value, for example: Authorization: Bearer <token>.

Tip: The client id and secret key can be used to authenticate instead of the LoadRunner Cloud username and password for all on-premises agents, such as on-premises load generators, Git integration, streaming data, and monitors. Unlike passwords which expire every three months, access keys do not expire.

Back to top