CI integration
Last updated
Last updated
The easiest way to integrate your API tests into your CI/CD pipeline is by using .
Install the npm module as described . Make sure you have node.js version 14 or higher installed on your machine.
Create an API token that will be used for the integration. To generate it, navigate to Settings - .
Create a Test Plan and include into it all Test Suites you would like to run in the CI. Read more about Test Plans .
Initiate execution of the Test Plan by running command:
Other supported options can be found .
You can also use Dockerfile attached to run the Test Plan you wish:
To build it use this command : docker build -t loadmill-runner .
To run it use this command: docker run -it --env TP_ID=3085de2f-bc42-4727-9c4b-ab649ca4a285 --env TOKEN=<api token> --env BUILD_NUMBER=<the build number> loadmill-runner
In case you like short cuts, you can go ahead and use the npm package instead :)