-
Notifications
You must be signed in to change notification settings - Fork 13
Development::QA::Artillery Tests and Scenario Management
Lincon Vidal edited this page Mar 18, 2025
·
1 revision
To install Artillery globally:
npm install -g artilleryYou can run scenarios individually or collectively using the methods below.
To execute all scenarios defined within a test YAML file:
artillery run artilleryTests/preprod/preprod-rosetta-stability-test.ymlTo record results on Artillery Cloud (with your specific key):
artillery run artilleryTests/preprod/preprod-rosetta-stability-test.yml \
--record \
--key YOUR_API_KEYReplace YOUR_API_KEY with your actual Artillery key.
Use the --scenario-name flag to specify one scenario per run:
artillery run \
--scenario-name "Network status test" \
artilleryTests/preprod/preprod-rosetta-stability-test.ymlYou can only specify one scenario per run. To run multiple scenarios individually, execute separate commands.
artillery run \
--scenario-name "Account balance test" \
artilleryTests/mainnet/mainnet-rosetta-stability-test.yml \
--name "Account balance" \
--tags "env:mainnet,version:1.2.4,repo:cardano-rosetta-java" \
--record \
--key YOUR_API_KEY
artillery run \
--scenario-name "Block transaction test" \
artilleryTests/mainnet/mainnet-rosetta-stability-test.yml \
--name "Block transaction" \
--tags "env:mainnet,version:1.2.4,repo:cardano-rosetta-java" \
--record \
--key YOUR_API_KEY
artillery run \
--scenario-name "Search transactions test" \
artilleryTests/mainnet/mainnet-rosetta-stability-test.yml \
--name "Search transactions" \
--tags "env:mainnet,version:1.2.4,repo:cardano-rosetta-java" \
--record \
--key YOUR_API_KEY