Skip to content

Commit

Permalink
Merge pull request #40 from tonlabs/SDK-4154-flex-api-integration-tes…
Browse files Browse the repository at this point in the history
…t-plan-and-scenarios

SDK-4094 & SDK-4154 testplan for FLEX api & sdk
  • Loading branch information
elasticLove1 authored Dec 29, 2022
2 parents a179d12 + 234e966 commit ce1442d
Show file tree
Hide file tree
Showing 6 changed files with 615 additions and 0 deletions.
20 changes: 20 additions & 0 deletions integration-test/FLEX.API.suite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
*** Settings ***
# Prerequisite
- Deploy Msig everWallet (1000 EVER)
- Mint TIP3.2 tokens (100 TSDT) for Msig everWallet
- Deploy Flex client (100 EVER)
- Generate pub/priv keys for Trader Id
- Deploy Trader wallets (Native 100 EVER & Wrapped 50 TSDT & Wrapped 50 EVER)
- makeOrder(priceA)
- makeOrder(priceZ)
- create another Trader and his wallets
- makeOrder(priceX buys priceZ)

*** Test Cases ***
# API
Test query
call flex.query(generated from FLEX.mm.md#FLEX.API.query.flex)

# API
Test subscription
call flex.query(generated from FLEX.mm.md#FLEX.API.subscription)
32 changes: 32 additions & 0 deletions integration-test/FLEX.deploy.suite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
*** Settings ***
# Prerequisite
- Deploy Msig everWallet (1000 EVER)
- Mint TIP3.2 tokens (100 TSDT) for Msig everWallet
- Deploy Flex client (100 EVER)
- Generate pub/priv keys for Trader Id
- Deploy Trader wallets (Native 100 EVER & Wrapped 50 TSDT & Wrapped 50 EVER)

*** Test Cases ***
# Flex client
Test client deploy
call Client.deploy
Verify client exists

# Trader
Test trader deploy
call Trader.dploy
Verify trader exists

Test deployEverWallet
[after] deploy trader
call Trader.deployEverWallet
Verify wallet value

Test deployTip31Wallet
[after] deploy trader
call Trader.deployEverWallet
Verify wallet value

Test topUp
call Trader.deployEverWalletopUp
Verify wallet value
Loading

0 comments on commit ce1442d

Please sign in to comment.