Skip to content
ADS (ESC) Tests
Java Perl Gherkin Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
key
load
qa
.gitignore
LICENSE
NET.pm
README.md
create_net.pl
delete_node.pl
ex-client.pl
extract_requests_from_log.sh
genesis.json
get_servers.pl
pom-qa.xml
run_escd.pl
servers.srv
sonar-project.properties
test_qa.sh

README.md

ADS tests


QA Tests

Requirements

Tests require Java 1.8 and Maven.

Commands to run tests

Command to run tests:

mvn clean test -f pom-qa.xml

Available options:

  • -Dgenesis.file=PATH_TO_GENESIS_FILE starts test with custom genesis file, default is genesis.json in working directory,
  • -Dcucumber.options sets cucumber framework options, could be used to specify test category,
  • -Dis.docker:
    • 0 - (default) test with local binary (must be added to PATH),
    • 1 - test on Docker,
  • -Ddir.data sets directory in which is stored nodes and users data, default is /ads-data.

Available test categories are:

  • account - change account key, and create account in local and remote node,
  • broadcast - broadcast message,
  • dry_run - dry-run option, includes transfer with signature generated by other user,
  • fee_sharing - check profit_shared value from log,
  • function - check other function:
    • get_accounts,
    • log_account,
  • node - change node key, create node,
  • non_existent - transaction to non-existent user or node,
  • retrieve_funds - funds retrieval from inactive account,
  • status - change account/node status,
  • transfer - local and remote transfers, both groups have detail categories transfer_local and transfer_remote,
  • vip_key - check vip keys.

By default all tests will be run. To run specific category of tests cucumber.options must be defined. Below is example to run transfer tests:

mvn clean test -f pom-qa.xml -Dcucumber.options="--tags @transfer"

You can’t perform that action at this time.