It is possible to trigger the execution of a large number of tests directly via the Wolfpack API. In Wolfpack, launching a series of tests is called a "job". For this, you will need an API key (see here for how to obtain one).
Wolfpack provides an endpoint for executing jobs by specifying the required environments and test suites.
POST https://api.wolfpackqa.com/schedule-jobs/new
This endpoint allows you to execute a job manually. You can use this endpoint to trigger test runs based on predefined schedules and environments.
The request header must include a valid API token:
x-api-token: YOUR_API_TOKEN
The request body must contain the following information:
environmentKeys
(required): An array of environment keys where the tests should be executed.testSuites
(optional): An array of test suites to execute. If no suites are provided, the job will run all the tests of the projet.Since API keys are tied to a specific project, it is not necessary to specify the project unless the request is made without a project token.
{
"environmentKeys": ["staging", "production"],
"testSuites": ["auth-tests", "payment-tests"],
"projectId": "123abc456def"
}
environmentKeys
) or an invalid request format.