Quickstart with QALIPSIS Cloud

This quickstart walks you through publishing your first scenarios to QALIPSIS Cloud, from an empty project to scenarios ready to run in your organization.

You will:

  1. Create an API token in QALIPSIS Cloud.

  2. Download and configure the bootstrap project.

  3. Develop and document your scenarios.

  4. Publish them with a single Gradle task.

  5. Manage the published scenarios from your project.

Prerequisites

Create an API key

Publishing to the Cloud requires an API token that authenticates your Gradle build.

  1. Sign in to https://app.qalipsis.io/tokens.

  2. Select your organization in the bottom left corner of the screen.

  3. Click Generate new key and grant the permissions read:scenario and write:scenario.

  4. Copy the key immediately.

Creating an API key

The token is shown only once at creation. Store it safely, as documented in the Authentication section of the REST API reference. If you lose it, revoke it and create a new one.

Download and configure the bootstrap

The bootstrap project ships preconfigured with the QALIPSIS Gradle plugins.

  1. Download and initialize the project as described in the bootstrap section.

  2. Apply the cloud plugin and set its properties, typically in gradle.properties at the root of your project or in your Gradle user home (~/.gradle/gradle.properties on Linux and macOS, %USERPROFILE%\.gradle\gradle.properties on Windows):

    qalipsis.cloud.registry.token=<your-api-token>

    Paste the token created above into qalipsis.cloud.registry.token.

Keep the token out of version control. Prefer a local gradle.properties in your Gradle user home or a Gradle execution option over committing it to your repository.

Develop your scenarios

Develop your scenarios as described in the develop scenarios section.

Give each scenario a clear identity through the @Scenario annotation. Its name, description and version are what QALIPSIS Cloud displays in your organization, so document them accurately:

@Scenario(
    name = "my-new-scenario",
    description = "POSTs to httpbin.org and verifies the response",
    version = "1.0"
)

Publish your scenarios

Run the publication task from your project directory:

./gradlew qalipsisPublish

The task packages the scenarios found on the classpath and uploads them to your organization in QALIPSIS Cloud.

A couple of seconds later, the scenarios are available in the Cloud. To confirm, start the new-campaign wizard and check that they appear in the scenario selection, with the name, description and version defined in their @Scenario annotation.

Manage published scenarios

When the property qalipsis.cloud.registry.list is set to true (the default), each build lists the scenarios currently present in your organization and generates a dedicated deletion task per scenario, named qalipsisCloudDeleteScenario<ScenarioName> (the scenario name in camel case).

To remove a scenario that is no longer relevant:

./gradlew qalipsisCloudDeleteScenarioMyNewScenario

Run ./gradlew tasks to discover the exact task names generated for your scenarios.

Next steps