Contents:
This API call runs multiple tests.
It is meant for the development team and so should be considered fluid.
The output for each test within the overall response is the same format as apitesting.runtest.
The API testing system has a long list of predefined named tests, as listed in the apitesting.runtests page.
This example runs all tests whose name matches the string categories:
https://api.cyclestreets.net/v2/apitesting.runtests?name=categories
Result:
{ "summary": { "testsTotal": 21, "testsPassed": 9, "testsPassedPercentage": 43, "testsAllPassed": false, "partsTotal": 31, "partsPassedTotal": 13, "partsPassedPercentage": 42, "timeTotalMs": 4481 }, "results": { "Photomap categories": { "status": true, "time": 517, "call": "photomap.categories", "apiVersion": 2, "name": "Photomap categories", "note": false, "response": "Hidden", "parts": 1, "partsPassed": 1, "percentage": 100 }, "PhotomapCategories v1": { "status": true, "time": 3007, "call": "photomapcategories", "apiVersion": 1, "name": "PhotomapCategories v1", "note": false, "response": "Hidden", "parts": 1, "partsPassed": 1, "percentage": 100 }, … } }
None.
name=categories
would match the tests "Photomap categories" and "PhotomapCategories v1".call=journey
would match journey.plan, journey.retrieve, and others containing journey.JSON object as above, showing the outcome of each test, with a summary at the top.
JSON object containing an error key and a text string.
Example error (text string will vary):
{ "error": "Unknown error." }