Run Tests
To run a test in TestEngine, you need to send a request to TestEngine with a ReadyAPI project attached. This topic shows how to do it.
1. Prepare a ReadyAPI project
The request to TestEngine must contain a ReadyAPI project. The way you send it depends on the project:
If your project is a single .xml file (your project is not composite, and you do not use external files), you can send only the project file.
If you use external files (external data sources, certificates, or attachments), or
if your project is a composite one, you need to pack the project and all the required files into a zip package.
2. Send a request
To send a project to TestEngine and run a test, use the following operation:
POST http://<testengine-host>:8080/api/v1/testjobs[?parameters]
Override custom properties
When you run a test from TestEngine, you can override custom property values for the test run. To do this, you need to send a JSON file containing the needed values and send it to TestEngine along with the project file.
1. Create JSON file
The file must contain a JSON array. Each element of the array specifies a project item and its custom properties to override. For example:
Each array element consists of the following elements:
Element | Description |
---|---|
| [Optional] The name of a test suite or a test case containing the needed custom properties. Skip this element to specify project-level properties. |
| An object containg custom properties to override. Each custom property is a |
2. Send tproperties file
Send a request of the multipart/form-data content-type, and attach both project file and a property file with the following content-ID values:
File | Content-ID |
---|---|
Project file |
|
Properties file |
|
Examples
In TestEngine, you can give a job a high priority. TestEngine will run high-priority jobs before regular jobs.
Parameters
The POST request to the /testjobs
resource has a number of parameters that allow you to run a particular test case, test suite, run security tests, run tests with the needed tag, or use a specific environment, and so on.
See the full list of operation parameters in the TestEngine specification on SwaggerHub:
https://app.swaggerhub.com/apis/smartbear/readyapi-testengine/