- Python 3.6
- pip3
- pip3 install -r test_utils/test_utils/requirements/base.txt
- Geckodriver for selenium tests(Ubuntu example) - https://askubuntu.com/questions/870530/how-to-install-geckodriver-in-ubuntu
- Set path to Geckodriver executable to system path. '''export PATH=$PATH:/path/to/'''
robot Robot-framework-API-tests/tests/robot/tests/ui/ui_checks.robot
List of result codes that were tested.
- apiResSuccess = 0,
- apiResInvalidRequestFormat = 3,
- apiResPointHasTooManyMissingValues = 11,
- apiResNoPointsForPredict = 12,
- apiResNotEnoughDataForPredict = 13
POST
http://somehost:someport/?cmd=predictionReq
HTTP/1.1
- Content-Length Required. The length of the content body.
- Content-Type:application/json Required, as the request body is sent in JSON format.
- Accept: application/json Required, as the response is sent in JSON format.
{
"modelId": "10083",
"featureNames": [
"datetime",
"season",
"holiday",
"workingday",
"weather",
"temp",
"atemp",
"humidity",
"windspeed"
],
"values": [
[
"2019-05-16 11:19:15",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0"
],
[
"2019-05-16 11:19:15",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0"
]
]
}
A successful operation returns status code 200 (OK)
The response may include standard HTTP headers. All standard headers conform to the HTTP/1.1 protocol specification
- Content-Type:application/json Indicates that the content body is in json format.
{
"targetValName": "count",
"resultCode": 0,
"result": [
{
"value": 123
},
{
"value": 345
}
]
}