Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

QA Testing - Automated Cart

Actor
User with ID 107903 (name testing / previously rahul with mobile '+62888888888888')

Orders SQL
select *from orders o where o.user_id = 107903 and o.status = 'COMPLETED'
and o.created >= '2022-02-01T00:00:00'

Result Orders

ID Created

480235 2022-08-11 3:58:26

Orders Items SQL


select oi.id, oi.order_id, oi.item_id, pc."name" as category, pp.product_name as
template_name, pp.product_name from order_item oi
left join product_product pp on pp.id = oi.item_id
left join product_template pt on pt.id = pp.product_tmpl_id
left join product_category pc on pc.id = pt.categ_id
where oi.order_id in (480235)

Result order items

id order_id item_id cat_id cat_parent_id category template_name product_name


GOOD DEAL
49503 GOOD DEAL SWEET PEAR 500 SWEET PEAR 500
0 480235 6514 75 10 Buah gr gr
49503
1 480235 4969 76 10 Sayuran Tomat Cherry 250 gr Tomat Cherry 250 gr

What category items show


id name complete_name parent_id
10 Produk Fresh (parent) Produk Fresh

75 Buah Produk Fresh / Buah 10

76 Sayuran Produk Fresh / Sayuran 10


* Parent id is only 10

Test From Postman


{{turl}}api/v1/user/reminder/107903

Check Postman By Category


Url api/v1/user/reminder/107903?page=0&categoryId=10 ok
Url {{turl}}api/v1/user/reminder/107903?page=0&categoryId=1
* Both query return right items

You might also like