Use Talend Cloud API Tester to test your deployed
microservice.
Before you begin
You have installed the Talend Cloud API Tester Google Chrome extension. For more
information, see the Talend Cloud API Tester User Guide.
Procedure
Open Talend Cloud API Tester and click the
Project button in the bottom of the left panel to
create a new project.
Enter a name for your project, DemoREST for example, and
click Create.
Click Add an environment
in the top right corner of the window to create a new environment named
DemoREST-VM1.
This will allow you to create an environment variable for your
base URL to avoid changing it directly in the requests.
Enter baseURL in the
Name column and the relevant URL in
the Value column.
In this example, enter
http://<DemoREST-VM1>:5066/services
and replace <DemoREST-VM1> with the public IP address
associated with your virtual machine.
Optional: Create an environment for DemoREST-VM2:
Click Add an
environment and enter a name.
Select the Copy variables
from check box and select DemoREST-VM1 in the drop-down list.
Click Create.
Update the Value
column for the baseURL with the
relevant IP address.
Click Close.
Click Add a request to create a request named
Get all customers, then open the request and enter
the following URI: ${"baseURL"}/customers.
Click Save, then click Send to
send the request.
The list of customers is returned.
Create a second request:
In the left panel, open the menu next to your request and click
Copy.
Name the request Get a single customer and click
Copy.
Open the request and add /1 at the end of the
base URL.
Save and send the request.
Results
You have created environments and requests to test your microservice. You can send the
requests multiple times on each environment and check the metrics on Talend Management Console.
Did this page help you?
If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!