Constructor
new APITestRunner()
Methods
run(testPath, inParamsopt, profileNameopt) → {Promise.<Object>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
testPath | string | The folder path of API test. | |
inParams | Object |
<optional> | The list of input parameters to run the API test. |
profileName | string |
<optional> | The active profile. |
Returns:
The returned object contains two keys:
status - the result of the API test: true = passed; false = failed
outParams - the list of returned output parameters from the API test with the key and value
- Type
- Promise.<Object>