How to Integrate TestRail with Postman / Newman API Tests

Would you like to automatically create Test Runs & Results in TestRail after running your Postman API tests with Newman? This tutorial with guide you through the setup needed.

Valentin Despa
APIs with Valentine

--

Configuring TestRail

I am already assuming that you know how to use TestRail, that you have created a project, and have created some test cases.

The first thing you need is to enable the TestRail API so that Newman can communicate with TestRail and push the test results.

To do so, log into your TestRail account and go to Administration > Site Settings > API and make sure you click the checkbox near Enable API.

Enabling the API in TestRail

Once you have done this, click on your name right on top and select My Settings. Click on the API KEYS tab and generate a new API key.

Generating a new API key for TestRail

Give the API key a good name so that you can later remember why you have created this key and save the key somewhere safe.

--

--

Valentin Despa
APIs with Valentine

Software developer, educator & overlander • GitLab Hero • AWS Community Builder • Postman Supernova • Imprint: http://vdespa.com/imprint