Manual Test Case - API Testing
Manual Test Case - API Testing
Deleting single
merchant
Checking product list
https://dojobox-bootcamp.hasura.app/api/rest/country
https://dojobox-bootcamp.hasura.app/api/rest/country/:countryId
https://dojobox-bootcamp.hasura.app/api/rest/user
https://dojobox-bootcamp.hasura.app/api/rest/user/:userId
https://dojobox-bootcamp.hasura.app/api/rest/user
https://dojobox-bootcamp.hasura.app/api/rest/merchant
https://dojobox-bootcamp.hasura.app/api/rest/merchant/:merchantId
https://dojobox-bootcamp.hasura.app/api/rest/merchant
https://dojobox-bootcamp.hasura.app/api/rest/merchant/:merchantId
https://dojobox-bootcamp.hasura.app/api/rest/merchant
https://dojobox-bootcamp.hasura.app/api/rest/product
https://dojobox-bootcamp.hasura.app/api/rest/products/get-products-list-by-merchant-name/:merchant_name
https://dojobox-bootcamp.hasura.app/api/rest/product/:productId
https://dojobox-bootcamp.hasura.app/api/rest/product
https://dojobox-bootcamp.hasura.app/api/rest/product/:productId
https://dojobox-bootcamp.hasura.app/api/rest/product
https://dojobox-bootcamp.hasura.app/api/rest/order
https://dojobox-bootcamp.hasura.app/api/rest/order/:orderId
https://dojobox-bootcamp.hasura.app/api/rest/order/:userId/:status
https://dojobox-bootcamp.hasura.app/api/rest/order/:orderId
https://dojobox-bootcamp.hasura.app/api/rest/order/:orderId
https://dojobox-bootcamp.hasura.app/api/rest/order-item
https://dojobox-bootcamp.hasura.app/api/rest/order-items/get-order-list-by-order-id
https://dojobox-bootcamp.hasura.app/api/rest/order-item/:order_id/:product_id/:quantity
https://dojobox-bootcamp.hasura.app/api/rest/order/:orderItemId
https://dojobox-bootcamp.hasura.app/api/rest/order-item/:orderListId
API Method Path Variables
GET -
GET countryId = 1
GET -
GET userId = 22
POST -
GET -
GET merchantId = 38
POST -
PUT merchantId = 41
DELETE -
GET -
POST -
PATCH productId = 56c5fffb-19d2-4b79-aa34-80265a9783a5
DELETE -
GET -
GET
userId = 44
POST
status = pesanan acicah
GET -
GET -
:order_id = aff69d72-26ce-404c-8e55-f300cf00d941
POST :product_id = 7c02f47f-a8b7-493e-8f5e-da7ef8f172cc
:quantity = 50
PATCH orderItemId = 30f71231-59ab-48cf-a456-e536f0786a17
- OK 200
- OK 200
- OK 200
- OK 200
{
"id": 1111,
"email": "[email protected]",
"full_name": "Acicah" ,
OK 200
"gender": "Wanita",
"date_of_birth": "00 00 00",
"country_code": 1
}
- OK 200
- OK 200
{
"admin_id": 1,
"country_code": 1, OK 200
"merchant_name": "cicahcorp"
}
{
"admin_id": 1,
"country_code": 1,
OK 200
"merchant_name": "cicah.corp.update"
}
{
"id" : 39
OK 200
}
- OK 200
- OK 200
- OK 200
{
"merchant_id": 1,
"name":"cicah collection",
OK 200
"price": 50000,
"status": "udah diisi"
}
{
"name": "cicah collection update",
"price": 50000, OK 200
"status": "dipinjamkan"
}
{
"id": "56c5fffb-19d2-4b79-aa34-80265a9783a5" OK 200
}
- OK 200
- OK 200
- OK 200
{
"user_id": 44,
OK 200
"status": "pesanan diproses update"
}
- OK 200
- OK 200
{
"order_id" : {
"_eq" : "aff69d72-26ce-404c-8e55-f300cf00d941" OK 200
}
}
- OK 200
{
"quantity" : 11 OK 200
}
- OK 200
Result
Actual Response code Executed Date
(Pass/fail)
{
"Countries": [
{
"code": 1,
896
"name": "Indonesia"
}
]
}
{
"Countries_by_pk": {
"code": 1,
"name": "Indonesia", 991
"created_at": "2022-05-26T09:00:42.797551+00:00"
}
}
"email": "[email protected]",
"full_name": "Andika tester",
"gender": "Pria"
},
{
"id": 22,
"email": "[email protected]",
"full_name": "Andika tester w",
"gender": "Pria"
},
{
"id": 2222,
"email": "[email protected]",
"full_name": "Andika tester 3",
"gender": "Pria"
},
984
{
"id": 20,
"email": "[email protected]",
"full_name": "Andika tester aj",
"gender": "Pria"
},
{
"id": 3,
"email": "[email protected]",
"full_name": "Naufal test create",
"gender": "Pria"
},
{
"id": 44,
"email": "[email protected]",
{ "full_name": "Ais ahmad s",
"gender": "Pria"
"Users_by_pk": {
},
"id": 22,
{"full_name": "Andika tester w",
"id": 4,"[email protected]",
"email":
"email": "[email protected]",
"date_of_birth": "00 00 00", 1077
"full_name":
"gender": "Pria","Denai Putri",
"gender": "wanita"
"country_code": 1,
}"created_at": "2022-05-27T14:25:25.820818+00:00"
}]
}}
{
"Merchants": [
{
"id": 1,
"merchant_name": "dojobox academy",
"admin_id": 1,
"country_code": 1
},
{
{ "id": 2,
"insert_Users_one":
"merchant_name": { "keluarga dojobox",
"id": 1111,
"admin_id": 1,
"full_name": "Acicah",
"country_code": 1
"email":
}, "[email protected]",
{"gender": "Wanita", 1157
"date_of_birth":
"id": 12, "00 00 00",
"country_code": 1,
"merchant_name": "dojoyusuf",
"created_at":
"admin_id":"2022-06-08T08:59:02.793177+00:00"
1,
} "country_code": 1
} },
{
"id": 13,
"merchant_name": "dojokays",
"admin_id": 1,
"country_code": 1
},
{
"id": 14,
"merchant_name": "latihan dojobox",
"admin_id": 1,
"country_code": 1
},
{
"id": 8,
"merchant_name": "latihan update dojobox",
1526
"admin_id": 1,
"country_code": 1
},
{
"id": 19,
"merchant_name": "dokays",
"admin_id": 1,
"country_code": 1
},
{
"id": 26,
"merchant_name": "dojokey",
"admin_id": 44,
"country_code": 1
},
{
"id": 29,
"merchant_name": "test merchant",
"admin_id": 1,
"country_code": 1
},
{
"id": 31,
"merchant_name": "test ais",
"admin_id": 44,
"country_code": 1
},
{
"id": 38,
"merchant_name": "test API Dojobox",
"admin_id": 1,
"country_code": 1
}
]
}
{
"Merchants_by_pk": {
"id": 38,
"merchant_name": "test API Dojobox",
"admin_id": 1,
"country_code": 1,
"created_at": "2022-06-08T07:45:35.303309+00:00",
"User": {
"id": 1,
1094
"full_name": "creator",
"email": "[email protected]"
},
"Country": {
"code": 1,
"name": "Indonesia"
}
}
}
{
"insert_Merchants": {
"affected_rows": 1,
"returning": [
{
"id": 39,
"admin_id": 1,
1864
"country_code": 1,
"merchant_name": "cicahcorp",
"created_at": "2022-06-08T09:19:03.30439+00:00"
}
]
}
}
{
"update_Merchants_by_pk": {
"id": 41,
"merchant_name": "cicah.corp.update",
"admin_id": 1, 1071
"country_code": 1,
"created_at": "2022-06-08T10:00:31.786257+00:00"
}
}
{
"delete_Merchants_by_pk": {
"id": 39,
"merchant_name": "cicah.corp.update",
"country_code": 1, 1114
"admin_id": 1,
"created_at": "2022-06-08T09:19:03.30439+00:00"
}
}
},
{
"id": "b5e92cac-4260-4d30-a765-d6e66b9436da",
"name": "uji coba product",
"price": 2
},
{
"id": "7587596b-09e4-40a9-afb8-ac779a340f1b",
"name": "uji coba product",
"price": 2
},
{
"id": "dd2271a3-820c-411e-a786-609983d78322",
"name": "uji coba product abc",
"price": 2
},
1685
{
"id": "115a4625-edd6-43bd-8d6a-78c87084d9bb",
"name": "test edit 2",
"price": 12500000
},
{
"id": "7c02f47f-a8b7-493e-8f5e-da7ef8f172cc",
"name": "uji coba product dojobox",
{ "price": 2000000
},
"Products": [
{{
"id": "7587596b-09e4-40a9-afb8-ac779a340f1b",
"id": "68804ac9-f7c7-4c65-b1ac-aaed3aae7dd7",
"name": "uji coba
"merchant_id": 1, product abc",
"price": 2
"name": "uji coba product",
}, "price": 2,
{ "status": "Beli baru"
}, "id": "a4069635-e7a8-4be2-b146-16d2970d22ef",
{ "name": "uji coba product abc",
"price": 2
"id": "b5e92cac-4260-4d30-a765-d6e66b9436da",
}, "merchant_id": 1,
{ "name": "Edited product", 1020
"id": "0f26b645-8763-4f27-91d9-270b0304dcfd",
"price": 12500000,
"name":
"status": "uji coba product abc",
"dipinjamkan"
}, "price": 2
{},
{ "id": "115a4625-edd6-43bd-8d6a-78c87084d9bb",
"id": "e1fff24c-7db7-4285-b41b-1717a32003f1",
"merchant_id": 1,
"name":
"name": "product dancow",
"Edited product dojobox",
"price": 2500
"price": 12500000,
} "status": "dipinjamkan"
] }
} ]
}
{
"Products_by_pk": {
"id": "56c5fffb-19d2-4b79-aa34-80265a9783a5",
"merchant_id": 1,
"name": "cicah collection",
"price": 50000,
"status": "udah diisi",
1745
"created_at": "2022-06-08T10:12:59.07792+00:00",
"Merchant": {
"id": 1,
"merchant_name": "dojobox academy"
}
}
}
{
"insert_Products": {
"affected_rows": 1,
"returning": [
{
"id": "56c5fffb-19d2-4b79-aa34-80265a9783a5",
"merchant_id": 1,
"name": "cicah collection", 5730
"price": 50000,
"status": "udah diisi",
"created_at": "2022-06-08T10:12:59.07792+00:00"
}
]
}
}
{
"update_Products_by_pk": {
"id": "56c5fffb-19d2-4b79-aa34-80265a9783a5",
"merchant_id": 1,
"name": "cicah collection update",
1144
"price": 50000,
"status": "dipinjamkan",
"created_at": "2022-06-08T10:12:59.07792+00:00"
}
}
{
"id": "56c5fffb-19d2-4b79-aa34-80265a9783a5" 1889
}
},
"Orders_by_pk": {
{"id": "e9c38cdb-512b-40b8-a436-8d1c1360e55e",
"id": "0fb70241-2544-4002-a68b-c9f32a236c69",
"status": "pesanan diproses",
"user_id":
"user_id": 1, 8,
"status": ":status"
"created_at": "2022-05-26T09:18:58.269547+00:00",
},
"Orders_Items": [
{ {
"id": "aff69d72-26ce-404c-8e55-f300cf00d941",
"id": "5e4f9231-49d9-4cdc-bc7e-dc5a95f8df8c",
"user_id":
"order_id":8, "e9c38cdb-512b-40b8-a436-8d1c1360e55e",
"status": "pesanan
"product_id": diproses"
"115a4625-edd6-43bd-8d6a-78c87084d9bb",
}, "quantity": 10,
{ "Product": {
"id":"id":
"641361e3-41a1-4e3a-aebb-7731a93fa7db",
"115a4625-edd6-43bd-8d6a-78c87084d9bb",
"user_id": 123412, 1,
"merchant_id":
"status": "pesanan
"name": baru2",
"test edit banget"
}, "price": 12500000, 4001
{ "status": "dipinjamkan"
"id":
} "e9c38cdb-512b-40b8-a436-8d1c1360e55e",
"user_id": 1,
},
"status":
{ "pesanan diproses"
}, "id": "2e78764c-5093-450e-a4e9-12952883d927",
{ "order_id": "e9c38cdb-512b-40b8-a436-8d1c1360e55e",
"id": "8176f77c-eff8-4d6f-a365-2ad28c8a1c1f",
"product_id": "f8db2347-f715-4f02-a128-217a17fc336c",
"user_id":
"quantity":12, 2,
"status": "pesanan
"Product": { baru"
}, "id": "f8db2347-f715-4f02-a128-217a17fc336c",
{ "merchant_id": 2,
"id":"name":
"01329a9f-81f9-4a64-8dc6-bf2ec9abbe42",
"mentor jenar",
"user_id":
"price":44,10000,
"status": "pesanan-siap"
"status": ""
}, }
{ },
"id":
{ "65d6a9e6-6815-413f-afeb-c95d74aca6a9",
"user_id": 43,
"id": "24af2515-5095-4a95-81a8-e5d050819793",
"status": "pesanan bug"
"order_id": "e9c38cdb-512b-40b8-a436-8d1c1360e55e",
} "product_id": "f8db2347-f715-4f02-a128-217a17fc336c",
] "quantity": 5, 1901
}\ "Product": {
"id": "f8db2347-f715-4f02-a128-217a17fc336c",
"merchant_id": 2,
"name": "mentor jenar",
"price": 10000,
"status": ""
}
},
{
"id": "ac13dd2c-4529-4d9d-a081-70a40287a503",
"order_id": "e9c38cdb-512b-40b8-a436-8d1c1360e55e",
"product_id": "7c02f47f-a8b7-493e-8f5e-da7ef8f172cc",
"quantity": 5,
"Product": {
"id": "7c02f47f-a8b7-493e-8f5e-da7ef8f172cc",
"merchant_id": 8,
"name": "uji coba product dojobox",
"price": 2000000,
"status": "uji coba udah diisi"
}
},
{
"id": "fdd118fb-cf73-46f2-bb5c-e8afbd5dc5e4",
"order_id": "e9c38cdb-512b-40b8-a436-8d1c1360e55e",
"product_id": "7c02f47f-a8b7-493e-8f5e-da7ef8f172cc",
"quantity": 8,
"Product": {
"id": "7c02f47f-a8b7-493e-8f5e-da7ef8f172cc",
"merchant_id": 8,
"name": "uji coba product dojobox",
"price": 2000000,
"status": "uji coba udah diisi"
}
}
{
"insert_Orders": {
"returning": [
{
"id": "1029b5a5-fee9-476e-97ec-a1d0c166c3f7",
"status": "pesanan cicah",
1075
"user_id": 44,
"created_at": "2022-06-08T10:51:11.270094+00:00"
}
]
}
}
{
"update_Orders_by_pk": {
"id": "1029b5a5-fee9-476e-97ec-a1d0c166c3f7",
"user_id": 44,
1854
"status": "pesanan diproses update",
"created_at": "2022-06-08T10:51:11.270094+00:00"
}
}
{
"Orders_Items": [
{
{ "id": "5e4f9231-49d9-4cdc-bc7e-dc5a95f8df8c",
"delete_Orders_by_pk": {
"order_id": "e9c38cdb-512b-40b8-a436-8d1c1360e55e",
"id": "1029b5a5-fee9-476e-97ec-a1d0c166c3f7"
"product_id": "115a4625-edd6-43bd-8d6a-78c87084d9bb", 2080
} "quantity": 10
} },
{
"id": "2e78764c-5093-450e-a4e9-12952883d927",
"order_id": "e9c38cdb-512b-40b8-a436-8d1c1360e55e",
"product_id": "f8db2347-f715-4f02-a128-217a17fc336c",
"quantity": 2
},
{
"id": "24af2515-5095-4a95-81a8-e5d050819793",
"order_id": "e9c38cdb-512b-40b8-a436-8d1c1360e55e",
"product_id": "f8db2347-f715-4f02-a128-217a17fc336c",
"quantity": 5
},
{
"id": "ac13dd2c-4529-4d9d-a081-70a40287a503",
"order_id": "e9c38cdb-512b-40b8-a436-8d1c1360e55e",
"product_id": "7c02f47f-a8b7-493e-8f5e-da7ef8f172cc",
"quantity": 5
},
1303
{
"id": "fdd118fb-cf73-46f2-bb5c-e8afbd5dc5e4",
"order_id": "e9c38cdb-512b-40b8-a436-8d1c1360e55e",
"product_id": "7c02f47f-a8b7-493e-8f5e-da7ef8f172cc",
"quantity": 8
},
{
"id": "14d155c7-2976-4f24-88ad-478a82aa6d60",
"order_id": "aff69d72-26ce-404c-8e55-f300cf00d941",
"product_id": "7c02f47f-a8b7-493e-8f5e-da7ef8f172cc",
"quantity": 8
},
{
"id": "30f71231-59ab-48cf-a456-e536f0786a17",
"order_id": "aff69d72-26ce-404c-8e55-f300cf00d941",
"product_id": "7587596b-09e4-40a9-afb8-ac779a340f1b",
"quantity": 2
},
{
"id": "3ad83328-940a-47cb-8519-7b7c6eb3ef7e",
"order_id": "e9c38cdb-512b-40b8-a436-8d1c1360e55e",
"product_id": "115a4625-edd6-43bd-8d6a-78c87084d9bb",
"quantity": 10
}
]
}
{
"Orders_Items": [
{
"id": "14d155c7-2976-4f24-88ad-478a82aa6d60",
"order_id": "aff69d72-26ce-404c-8e55-f300cf00d941",
"product_id": "7c02f47f-a8b7-493e-8f5e-da7ef8f172cc",
"quantity": 8,
"created_at": "2022-06-07T15:39:22.346117+00:00"
},
3940
{
"id": "30f71231-59ab-48cf-a456-e536f0786a17",
"order_id": "aff69d72-26ce-404c-8e55-f300cf00d941",
"product_id": "7587596b-09e4-40a9-afb8-ac779a340f1b",
"quantity": 2,
"created_at": "2022-06-08T15:28:28.127674+00:00"
}
]
}
{
"insert_Orders_Items": {
"affected_rows": 1,
"returning": [
{
"id": "0b69f2ba-05c8-4cc9-94a3-592bbccf6bbc",
"order_id": "aff69d72-26ce-404c-8e55-f300cf00d941",
2030
"product_id": "7c02f47f-a8b7-493e-8f5e-da7ef8f172cc",
"quantity": 50,
"created_at": "2022-06-09T03:47:15.665266+00:00"
}
]
}
}
{
"update_Orders_Items": {
"affected_rows": 1,
"returning": [
{
"id": "30f71231-59ab-48cf-a456-e536f0786a17",
"order_id": "aff69d72-26ce-404c-8e55-f300cf00d941",
1856
"product_id": "7587596b-09e4-40a9-afb8-ac779a340f1b",
"quantity": 11,
"created_at": "2022-06-08T15:28:28.127674+00:00"
}
]
}
}
{
"Orders_Items_by_pk": {
"id": "ceefa823-5b44-42c6-90f7-0fb316e4e9a1",
"order_id": "aff69d72-26ce-404c-8e55-f300cf00d941",
"product_id": "7c02f47f-a8b7-493e-8f5e-da7ef8f172cc", 754
"quantity": 10,
"created_at": "2022-06-09T04:13:26.121551+00:00"
}
}
Console
(Request dan Respond)
https://drive.google.com/file/d/1xaNsKhVfvvLzpy3_tnB3LPzpAhlvQhYc/view?usp=sharing
https://drive.google.com/file/d/1WtTc_boo8VHymMhapoo_5RZG4bB-qA8u/view?usp=sharing
https://drive.google.com/file/d/1Whe0TAZvc0bRoEGKlx1Ls2c7U4QHR6E6/view?usp=sharing
https://drive.google.com/file/d/1cG4bwEzMFJ9GzE1Wo3EGAhwcATOqLP4R/view?usp=sharing
https://drive.google.com/file/d/1V6ERovNHOSpTTu2spYHZVMHPmER354TY/view?usp=sharing
https://drive.google.com/file/d/1EV4J9Xx5IAhnuTxteFdyR91FecwGUEqu/view?usp=sharing
https://drive.google.com/file/d/1GCMpOwzCVwFQvqAZb96aI_hEzPDekJRD/view?usp=sharing
https://drive.google.com/file/d/1KJM2pJMULZ2U0g-iidUtM-ktQunxiU-r/view?usp=sharing
https://drive.google.com/file/d/1T4JDZafjoNcJEde8ODi2NWxDCtqGddnz/view?usp=sharing
https://drive.google.com/file/d/1iuX33LEujJnnV8foASXziVvQ5Ts0Pe38/view?usp=sharing
https://drive.google.com/file/d/1Tdxwq0zbmfTa5IzwsQT-A80rgSUODz_q/view?usp=sharing
https://drive.google.com/file/d/1ezDe3POF8EkK2bytrvcmzMB3nanhbVsR/view?usp=sharing
https://drive.google.com/file/d/1GXeu7RUZzhm4hUVLyiUl1zPTEToEgyEm/view?usp=sharing
https://drive.google.com/file/d/1KxdXIdO3tIKs_es-f3TdVFH5BgRnKtUT/view?usp=sharing
https://drive.google.com/file/d/1jYCQsDzzqImxid865JUZhcE1p1GVcWNx/view?usp=sharing
https://drive.google.com/file/d/1ZmAJEXHYcr1-xIIcNphN2odS6Gc37rLJ/view?usp=sharing
https://drive.google.com/file/d/11-sTAHfRJ7caL4PPlE7AdylYBvrykywd/view?usp=sharing
https://drive.google.com/file/d/1rPYKfD_G_SRhkn6VTXeUwhHbskVd-o1S/view?usp=sharing
https://drive.google.com/file/d/1m24gKm5dY5s2iR_W7i5jp3u434h3oiXH/view?usp=sharing
https://drive.google.com/file/d/1utE7Mfyv1D17t9Xg0zGuMnZhZeVE_3vx/view?usp=sharing
https://drive.google.com/file/d/1glZOwh9Bc7R467avVsOd4MFXKl41IbvV/view?usp=sharing
https://drive.google.com/file/d/1AYfduhXxEdS6j6oQpIIo-G_jIavKZPjq/view?usp=sharing
https://drive.google.com/file/d/1Qwt60FTMJVnHXcHwYu51k66pQ0lXOTu5/view?usp=sharing
https://drive.google.com/file/d/1lJ5ZKK4j2_n9PxZczw2elxI94Oa83xsu/view?usp=sharing
https://drive.google.com/file/d/12WRi5LDoIJmSa2ImrUcf1y1DeZfyPoI-/view?usp=sharing
https://drive.google.com/file/d/1DBE-CkDbrHinYT-ZLT72iz7kKQ9ZHrdd/view?usp=sharing