Cli Options
You can see the cli commands on the screen you can access with sente -h

--env
With this command you can select the test environment where you want the test to run. For more information about environments, see the environments section.
Usage --env=<
GroupName
>-<
EnvironmentKey
>
If it is run without the --env option, it will run with the default environment. To change the default environment, see the set section.
See the examples below.
Group: Develelopment , Environment Key: env1 (Default Environment)
sente ./tests/sample1.js
Group: Develelopment , Environment Key: env2
sente ./tests/sample1.js --env=dev-env2
Group: Production , Environment Key: env1
sente ./tests/sample1.js --env=prod-env1
--config
You can temporarily change or add any test parameter from the cli instead of changing it in the file. See the examples below.
STRING, Variable Name: parameter1 , Variable Value: value1
sente ./tests/sample1.js --config=' "parameter1":"value1" '
STRING, Variable Name: browser_type , Variable Value: firefox
sente ./tests/sample1.js --config=' "browser_type":"firefox" '
ARRAY, Variable Name: parameter2 , Variable Value: ["valueX","valueY"] '
sente ./tests/sample1.js --config=' "parameter2":["valueX","valueY"] '
OBJECT, Variable Name: parameter2 , Variable Value: ["valueX","valueY"] '
sente ./tests/sample1.js --config=' "parameter3":{"parameter4":"valueZ"} '
Multiple Paremeter
sente ./tests/sample1.js --config=' "parameter1":"value1", "parameter2":["valueX","valueY"], "parameter3":{"parameter4":"valueZ"} '
-t
sente -t
sente --take_screenshoot
This option, allow taking screenshots in UI commands such as click, go, write, etc.
-n
sente -n
sente --new
This option allows the browser to start a new session at each test start in web gui tests. If this option is not used, the test will continue through the open session.
init
sente init
With this command, you can generate a new sente project.
new
sente new
You can generate a new Test, Environment, Language, Helper or Object Repository with this command.

set
sente set
Changes the default environment. This change is permanent.
For more information about environments, see the environments section.

Last updated