Running your tests from your command line - Cloud

Talend Cloud API Tester User Guide

Version
Cloud
Language
English
Product
Talend Cloud
Module
Talend API Tester
Content
Design and Development > Testing APIs
Last publication date
2024-03-27

Automate the process of API testing from a command line interface (CLI).

Talend Cloud API Tester allows you to use exported tests as an input for the Maven plugin which generates standard JUnit/Surefire reports and allows you to configure custom URLs that will get notified before and/or after a test is completed.

The quickest way to launch tests from scratch is to include them inside a project.

Before you begin

  • You have installed the latest Java JDK.
  • You have installed Maven and the Talend Cloud API Tester Maven plugin.

Procedure

  1. In Scenarios, click the name a project in the left panel.
  2. In the Test automation box on the top right of the page, click Download project.
    Test automation box.
    Tip: You can also download your API project using the Talend Cloud API Tester Management API.
  3. Download the pom.xml file by clicking the corresponding hyperlink.
  4. Download the project that you want to test by clicking Download project and save it in the same folder as pom.xml.
    Download project dialog box.
  5. Open a terminal in the folder where you saved pom.xml and the project, and launch the mvn clean test command to run your tests.

Results

You can check the test results in the command line console.