| Status | FAIL |
| Tests | 12 |
| Start | 2023-04-08 19-41-19 |
| End | 2023-04-08 19-41-19 |
| Duration | 0.18714125 seconds |
| Tags | #ALL |
| Total | 12 |
| Pass | 0 |
| Fail | 0 |
| Error | 12 |
| Disable | 0 |
| Skip | 0 |
| Total | 0 |
| Low | 0 |
| Minor | 0 |
| Major | 0 |
| Critical | 0 |
| Blocker | 0 |
| Total | 12 |
| Rest Api | 12 |
| Global Variables | 0 |
| Bug | 0 |
| Logger | 0 |
| Unexpected | 0 |
| Name | t1 (root file) [1] |
| Description | |
| Asynchronous | True |
| Testsuite | root file |
| Tags | #ALL |
| Start | 2023-04-08 19-41-19 |
| End | 2023-04-08 19-41-19 |
| Duration | 0.000888211 seconds |
| Bug Priority | |
| Error Type | Rest Api |
TRACEBACKS
----------
File "/Users/test_rest_api/_errors/1. restapi.py", line 6, in t1
rest_api = RestApi()
EXCEPTION
---------
Missing 1 required positional argument: 'url'
ERROR MESSAGE
-------------
Rest api creation failed
Example Code
------------
(Example 1)
from test_rest_api import RestApi
my_api = RestApi(url = "https://www.my_domain.com/")
(Example 2)
from test_rest_api import RestApi
my_api = RestApi( url = "https://www.my_domain.com/",
parameters = { "param_1" : "val_1", "param_2" : "val_2" },
headers = { "Content-Type" : "application/json" },
body = {} )
Note: "url" is mandatory attribute & rest are optional
Default parameters: {}
Default headers: {}
Default body: {}
| Name | t10 (root file) [2] |
| Description | |
| Asynchronous | True |
| Testsuite | root file |
| Tags | #ALL |
| Start | 2023-04-08 19-41-19 |
| End | 2023-04-08 19-41-19 |
| Duration | 0.000909805 seconds |
| Bug Priority | |
| Error Type | Rest Api |
TRACEBACKS
----------
File "/Users/test_rest_api/_errors/1. restapi.py", line 62, in t10
response = await rest_api.get()
EXCEPTION
---------
Invalid ULR
ERROR MESSAGE
-------------
Rest api request failed
Example Code
------------
(Example 1)
my_api = RestApi(url= "https://www.my_domain.com/")
response = await my_api.send(method='get')
(Example 2)
my_api = RestApi(url= "https://www.my_domain.com/")
response = await my_api.send(method=my_api.METHODS.GET)
(Example 3)
my_api = RestApi(url= "https://www.my_domain.com/")
response = await my_api.get()
All the above 3 examples does the same functionality but with different syntax
Supported methods: 'get', 'post', 'put', 'patch', 'delete', 'head', 'options'
| Name | t2 (root file) [5] |
| Description | |
| Asynchronous | True |
| Testsuite | root file |
| Tags | #ALL |
| Start | 2023-04-08 19-41-19 |
| End | 2023-04-08 19-41-19 |
| Duration | 0.000230138 seconds |
| Bug Priority | |
| Error Type | Rest Api |
TRACEBACKS
----------
File "/Users/test_rest_api/_errors/1. restapi.py", line 12, in t2
rest_api = RestApi(url1='s')
EXCEPTION
---------
Got an unexpected keyword argument 'url1'
ERROR MESSAGE
-------------
Rest api creation failed
Example Code
------------
(Example 1)
from test_rest_api import RestApi
my_api = RestApi(url = "https://www.my_domain.com/")
(Example 2)
from test_rest_api import RestApi
my_api = RestApi( url = "https://www.my_domain.com/",
parameters = { "param_1" : "val_1", "param_2" : "val_2" },
headers = { "Content-Type" : "application/json" },
body = {} )
Note: "url" is mandatory attribute & rest are optional
Default parameters: {}
Default headers: {}
Default body: {}
| Name | t3 (root file) [6] |
| Description | |
| Asynchronous | True |
| Testsuite | root file |
| Tags | #ALL |
| Start | 2023-04-08 19-41-19 |
| End | 2023-04-08 19-41-19 |
| Duration | 0.000169197 seconds |
| Bug Priority | |
| Error Type | Rest Api |
TRACEBACKS
----------
File "/Users/test_rest_api/_errors/1. restapi.py", line 18, in t3
rest_api = RestApi(1, 2, 3, 4, 5, 6)
EXCEPTION
---------
Takes from 2 to 5 positional arguments but 7 were given
ERROR MESSAGE
-------------
Rest api creation failed
Example Code
------------
(Example 1)
from test_rest_api import RestApi
my_api = RestApi(url = "https://www.my_domain.com/")
(Example 2)
from test_rest_api import RestApi
my_api = RestApi( url = "https://www.my_domain.com/",
parameters = { "param_1" : "val_1", "param_2" : "val_2" },
headers = { "Content-Type" : "application/json" },
body = {} )
Note: "url" is mandatory attribute & rest are optional
Default parameters: {}
Default headers: {}
Default body: {}
| Name | t4 (root file) [7] |
| Description | |
| Asynchronous | True |
| Testsuite | root file |
| Tags | #ALL |
| Start | 2023-04-08 19-41-19 |
| End | 2023-04-08 19-41-19 |
| Duration | 0.000147024 seconds |
| Bug Priority | |
| Error Type | Rest Api |
TRACEBACKS
----------
File "/Users/test_rest_api/_errors/1. restapi.py", line 25, in t4
rest_api = RestApi(url=True)
EXCEPTION
---------
Invalid data type for url. Please provide a valid string
ERROR MESSAGE
-------------
Rest api creation failed
Example Code
------------
(Example 1)
from test_rest_api import RestApi
my_api = RestApi(url = "https://www.my_domain.com/")
(Example 2)
from test_rest_api import RestApi
my_api = RestApi( url = "https://www.my_domain.com/",
parameters = { "param_1" : "val_1", "param_2" : "val_2" },
headers = { "Content-Type" : "application/json" },
body = {} )
Note: "url" is mandatory attribute & rest are optional
Default parameters: {}
Default headers: {}
Default body: {}
| Name | t5 (root file) [8] |
| Description | |
| Asynchronous | True |
| Testsuite | root file |
| Tags | #ALL |
| Start | 2023-04-08 19-41-19 |
| End | 2023-04-08 19-41-19 |
| Duration | 0.000147307 seconds |
| Bug Priority | |
| Error Type | Rest Api |
TRACEBACKS
----------
File "/Users/test_rest_api/_errors/1. restapi.py", line 31, in t5
rest_api = RestApi(url='', parameters=[])
EXCEPTION
---------
Invalid data type for parameters. Please provide a valid dictionary, with both dictionary key and dictionary value as string type
ERROR MESSAGE
-------------
Rest api creation failed
Example Code
------------
(Example 1)
from test_rest_api import RestApi
my_api = RestApi(url = "https://www.my_domain.com/")
(Example 2)
from test_rest_api import RestApi
my_api = RestApi( url = "https://www.my_domain.com/",
parameters = { "param_1" : "val_1", "param_2" : "val_2" },
headers = { "Content-Type" : "application/json" },
body = {} )
Note: "url" is mandatory attribute & rest are optional
Default parameters: {}
Default headers: {}
Default body: {}
| Name | t6 (root file) [9] |
| Description | |
| Asynchronous | True |
| Testsuite | root file |
| Tags | #ALL |
| Start | 2023-04-08 19-41-19 |
| End | 2023-04-08 19-41-19 |
| Duration | 0.000148625 seconds |
| Bug Priority | |
| Error Type | Rest Api |
TRACEBACKS
----------
File "/Users/test_rest_api/_errors/1. restapi.py", line 37, in t6
rest_api = RestApi(url='', parameters={}, headers='string')
EXCEPTION
---------
Invalid data type for headers. Please provide a valid dictionary, with both dictionary key and dictionary value as string type
ERROR MESSAGE
-------------
Rest api creation failed
Example Code
------------
(Example 1)
from test_rest_api import RestApi
my_api = RestApi(url = "https://www.my_domain.com/")
(Example 2)
from test_rest_api import RestApi
my_api = RestApi( url = "https://www.my_domain.com/",
parameters = { "param_1" : "val_1", "param_2" : "val_2" },
headers = { "Content-Type" : "application/json" },
body = {} )
Note: "url" is mandatory attribute & rest are optional
Default parameters: {}
Default headers: {}
Default body: {}
| Name | t7 (root file) [10] |
| Description | |
| Asynchronous | True |
| Testsuite | root file |
| Tags | #ALL |
| Start | 2023-04-08 19-41-19 |
| End | 2023-04-08 19-41-19 |
| Duration | 0.000144277 seconds |
| Bug Priority | |
| Error Type | Rest Api |
TRACEBACKS
----------
File "/Users/test_rest_api/_errors/1. restapi.py", line 43, in t7
rest_api = RestApi(url='', parameters={}, body='string')
EXCEPTION
---------
Invalid data type for body. Please provide a valid dictionary
ERROR MESSAGE
-------------
Rest api creation failed
Example Code
------------
(Example 1)
from test_rest_api import RestApi
my_api = RestApi(url = "https://www.my_domain.com/")
(Example 2)
from test_rest_api import RestApi
my_api = RestApi( url = "https://www.my_domain.com/",
parameters = { "param_1" : "val_1", "param_2" : "val_2" },
headers = { "Content-Type" : "application/json" },
body = {} )
Note: "url" is mandatory attribute & rest are optional
Default parameters: {}
Default headers: {}
Default body: {}
| Name | t8 (root file) [11] |
| Description | |
| Asynchronous | True |
| Testsuite | root file |
| Tags | #ALL |
| Start | 2023-04-08 19-41-19 |
| End | 2023-04-08 19-41-19 |
| Duration | 0.000162032 seconds |
| Bug Priority | |
| Error Type | Rest Api |
TRACEBACKS
----------
File "/Users/test_rest_api/_errors/1. restapi.py", line 50, in t8
response = await rest_api.send(method
EXCEPTION
---------
Invalid data type for method. Please provide a valid string
ERROR MESSAGE
-------------
Rest api request failed
Example Code
------------
(Example 1)
my_api = RestApi(url= "https://www.my_domain.com/")
response = await my_api.send(method='get')
(Example 2)
my_api = RestApi(url= "https://www.my_domain.com/")
response = await my_api.send(method=my_api.METHODS.GET)
(Example 3)
my_api = RestApi(url= "https://www.my_domain.com/")
response = await my_api.get()
All the above 3 examples does the same functionality but with different syntax
Supported methods: 'get', 'post', 'put', 'patch', 'delete', 'head', 'options'
| Name | t9 (root file) [12] |
| Description | |
| Asynchronous | True |
| Testsuite | root file |
| Tags | #ALL |
| Start | 2023-04-08 19-41-19 |
| End | 2023-04-08 19-41-19 |
| Duration | 0.000180381 seconds |
| Bug Priority | |
| Error Type | Rest Api |
TRACEBACKS
----------
File "/Users/test_rest_api/_errors/1. restapi.py", line 56, in t9
response = await rest_api.send(method='
EXCEPTION
---------
Invalid Request Method
Supported methods: 'get', 'post', 'put', 'patch', 'delete', 'head', 'options'
ERROR MESSAGE
-------------
Rest api request failed
Example Code
------------
(Example 1)
my_api = RestApi(url= "https://www.my_domain.com/")
response = await my_api.send(method='get')
(Example 2)
my_api = RestApi(url= "https://www.my_domain.com/")
response = await my_api.send(method=my_api.METHODS.GET)
(Example 3)
my_api = RestApi(url= "https://www.my_domain.com/")
response = await my_api.get()
All the above 3 examples does the same functionality but with different syntax
Supported methods: 'get', 'post', 'put', 'patch', 'delete', 'head', 'options'
| Name | t11 (root file) [3] |
| Description | |
| Asynchronous | True |
| Testsuite | root file |
| Tags | #ALL |
| Start | 2023-04-08 19-41-19 |
| End | 2023-04-08 19-41-19 |
| Duration | 0.01531264 seconds |
| Bug Priority | |
| Error Type | Rest Api |
TRACEBACKS
----------
File "/Users/test_rest_api/_errors/1. restapi.py", line 68, in t11
response = await rest_api.get()
EXCEPTION
---------
Cannot connect to host aaaaa.org:443 ssl:default [nodename nor servname provided, or not known]
ERROR MESSAGE
-------------
Rest api request failed
Example Code
------------
(Example 1)
my_api = RestApi(url= "https://www.my_domain.com/")
response = await my_api.send(method='get')
(Example 2)
my_api = RestApi(url= "https://www.my_domain.com/")
response = await my_api.send(method=my_api.METHODS.GET)
(Example 3)
my_api = RestApi(url= "https://www.my_domain.com/")
response = await my_api.get()
All the above 3 examples does the same functionality but with different syntax
Supported methods: 'get', 'post', 'put', 'patch', 'delete', 'head', 'options'
| Name | t12 (root file) [4] |
| Description | |
| Asynchronous | True |
| Testsuite | root file |
| Tags | #ALL |
| Start | 2023-04-08 19-41-19 |
| End | 2023-04-08 19-41-19 |
| Duration | 0.177039401 seconds |
| Bug Priority | |
| Error Type | Rest Api |
TRACEBACKS
----------
File "/Users/test_rest_api/_errors/1. restapi.py", line 74, in t12
response = await rest_api.post()
EXCEPTION
---------
0, message='Attempt to decode JSON with unexpected mimetype: text/html; charset=utf-8', url=URL('https://google.com')
ERROR MESSAGE
-------------
Rest api request failed
Example Code
------------
(Example 1)
my_api = RestApi(url= "https://www.my_domain.com/")
response = await my_api.send(method='get')
(Example 2)
my_api = RestApi(url= "https://www.my_domain.com/")
response = await my_api.send(method=my_api.METHODS.GET)
(Example 3)
my_api = RestApi(url= "https://www.my_domain.com/")
response = await my_api.get()
All the above 3 examples does the same functionality but with different syntax
Supported methods: 'get', 'post', 'put', 'patch', 'delete', 'head', 'options'