btc2nxt
|
|
March 08, 2014, 09:23:22 AM |
|
Level-2 bid-ask match test cases,contain 6 test cases
2-1 Purpose: multi-bids equal 1 ask-order Level 2 Prereq: secretphrase,ask order Test Data: bid orders (1,2,3,10 bid-orders) Steps: 1. enter secrephrase 2. select a ask-order 3. place a -bid-order(quantity,price=ask-order) 4. verify this order is correct or not 5. verify balance=balance-quantity*price-fee 6. verify asset=asset+quantity 7. repeat step3 use 2,3,10 bid-orders,total quantity=askorder.quantity 8. repeat step4,5,6, check is correct or not
2-2 Purpose: multi-asks equal 1 bid-order Level 2 Prereq: secretphrase,bid order Test Data: ask orders (1,2,3,10 ask-orders) Steps: 1. enter secrephrase 2. select a bid-order 3. place a ask-order(quantity,price=bid-order) 4. verify this order is correct or not 5. verify balance=balance+quantity*price-fee 6. verify asset=asset - quantity 7. repeat step3,4,5 use 2,3,10 ask-orders,total quantity=bidorder.quantity 8. repeat step4,5,check is correct or not
2-3 Purpose: multi-bids match 1 ask-order Level 2 Prereq: secretphrase,ask order Test Data: bid orders (1,2,3,10 bid-orders),total quantity<,= ,> askorder.quantity Steps: 1. enter secrephrase 2. select a ask-order 3. place a -bid-order(quantity,price=ask-order) 4. verify this order is correct or not 5. verify balance=balance-quantity*price-fee 6. verify asset=asset+quantity 7. repeat step 3 use 2,3,10 bid-orders,total quantity>,=, or < askorder.quantity 8. repeat step3,4,5,6, check is correct or not
2-4 Purpose: multi-asks match 1 bid-order Level 2 Prereq: secretphrase,bid order Test Data: ask orders (1,2,3,10 ask-orders),total quantity<, ,> bidorder.quantity,price<,=,> bidorder.price Steps: 1. enter secrephrase 2. select a bid-order 3. place a ask-order(quantity< or> bidorder.quantity,price<,=,or > bid-order.price) 4. verify this order is correct or not 5. verify balance=balance+quantity*price-fee, if price>=bidorder.price 6. verify asset=asset-quantity 7. repeat step 3 use 2,3,10 ask-orders,total quantity>,=, or < askorder.quantity 8. repeat step3,4,5,6, check is correct or not
2-5 Purpose: multi-bids match 1 ask-order, and cancel the askorder Level 2 Prereq: secretphrase,ask order Test Data: bid orders (1,2,3,10 bid-orders) ,a ask order total quantity<,=,> askorder.quantity price = or > askorder.price Steps: 1. enter secrephrase 2. select a ask-order 3. place a -bid-order(quantity,price=ask-order) 4. verify place this order is correct or not(maybe unconfirmed) 5. cancel the ask order 6. verify cancel succeed 7. verify balance=balance-quantity*price-fee 8. verify asset=asset+quantity, if bid-order confirmed faster than cancel askorder confirmed, else asset don’t change. 9. repeat step3 use 2,3,10 bid-orders,total quantity=askorder.quantity,repeate step 5 10. repeat step6,7,8, check is correct or not. Maybe some of bids matched successfully,check the balance,and asset quantity. in this case ,we can cancel bid orders too.
2-6 Purpose: multi-asks match 1 bid-order, and cancel the bidorder Level 2 Prereq: secretphrase,bid order Test Data: ask orders (1,2,3,10 bid-orders) ,a bid order total quantity<,=,> bidorder.quantity price = or > bidorder.price Steps: 1. enter secrephrase 2. select a bid-order 3. place a ask-order(quantity,price<,=,or >ask-order) 4. verify place this order is correct or not(maybe unconfirmed) 5. cancel the bid order 6. verify cancel succeed 7. verify balance=balance+quantity*price-fee 8. verify asset=asset-quantity, if ask-orders confirmed faster than cancel bidorder confirmed, else balance don’t change. 9. repeat step3 use 2,3,10 ask-orders,total quantity<,= or >bidorder.quantity,repeate step 5 10. repeat step6,7,8, check is correct or not. Maybe some of asks matched successfully,check the balance,and asset quantity.
in this case ,we can cancel ask orders too.
|