Smashtest: Command-line options mapped to smashtest.json
10 Apr 2020Specification for smashtest.json equivalents of the command-line options.
Introduction
This post lists the command-line options to run the smashtest application via a json configuration file.
Mappings
--debug=[hash]
{
"debug": "[hash]"
}
--groups=[value] or –groups=”group1,group2+group3”
{
"groups": "group1,group2+group3"
}
--g:[name]=[value]
{
"g:variableName1": "value1",
"g:variableName2": "value2",
"g:variableName3": "value3",
}
--headless=[true/false]
{
"headless": true
}
--max-parallel=[N]
Any number above 0.
{
"max-parallel": 3
}
--max-screenshots=[N]
Any number above 0.
{
"max-screenshots": 7
}
--min-frequency=[high/med/low]
Value can be high
, med
, or low
.
{
"min-frequency": "high"
}
--no-debug
{
"no-debug": ""
}
--output-errors=[true/false]
{
"output-errors": true
}
--p:[name]=[value]
{
"p:variableName1": "value1",
"p:variableName2": "value2",
"p:variableName3": "value3",
}
--random=[true/false]
{
"random": false
}
--recursive
{
"recursive": ""
}
--report-domain=[domain or domain:port]
It must be in the format ‘domain’ or ‘domain:port’.
{
"report-domain": "domain:port"
}
--report-history=[true/false]
{
"report-history": true
}
--report-path=”[absolute path]”
{
"report-path": "[absolute path]"
}
--report-server=[true/false]
{
"report-server": true
}
--screenshots=[true/false]
{
"screenshots": true
}
--skip-passed=[true/false/filename], -s, -a
{
"skip-passed": "true/false/filename as a string",
"s": "",
"a": ""
}
--step-data=[all/fail/none]
Value can be all
, fail
, or none
.
{
"step-data": "all"
}
--test-server=[url]
{
"test-server": "[url]"
}