btc2nxt


March 08, 2014, 09:23:22 AM 

Level2 bidask match test cases,contain 6 test cases
21 Purpose: multibids equal 1 askorder Level 2 Prereq: secretphrase,ask order Test Data: bid orders (1,2,3,10 bidorders) Steps: 1. enter secrephrase 2. select a askorder 3. place a bidorder(quantity,price=askorder) 4. verify this order is correct or not 5. verify balance=balancequantity*pricefee 6. verify asset=asset+quantity 7. repeat step3 use 2,3,10 bidorders,total quantity=askorder.quantity 8. repeat step4,5,6, check is correct or not
22 Purpose: multiasks equal 1 bidorder Level 2 Prereq: secretphrase,bid order Test Data: ask orders (1,2,3,10 askorders) Steps: 1. enter secrephrase 2. select a bidorder 3. place a askorder(quantity,price=bidorder) 4. verify this order is correct or not 5. verify balance=balance+quantity*pricefee 6. verify asset=asset  quantity 7. repeat step3,4,5 use 2,3,10 askorders,total quantity=bidorder.quantity 8. repeat step4,5,check is correct or not
23 Purpose: multibids match 1 askorder Level 2 Prereq: secretphrase,ask order Test Data: bid orders (1,2,3,10 bidorders),total quantity<,= ,> askorder.quantity Steps: 1. enter secrephrase 2. select a askorder 3. place a bidorder(quantity,price=askorder) 4. verify this order is correct or not 5. verify balance=balancequantity*pricefee 6. verify asset=asset+quantity 7. repeat step 3 use 2,3,10 bidorders,total quantity>,=, or < askorder.quantity 8. repeat step3,4,5,6, check is correct or not
24 Purpose: multiasks match 1 bidorder Level 2 Prereq: secretphrase,bid order Test Data: ask orders (1,2,3,10 askorders),total quantity<, ,> bidorder.quantity,price<,=,> bidorder.price Steps: 1. enter secrephrase 2. select a bidorder 3. place a askorder(quantity< or> bidorder.quantity,price<,=,or > bidorder.price) 4. verify this order is correct or not 5. verify balance=balance+quantity*pricefee, if price>=bidorder.price 6. verify asset=assetquantity 7. repeat step 3 use 2,3,10 askorders,total quantity>,=, or < askorder.quantity 8. repeat step3,4,5,6, check is correct or not
25 Purpose: multibids match 1 askorder, and cancel the askorder Level 2 Prereq: secretphrase,ask order Test Data: bid orders (1,2,3,10 bidorders) ,a ask order total quantity<,=,> askorder.quantity price = or > askorder.price Steps: 1. enter secrephrase 2. select a askorder 3. place a bidorder(quantity,price=askorder) 4. verify place this order is correct or not(maybe unconfirmed) 5. cancel the ask order 6. verify cancel succeed 7. verify balance=balancequantity*pricefee 8. verify asset=asset+quantity, if bidorder confirmed faster than cancel askorder confirmed, else asset don’t change. 9. repeat step3 use 2,3,10 bidorders,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.
26 Purpose: multiasks match 1 bidorder, and cancel the bidorder Level 2 Prereq: secretphrase,bid order Test Data: ask orders (1,2,3,10 bidorders) ,a bid order total quantity<,=,> bidorder.quantity price = or > bidorder.price Steps: 1. enter secrephrase 2. select a bidorder 3. place a askorder(quantity,price<,=,or >askorder) 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*pricefee 8. verify asset=assetquantity, if askorders confirmed faster than cancel bidorder confirmed, else balance don’t change. 9. repeat step3 use 2,3,10 askorders,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.
