The project is intended for testing Echo. Includes testing:
- Api
- Operations
- Testing according to specified scenarios
$ git clone https://gitlab.pixelplex.by/631_echo/pytests.git
$ cd pytests
$ virtualenv venv
$ .\venv\Scripts\activate
$ pip install -r requirements.txt
Before running the tests, you can specify a environment variables, examples: BASE_URL, NATHAN_PK. For this you need, example:
- Linux OS: export BASE_URL=needed_url
- Windows OS: set BASE_URL=needed_url
After that you can use following commands:
Filter | lcc commands |
---|---|
Run all tests | $ lcc run |
Run tests with special tag | $ lcc run -a tag_name |
Run tests with special property | $ lcc run -m property_kind:property_name |
Run tests with special link | $ lcc run -l link_name |
Run only passed tests | $ lcc run --passed |
Run only failed tests | $ lcc run --failed |
Run only skipped tests | $ lcc run --skipped |
Run only non-passed tests | $ lcc run --non-passed |
Run only disabled tests | $ lcc run --disabled |
Run only enabled tests | $ lcc run --enabled |
Run tests from special report | $ lcc run --from-report path_to_report |
note: can combine run options, for example - $ lcc run --failed --from-report reports/report-2
- get_global_properties
- get_required_fees
- get_objects
- set_subscribe_callback
- set_pending_transaction_callback
- set_block_applied_callback
- cancel_all_subscriptions
- get_block_header
- get_block
- get_transaction
- get_recent_transaction_by_id
- get_chain_properties
- get_config
- get_chain_id
- get_dynamic_global_properties
- get_key_references
- get_accounts
- get_full_accounts
- get_account_by_name
- get_account_references
- lookup_account_names
- lookup_accounts
- get_account_count
- get_account_balances
- get_account_addresses
- get_account_by_address
- get_named_account_balances
- get_balance_objects
- get_vested_balances
- get_vesting_balances
- get_assets
- list_assets
- lookup_asset_symbols
- get_committee_members
- get_committee_member_by_account
- lookup_committee_member_accounts
- lookup_vote_ids
- get_transaction_hex
- get_required_signatures
- get_potential_signatures
- verify_authority
- verify_account_authority
- validate_transaction
- get_proposed_transactions
- get_contract_logs
- subscribe_contract_logs
- get_contract_result
- get_contract
- call_contract_no_changing_state
- get_contracts
- get_contract_balances
- get_eth_address
- subscribe_contracts
- get_account_deposits
- get_account_withdrawals
- get_contract_fee_pool_balance
- get_contract_pool_whitelist
- get_erc20_token
- get_erc20_account_deposits
- get_erc20_account_withdrawals
- get_account_history
- get_relative_account_history
- get_account_history_operations
- get_contract_history
- broadcast_transaction
- broadcast_block
- broadcast_transaction_with_callback
- broadcast_transaction_synchronous
- account_create_operation
- account_update_operation
- account_whitelist_operation
- account_upgrade_operation
- account_transfer_operation
- asset_create_operation
- asset_global_settle_operation
- asset_settle_operation
- asset_settle_cancel_operation [VIRTUAL]
- asset_fund_fee_pool_operation
- asset_update_operation
- asset_update_bitasset_operation
- asset_update_feed_producers_operation
- asset_publish_feed_operation
- asset_issue_operation
- asset_reserve_operation
- asset_claim_fees_operation
- committee_member_create_operation
- committee_member_update_operation
- committee_member_update_global_parameters_operation