Bitcoin Forum
April 18, 2024, 09:42:35 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: Nxt :: Asset Exchange Test  (Read 1834 times)
mcjavar (OP)
Hero Member
*****
Offline Offline

Activity: 784
Merit: 500


View Profile
March 09, 2014, 12:49:31 AM
 #1

Nxt :: Asset Exchange Test

I have set up a test management tool using Test Pad for the Asset Exchange Testing.
I decided to only register one account for the testers, instead of registering separate accounts for everyone (any paying $9/user/month).
Please PM me for the password.

How to use Test Pad

The login screen.
https://ontestpad.com/login




This is the project overview, where you can select te test cases.




This is the test case detailed view. On the right, marked with yellow, you see the test runs. Every testrun (when a test was carried out by someone) has its own column.




You can start a testrun by clicking the marked icon.




You click through the test case using the marked pop up.




When the test is through, the testcase is marked as successfull.




You can create test cases using this tool AND you can also edit all existing ones, therefore only well known community members will get access to the tool. This is to ensure quality testing.

Please let me know about your thoughts.


1713433355
Hero Member
*
Offline Offline

Posts: 1713433355

View Profile Personal Message (Offline)

Ignore
1713433355
Reply with quote  #2

1713433355
Report to moderator
It is a common myth that Bitcoin is ruled by a majority of miners. This is not true. Bitcoin miners "vote" on the ordering of transactions, but that's all they do. They can't vote to change the network rules.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713433355
Hero Member
*
Offline Offline

Posts: 1713433355

View Profile Personal Message (Offline)

Ignore
1713433355
Reply with quote  #2

1713433355
Report to moderator
btc2nxt
Full Member
***
Offline Offline

Activity: 236
Merit: 100


View Profile
March 09, 2014, 02:08:00 AM
 #2

3-4

Purpose:   1k+ users issue a same asset(with same name ,e.g.Doge), Level 3
Prereq:   secretphrase,balance
Test Data:   balance = >1000
name=Doge (same name)
Steps:   1.   enter secrephrase
2.   enter the name
3.   enter a quantity
4.   click issue asset
5.   verify only one user succeeded


i can help create test cases in Test Pad
allwelder
Legendary
*
Offline Offline

Activity: 1512
Merit: 1004



View Profile
March 09, 2014, 03:21:13 AM
 #3

I used the welys's client for test.
Where did my anther 5 issued asset(named Nxt) go?

 
                                . ██████████.
                              .████████████████.
                           .██████████████████████.
                        -█████████████████████████████
                     .██████████████████████████████████.
                  -█████████████████████████████████████████
               -███████████████████████████████████████████████
           .-█████████████████████████████████████████████████████.
        .████████████████████████████████████████████████████████████
       .██████████████████████████████████████████████████████████████.
       .██████████████████████████████████████████████████████████████.
       ..████████████████████████████████████████████████████████████..
       .   .██████████████████████████████████████████████████████.
       .      .████████████████████████████████████████████████.

       .       .██████████████████████████████████████████████
       .    ██████████████████████████████████████████████████████
       .█████████████████████████████████████████████████████████████.
        .███████████████████████████████████████████████████████████
           .█████████████████████████████████████████████████████
              .████████████████████████████████████████████████
                   ████████████████████████████████████████
                      ██████████████████████████████████
                          ██████████████████████████
                             ████████████████████
                               ████████████████
                                   █████████
.CryptoTalk.org.|.MAKE POSTS AND EARN BTC!.🏆
mcjavar (OP)
Hero Member
*****
Offline Offline

Activity: 784
Merit: 500


View Profile
March 09, 2014, 03:38:26 AM
 #4

3-4

Purpose:   1k+ users issue a same asset(with same name ,e.g.Doge), Level 3
Prereq:   secretphrase,balance
Test Data:   balance = >1000
name=Doge (same name)
Steps:   1.   enter secrephrase
2.   enter the name
3.   enter a quantity
4.   click issue asset
5.   verify only one user succeeded


i can help create test cases in Test Pad


Thank you, I´ve sent you the password for Test Pad.
mcjavar (OP)
Hero Member
*****
Offline Offline

Activity: 784
Merit: 500


View Profile
March 09, 2014, 03:39:19 AM
 #5

I used the welys's client for test.
Where did my anther 5 issued asset(named Nxt) go?


You sold it?
Or someone else sold it? (becaue you are using a simple passphrase)
allwelder
Legendary
*
Offline Offline

Activity: 1512
Merit: 1004



View Profile
March 09, 2014, 02:59:36 PM
 #6

I used the welys's client for test.
Where did my anther 5 issued asset(named Nxt) go?


You sold it?
Or someone else sold it? (becaue you are using a simple passphrase)
YES,I just found it in the Trade History.
Thank you.

 
                                . ██████████.
                              .████████████████.
                           .██████████████████████.
                        -█████████████████████████████
                     .██████████████████████████████████.
                  -█████████████████████████████████████████
               -███████████████████████████████████████████████
           .-█████████████████████████████████████████████████████.
        .████████████████████████████████████████████████████████████
       .██████████████████████████████████████████████████████████████.
       .██████████████████████████████████████████████████████████████.
       ..████████████████████████████████████████████████████████████..
       .   .██████████████████████████████████████████████████████.
       .      .████████████████████████████████████████████████.

       .       .██████████████████████████████████████████████
       .    ██████████████████████████████████████████████████████
       .█████████████████████████████████████████████████████████████.
        .███████████████████████████████████████████████████████████
           .█████████████████████████████████████████████████████
              .████████████████████████████████████████████████
                   ████████████████████████████████████████
                      ██████████████████████████████████
                          ██████████████████████████
                             ████████████████████
                               ████████████████
                                   █████████
.CryptoTalk.org.|.MAKE POSTS AND EARN BTC!.🏆
btc2nxt
Full Member
***
Offline Offline

Activity: 236
Merit: 100


View Profile
March 10, 2014, 02:19:13 AM
 #7

funciton test Level-1,contain 8 test cases

1-1
Purpose:   Issue Asset- Level 1
Prereq:   secretphrase,balance
Test Data:   balance = {0, <1000, 1000,>1000}
name len(0,1,2,3,4,5,6,7,8,9,10,11,100)
quantity=(-1,0,0.1,1,100,1000,100000000000000000000000)
Steps:   1.   enter secrephrase
2.   enter name
3.   enter quantity
4.   click issue
5.   verify transaction is correct

1-2
Purpose:   place ask order- Level 1
Prereq:   secretphrase,asset id,asset quantity
Test Data:   assetid={other acccount issued asset,i issued asset}
balance = {0, 1, >1}
price(-1,0,1.0,>1)
quantity=(-1,0,0.1, =1, asset.quantity,> asset quantity)
Steps:   1.   enter secrephrase
2.   enter assetid/select a asset
3.   enter quantity
4.   enter price
5.   click place-ask-order
6.   verify transaction is correct or not

1-3
Purpose:   place bid order- Level 1
Prereq:   secretphrase,asset id,asset quantity,balance
Test Data:   assetid={other acccount issued asset,i issued asset
balance = {0, =quantity*price, > quantity*price }
price(-1,0,1.0,>1)
quantity=(-1,0,0.1, =1, asset.quantity,> asset quantity)
Steps:   1.   enter secrephrase
2.   enter assetid/select a asset
3.   enter quantity
4.   enter price
5.   click place-bid-order
6.   verify transaction is correct or not

1-4
Purpose:   cancel ask order- Level 1
Prereq:   secretphrase,asset ask order
Test Data:    ask order
Steps:   1.   enter secrephrase
2.   enter orderid/select a ask-order
3.   click cancel-place-ask-order
4.   verify this order is cancelled or not

1-5
Purpose:   cancel bid order- Level 1
Prereq:   secretphrase,asset bid order
Test Data:    bid order- Level 1
Steps:   1.   enter secrephrase
2.   enter orderid/select a bid-order
3.   click cancel-place-bid-order
4.   verify this order is cancelled or not

1-6
Purpose:   check asset quantity- Level 1
Prereq:   secretphrase,asset id ,asset.quantity
Test Data:   quantity=asset.quantity-1, asset.quantity, asset.quantity+1
Steps:   1.   enter secrephrase
2.   enter asset id/select a asset
3.   enter quantity
4.   place a ask order
5.   verify this order is correct or not
6.   verify quantity=your quantity.

1-7
Purpose:   place a ask order, don’t match- Level 1
Prereq:   secretphrase,bid-order
Test Data:   price < bid-order.price
Steps:   1.   enter secrephrase
2.   select a bid order
3.   enter price
4.   click place-ask-order
5.   verify transaction is correct or not
6.   verify balance=balance-fee
7.   verify your asset quantity= your asset quantity -quantity

1-8
Purpose:   place a bid order, don’t match- Level 1
Prereq:   secretphrase,ask-order
Test Data:   price < ask-order.price
Steps:   1.   enter secrephrase
2.   select a ask order
3.   enter price
4.   click place-bid-order
5.   verify transaction is correct or not
6.   verify balance=balance-quantity*price-fee
7.   verify your asset quantity don’t change

tester ,please test these test cases.
btc2nxt
Full Member
***
Offline Offline

Activity: 236
Merit: 100


View Profile
March 11, 2014, 03:47:45 AM
 #8

Asset Test Report:
(windows xp)one pc run 4 test-tools, one notebook run 4 tools too, every peer place bid 1000 orders(Asset:aaa), at GMT 2014-03-10 08:40:00 at the same time. Asset:aaa

peer                                     place order      confirmed orders   account    workstation
http://tn01.nxtsolaris.info:6876     1000              dead,                   T1   PC-A
http://node10.mynxtcoin.org:6876  1000             920                           T2   PC-A
http://node9.mynxtcoin.org:6876   1000              925                     T3   PC-A
http://testnxt-jp.cloudapp.net:6876  1000    all M =1450                    M   PC-A
http://testnxt-ne.cloudapp.net:6876 1000   0                           T1   NB-B
http://testnxt-we.cloudapp.net:6876 1000   12                           T2   NB-B
127.0.0.1:6876  0.8.8                   1000         all M =1450                    M   NB-B
127.0.0.1:6876                            1000         all M =1450                   M   NB-B

insert table show incorrect Huh
1.   NRS can only show 1000 transactions.
2.   account M should finished 3000, actual 1450 confirmed, this half orders were confirmed. don’t know how many orders placed successfully.
3.   why account T1(18417951495642174144) have no orders confirmed?.

Test1
18417951495642174144
Test2
9404937923603975012
Test3
14940513848409477098
Master
1562462127635514638

after modifing the test tools, i will test the case again tomorrow.


after rechecked the balance, found bugs.

Test3
14940513848409477098

1.balance has a little wrong
 before balance:5100
 issued 1000 bid order  ,sum(quantity*price)=54.81
 fee =1000
 new balance 5100-1000-54.81=4045.19 (NRS 4045)
2. NRS can only show 925(bid orders),others 75 confirmed don't show ,but  in my test tool, show these transactions
 
Test2
9404937923603975012

1.balance has a little wrong
balance:5100
issued 1007 bid order  ,sum(quantity*price)=54.65
fee =1007
new balance 5100-1000-54.81=4038.35(4037.81 NRS)

2. NRS can only show 932(bid orders),others 75 confirmed don't show ,but  in my test tool, show these transactions



salsacz
Hero Member
*****
Offline Offline

Activity: 490
Merit: 504


View Profile
March 14, 2014, 04:16:45 PM
 #9

nice pictures, but I really have no idea how to get to the Asset Exchange (link) and how to run it (do I need to install anything?)
l8orre
Legendary
*
Offline Offline

Activity: 1181
Merit: 1018


View Profile
March 14, 2014, 05:13:49 PM
 #10

nice pictures, but I really have no idea how to get to the Asset Exchange (link) and how to run it (do I need to install anything?)

I have to admit that I don't know how to operate this either.

I am using FreeRider to make the tests.

Maybe on Monday I can push an update of FreeRider, where I can Flags where to put in tests!

And an explanation here on how to do it!





btc2nxt
Full Member
***
Offline Offline

Activity: 236
Merit: 100


View Profile
March 15, 2014, 01:00:31 PM
 #11

Asset Test Report:
(windows xp)one pc run 4 test-tools, one notebook run 4 tools too, every peer place bid 1000 orders(Asset:aaa), at GMT 2014-03-10 08:40:00 at the same time. Asset:aaa

peer                                     place order      confirmed orders   account    workstation
http://tn01.nxtsolaris.info:6876     1000              dead,                   T1   PC-A
http://node10.mynxtcoin.org:6876  1000             920                           T2   PC-A
http://node9.mynxtcoin.org:6876   1000              925                     T3   PC-A
http://testnxt-jp.cloudapp.net:6876  1000    all M =1450                    M   PC-A
http://testnxt-ne.cloudapp.net:6876 1000   0                           T1   NB-B
http://testnxt-we.cloudapp.net:6876 1000   12                           T2   NB-B
127.0.0.1:6876  0.8.8                   1000         all M =1450                    M   NB-B
127.0.0.1:6876                            1000         all M =1450                   M   NB-B

insert table show incorrect Huh
1.   NRS can only show 1000 transactions.
2.   account M should finished 3000, actual 1450 confirmed, this half orders were confirmed. don’t know how many orders placed successfully.
3.   why account T1(18417951495642174144) have no orders confirmed?.

Test1
18417951495642174144
Test2
9404937923603975012
Test3
14940513848409477098
Master
1562462127635514638

after modifing the test tools, i will test the case again tomorrow.


after rechecked the balance, found bugs.

Test3
14940513848409477098

1.balance has a little wrong
 before balance:5100
 issued 1000 bid order  ,sum(quantity*price)=54.81
 fee =1000
 new balance 5100-1000-54.81=4045.19 (NRS 4045)
2. NRS can only show 925(bid orders),others 75 confirmed don't show ,but  in my test tool, show these transactions
 
Test2
9404937923603975012

1.balance has a little wrong
balance:5100
issued 1007 bid order  ,sum(quantity*price)=54.65
fee =1007
new balance 5100-1000-54.81=4038.35(4037.81 NRS)

2. NRS can only show 932(bid orders),others 75 confirmed don't show ,but  in my test tool, show these transactions

after retesting  in 0.8.9, this test case is correct.

(Level 3-2 :purpose: 1k+ bidorders match a ask order.)
btc2nxt
Full Member
***
Offline Offline

Activity: 236
Merit: 100


View Profile
March 15, 2014, 01:01:54 PM
 #12

nice pictures, but I really have no idea how to get to the Asset Exchange (link) and how to run it (do I need to install anything?)

Asset Tester version 0.2 Windows Platform

https://bitbucket.org/btc2nxt/nxt_tester/downloads/Nxt_Tester_Win32_64.rar
btc2nxt
Full Member
***
Offline Offline

Activity: 236
Merit: 100


View Profile
March 15, 2014, 02:58:38 PM
 #13

Level 3-1 Test Case
Purpose:    multi-bidorder VS  multi-ask-order

account T1, balance=2098.99   
at GMT 08:10, place 1000 ask orders(asset=aacoin), price=1, quantity between 1 and 10
succeeded 999 ask orders( i can see 1000 transaction in test-tool with 974 ask orders and 27 old transaction. And when i first time login NRS  with account T1, i saw 1025 transaction in NRS with 26 old transactions)

account t7, balance=4044   
at GMT 08:10, place 1000  bid  orders(asset=aacoin), price=1, quantity between 1 and 10
succeeded 999 bid orders(total cost 54.93)
Test-tools showed 196 bid orders don’t match , sum=10.94

if t1 has placed successfully 999 ask orders.
account    ask/bid costs               fee         new balance         NRS showing balance
t1(2098.99)  +43.99(54.93-10.94)   -999        1143.98                1203.65 (?)
t7(4044)     -54.93                       -999        2990.07                2990.07  (OK)

if t1 has placed successfully 974 ask orders.
t1(2098.99)  +43.99              -974      1168.98         1203.65 (?)

i guess ask-orders may has been miscalculated.

btc2nxt
Full Member
***
Offline Offline

Activity: 236
Merit: 100


View Profile
March 16, 2014, 05:35:29 AM
 #14

Level 3-1 Test Case
Purpose:    multi-bidorder VS  multi-ask-order

account T1, balance=2098.99   
at GMT 08:10, place 1000 ask orders(asset=aacoin), price=1, quantity between 1 and 10
succeeded 999 ask orders( i can see 1000 transaction in test-tool with 974 ask orders and 27 old transaction. And when i first time login NRS  with account T1, i saw 1025 transaction in NRS with 26 old transactions)

account t7, balance=4044   
at GMT 08:10, place 1000  bid  orders(asset=aacoin), price=1, quantity between 1 and 10
succeeded 999 bid orders(total cost 54.93)
Test-tools showed 196 bid orders don’t match , sum=10.94

if t1 has placed successfully 999 ask orders.
account    ask/bid costs               fee         new balance         NRS showing balance
t1(2098.99)  +43.99(54.93-10.94)   -999        1143.98                1203.65 (?)
t7(4044)     -54.93                       -999        2990.07                2990.07  (OK)

if t1 has placed successfully 974 ask orders.
t1(2098.99)  +43.99              -974      1168.98         1203.65 (?)

i guess ask-orders may has been miscalculated.



nxt.8.10, re-tested this case , Ok.

account T8, balance=4036   
at GMT 04:40, place 998 ask orders(asset=t8coin), price=1, quantity between 1 and 10
succeeded 996 ask orders
Test-tools showed 101 ask orders don’t match , sum=5.57

account t9, balance=946   
at GMT 04:40, place 998  bid  orders(asset=t8coin), price=1, quantity between 1 and 10
succeeded 896 bid orders(total cost 49.16)

account    ask/bid costs               fee         new balance         NRS showing balance
t8(4036-1000)  +49.16                       -996        2089.16                2089.16 (OK)
t9(946)            -49.16                       -896        0.84                     0.84     (OK)
bestcoin3f
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile
March 16, 2014, 05:42:18 AM
 #15

This information is very useful, thank you.
l8orre
Legendary
*
Offline Offline

Activity: 1181
Merit: 1018


View Profile
March 16, 2014, 09:57:12 AM
 #16



just ran successfullyy the followint test:

place 5 bid orders with delay of 0.1seconds for FreeRiders  __AE_TESTASSET for 1.00, 1.01 , 1.02, 1.03 , 1.04 NXT

then switched accts and issued 5 ASK orders opposing price.

3 ASK and BID orders got matched, the other 2 ASK and 2 BID orders were not matched due to matching algo.





Code:
test reports go here

########### balances before start:
bal: 20959131
unconfBal: 20878153
effBal: 478800

########### NRS Reply:

17013946196269039783

########### NRS Reply:

3805469495768257697

########### NRS Reply:

15392097526985690196

########### NRS Reply:

2205660870452008538

########### NRS Reply:

4617785066900598302

########### balances before start:
bal: 850602
unconfBal: 850602
effBal: -374200

########### NRS Reply:

12717458875039409204

########### NRS Reply:

9865539431610796837

########### NRS Reply:

11948533790191664970

########### NRS Reply:

17344308578749943465

########### NRS Reply:

12103931048489126693

Code:
test comments go here
starting test: 1394963208.7457452
sending query: {'queryNum': 0, 'emitter': 'nxtUCTest2 here', 'timestamp': '1394963208.7460494'}
sending query: {'queryNum': 1, 'emitter': 'nxtUCTest2 here', 'timestamp': '1394963208.7484367', 'qqLen': 0}
sending query: {'queryNum': 2, 'emitter': 'nxtUCTest2 here', 'timestamp': '1394963208.7510867', 'qqLen': 1}
sending query: {'queryNum': 3, 'emitter': 'nxtUCTest2 here', 'timestamp': '1394963208.754393', 'qqLen': 2}
sending query: {'queryNum': 4, 'emitter': 'nxtUCTest2 here', 'timestamp': '1394963208.7574875', 'qqLen': 3}

########### NRS Query:

queryNum - 0

emitter - nxtUCTest2 here

timestamp - 1394963208.7460494

qqLen - 0

########### poll acct balances:

########### NRS Query:

queryNum - 1

emitter - nxtUCTest2 here

timestamp - 1394963208.7484367

qqLen - 1

########### poll acct balances:

########### NRS Query:

queryNum - 2

emitter - nxtUCTest2 here

timestamp - 1394963208.7510867

qqLen - 2

########### poll acct balances:

########### NRS Query:

queryNum - 3

emitter - nxtUCTest2 here

timestamp - 1394963208.754393

qqLen - 3

########### poll acct balances:

########### NRS Query:

queryNum - 4

emitter - nxtUCTest2 here

timestamp - 1394963208.7574875

qqLen - 4

########### poll acct balances:
starting test: 1394963279.4895866
sending query: {'queryNum': 0, 'emitter': 'nxtUCTest2 here', 'timestamp': '1394963279.4909518'}
sending query: {'queryNum': 1, 'emitter': 'nxtUCTest2 here', 'timestamp': '1394963279.4939256', 'qqLen': 0}
sending query: {'queryNum': 2, 'emitter': 'nxtUCTest2 here', 'timestamp': '1394963279.4975202', 'qqLen': 1}
sending query: {'queryNum': 3, 'emitter': 'nxtUCTest2 here', 'timestamp': '1394963279.4987655', 'qqLen': 2}
sending query: {'queryNum': 4, 'emitter': 'nxtUCTest2 here', 'timestamp': '1394963279.5000138', 'qqLen': 3}

########### NRS Query:

queryNum - 1

emitter - nxtUCTest2 here

timestamp - 1394963279.4939256

qqLen - 1

########### NRS Query:

queryNum - 3

emitter - nxtUCTest2 here

timestamp - 1394963279.4987655

qqLen - 3

########### NRS Query:

queryNum - 2

emitter - nxtUCTest2 here

timestamp - 1394963279.4975202

qqLen - 2

########### NRS Query:

queryNum - 0

emitter - nxtUCTest2 here

timestamp - 1394963279.4909518

qqLen - 0

########### NRS Query:

queryNum - 4

emitter - nxtUCTest2 here

timestamp - 1394963279.5000138

qqLen - 4
l8orre
Legendary
*
Offline Offline

Activity: 1181
Merit: 1018


View Profile
March 16, 2014, 10:17:07 AM
Last edit: March 16, 2014, 12:25:45 PM by l8orre
 #17

I have just updated FreeRider to include a 'nxtTestCases' class, that allows scripting of NRS queries, and a Win6 that has  basic buttons and text edits to disply results.

I am currently running a test where 1000 BID orders are issued with increasing prices in increments of 0.01Nxt

as per CfB, jetty uses a queue wirth max length 50, so that qeuries are discarded whenever this queue is full.

Ubuntu, needs Qt4, python requests module, and python3



You can download FreeRider here:

git clone https://github.com/l8orre/FreeRider


for questions and comments, PM me or ask here ...


update: this looks good, because I have orders from 100 .. 1099 sitting in the order book ! check out the FreeRiders! Later, I'll try to SELL them with ONE collective ASK order from the issuer, and calculate the moneyTransfer involved

edit:


just kicking up a MASSIVE SELL wall of 2500 SELL orders for FreeRiders - time delay is 500ms between two queries price increment is 0.01Nxt, Volume is random between 1..12

hey guys and gals - try to get some!




btc2nxt
Full Member
***
Offline Offline

Activity: 236
Merit: 100


View Profile
March 17, 2014, 04:35:23 AM
 #18

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.
btc2nxt
Full Member
***
Offline Offline

Activity: 236
Merit: 100


View Profile
March 17, 2014, 04:35:58 AM
 #19

ontestpad updated
coinmine33
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile
March 17, 2014, 05:51:29 AM
 #20

good information foe me. thank you.
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!