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
-
In Scenarios, click the
name a project in the left panel.
-
In the Test automation box
on the top right of the page, click Download
project.
-
Download the pom.xml file
by clicking the corresponding hyperlink.
-
Download the project that you want to test by clicking
Download project and save it in the
same folder as pom.xml.
-
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.