Running your scenarios on Travis CI - Cloud

Talend Cloud API Tester Examples

Version
Cloud
Language
English
Product
Talend Cloud
Module
Talend API Tester
Content
Design and Development > Testing APIs
Last publication date
2024-03-15
Configure Travis CI to run your tests.

Before you begin

  • You have a GitHub account.
  • You know how to launch Talend Cloud API Tester from the CLI.
  • You have installed the Talend Cloud API Tester Maven plugin.

Procedure

  1. Push your scenario to a GitHub repository.

    Make sure to push the two test files:

    • The JSON file containing your scenario
    • The pom.xml configuration file
    Note: Talend Cloud API Tester has a GitHub integration to help you push your test files to GitHub.
  2. Go to your profile page on the Travis CI website, find your GitHub repository, and switch it on.
    The repository "your-name/StarWarsApiTests" is enabled.
  3. Create a .travis.yml file for your Travis configuration.

    Example

    language: java
    jdk: oraclejdk8
    install: true # skipping the default Travis install step
    script:
    - mvn test
  4. Push your .travis.yml file on your GitHub repository.

Results

The build is running on Travis CI.

The build running on Travis CI.

Each time you push to your GitHub repository, a build will be triggered on Travis CI and will run your test scenarios.