@@ -9,16 +9,6 @@ Suite Teardown Delete All Sessions
99${SERVER_URL } http://host.docker.internal:3000
1010
1111** Test Cases ***
12- GET should return a value
13- ${response } = Get Request api /v1/categories/count
14- Status Should Be 200 ${response }
15- Dictionary Should Contain Item ${response.json() } counter 0
16-
17- GET should return not found
18- ${response } = Get Request api /v1/categories/100
19- Status Should Be 404 ${response }
20- Should Be Equal ${response.headers['Content-Type'] } application/json; charset=utf-8
21-
2212POST should create an object
2313 &{payload } = Create Dictionary name=Sport slug=sport userId=1
2414 ${response } = Post Request api /v1/categories json=${payload }
@@ -28,6 +18,16 @@ POST should create an object
2818 Status Should Be 200 ${response }
2919 Dictionary Should Contain Item ${response.json() } counter 1
3020
21+ GET should return a value
22+ ${response } = Get Request api /v1/categories/count
23+ Status Should Be 200 ${response }
24+ Dictionary Should Contain Item ${response.json() } counter 1
25+
26+ GET should return not found
27+ ${response } = Get Request api /v1/categories/100
28+ Status Should Be 404 ${response }
29+ Should Be Equal ${response.headers['Content-Type'] } application/json; charset=utf-8
30+
3131PUT should update an object
3232 &{payload } = Create Dictionary name=Fauna nameRu=Фауна slug=fauna userId=1 categoryId=1
3333 ${response } = Put Request api /v1/categories/1 json=${payload }
0 commit comments