Writing tests for ordering based on id and name
This commit is contained in:
26
Ordering.http
Normal file
26
Ordering.http
Normal file
@@ -0,0 +1,26 @@
|
||||
GET {{baseUrl}}/products?order=id.desc
|
||||
?? status == 200
|
||||
?? js response.parsedBody[0].id == 77
|
||||
?? js response.parsedBody[76].id == 1
|
||||
###
|
||||
|
||||
GET {{baseUrl}}/products?order=id.asc
|
||||
?? status == 200
|
||||
?? js response.parsedBody[0].id == 1
|
||||
?? js response.parsedBody[76].id == 77
|
||||
|
||||
###
|
||||
GET {{baseUrl}}/products?order=product_name.asc
|
||||
?? status == 200
|
||||
?? js response.parsedBody[0].id == 17
|
||||
?? js response.parsedBody[76].id == 47
|
||||
?? js response.parsedBody[0].product_name startsWith A
|
||||
?? js response.parsedBody[76].product_name startsWith Z
|
||||
|
||||
###
|
||||
GET {{baseUrl}}/products?order=product_name.desc
|
||||
?? status == 200
|
||||
?? js response.parsedBody[0].id == 47
|
||||
?? js response.parsedBody[76].id == 17
|
||||
?? js response.parsedBody[0].product_name startsWith Z
|
||||
?? js response.parsedBody[76].product_name startsWith A
|
||||
Reference in New Issue
Block a user