sfdx-qtc-plugins
Setup
Install as plugin
sfdx plugins:install sfdx-qtc-plugins
Getting started
$ sfdx help qtc
Usage: sfdx qtc:COMMAND
Help topics, type sfdx help TOPIC for more details:
qtc:test run tests
test-runner plugin:
$ sfdx help qtc:test:run
Usage: sfdx qtc:test:run
run tests based on a json definition:
{
"plugins": {},
"tests": [
"path-to-my/test.js"
]
}
Flags:
--loginurl LOGINURL instance ur. test.salesforce.com, vpod.* etc
--password PASSWORD org password
--plan PLAN (required) specify the test plan path
--threads THREADS specify how many tests to run in parallel. max of 5. do not use this if test order or plugin order matters
--username USERNAME org user name
--verbose enable verbose logging
$ sfdx help qtc:test:split
Usage: sfdx qtc:test:split
Splits a test plan
Flags:
--dir DIR specify the output directory (default is the current directory)
--plan PLAN (required) specify the test plan path
--splits SPLITS (required) specify the number of splits