@testim/testim-cli-dev v4.141.1-19-g0da8d1e259
TESTIM.IO
Web & Mobile Test Automation Solution. Built for agile teams. Testim is a cloud service that instantly enables Test Automation to make your Continuous Delivery ready.
For more information please check out https://testim.io and https://help.testim.io/docs
For any questions please talk to our support from the chat window at https://app.testim.io
For the live and up to date documentation of this tool please check out this guide on integrating Testim into your CI/CD.
Installation
Install the testim CLI globally:
$ npm i -g @testim/testim-cliCLI Options
Token:
--tokenUse the token you got from testim.io (if you don't have one email info@testim.io)
testim --token my.tokenProject:
--projectSelect which project to run tests from
testim -project "My Project"Label:
--label or -lRun all tests comprising one of the mentioned labels
testim -l my-label1 -l my-label2Run by test name:
testim -n test-name1 -n test-name2Grid host url
--hostGrid host port
--port or -pRun on a specific Selenium Grid
testim -host 127.0.0.1 -p 4444Console Reporter
testim --reporters consoleJUnit Reporter
testim --reporters junit --report-file ~/report.xmlTeamCity Reporter
testim --reporters teamcityBase URL
--base-urlStarting URL after browser opens
testim --base-url www.testim.ioApplitools Key
--applitools-key
testim --applitools-key sadfsdflkjdsf-sdf-fdsSauce Labs Key
--sauce-key
testim --sauce-key sadfsdflkjdsf-sdf-fdsSauce Labs User
--sauce-user
testim --sauce-user sadfsdflkjdsf-sdf-fdsBrowserStack Key
--browserstack-key
testim --browserstack-key sadfsdflkjdsf-sdf-fdsBrowserStack User
--browserstack-user
testim --browserstack-user sadfsdflkjdsf-sdf-fdsBrowserStack Options
--browserstack-options
testim --browserstack-options browser-stack.jsonBrowserStack Options Config File Example
{
"browserName" : "chrome",
"browser_version" : "53.0",
"os" : "Windows",
"os_version" : "7"
}Tunnel
Open a tunnel between your local server and the selenium server. Test base url will be replaced by the tunnel url.
--tunnel
--tunnel-port <SERVER_PORT> - optional
testim --tunnel --tunnel-port 8080Version Control (Branches)
To run on a specific branch, use this parameter in your CLI
--branch <branch-name>If you are using one of the following: Jenkins, CircleCI or TravisCI, The Testim CLI will automatically run tests for the same branch if the following parameter is used.
--branch auto-detectEnvironment Variables
The following are Environment Variables that the runner listens to:
"SERVICES_HOST": "http://localhost:8080""DEBUG_MODE": "1""LOGGER_DEBUG": "1""LOGGER_CONSOLE": "1""DEFAULT_REQUEST_TIMEOUT": "3000000""OVERRIDE_TIMEOUTS": "1000000""WEBDRIVER_DEBUG": "1""OVERRIDE_SCHEDULER": "true
License
© 2014-2019 Testim. All Rights Reserved.
9 months ago
9 months ago