Turn your manual testers into automation experts! Request a DemoStart testRigor Free

Command Line

This is a command line tool for TestRigor. It allows you to run TestRigor tests from the command line.

Installation

  1. Install Node.js (version 18 or higher)
  2. Install TestRigor CLI:
    npm install -g testrigor-cli

Examples

  1. Basic
    testrigor test-suite run <test-suite-id> --token <token>
  2. With new URL
    testrigor test-suite run <test-suite-id> --token <token> --url <url>
  3. With file upload
    testrigor test-suite run <test-suite-id> --token <token> --file-path <path-to-file>
  4. With branch
    testrigor test-suite run <test-suite-id> --token <token> --branch <branch> --commit <commit>
  5. With variables
    testrigor test-suite run <test-suite-id> --token <token> --variables-path file.json
  6. Localhost mode
    testrigor test-suite run <test-suite-id> --token <token> --localhost --url <url>
  7. With test cases
    testrigor test-suite run <test-suite-id> --token <token> --test-cases-path test_cases/**/*.{yaml,txt}
  8. With rules
    testrigor test-suite run <test-suite-id> --token <token> --rules-path rules/**/*.yaml
  9. With settings (can be JSON or YAML)
    testrigor test-suite run <test-suite-id> --token <token> --settings-path settings.yaml
  10. Run single test case
    testrigor test-suite run <test-suite-id> --token <token> --test-case-uuid <id> --url <url>
  11. Run single test case in localhost mode
    testrigor test-suite run <test-suite-id> --token <token> --test-case-uuid <id> --localhost --url <url>
  12. Run with auto create ai rules enabled
    testrigor test-suite run <test-suite-id> --token <token> --test-cases-path test_cases/**/*.{yaml,txt} --auto-create-ai-rules
  13. Run with explicit mutations enabled
    testrigor test-suite run <test-suite-id> --token <token> --test-cases-path test_cases/**/*.{yaml,txt} --explicit-mutations
  14. With all options
    testrigor test-suite run <test-suite-id> --token <token>  --localhost --url <url>  --branch <branch> --commit <commit> --variables-path file.json --test-cases-path test_cases/**/*.{yaml,txt} --rules-path rules/**/*.{yaml,txt} --auto-create-ai-rules --explicit-mutations
  15. Don’t wait for the test suite run to finish
    testrigor test-suite run <test-suite-id> --token <token> --async
  16. Save JUnit report (works only in sync mode)
    testrigor test-suite run <test-suite-id> --token <token> --junit-report-save-path ./report.xml
  17. With comma-separated labels
    testrigor test-suite run <test-suite-id> --token <token> --labels <labels> 
  18. Excluding comma-separated labels
    testrigor test-suite run <test-suite-id> --token <token> --excluded-labels <excluded-labels> 
Privacy Overview
This site utilizes cookies to enhance your browsing experience. Among these, essential cookies are stored on your browser as they are necessary for ...
Read more
Strictly Necessary CookiesAlways Enabled
Essential cookies are crucial for the proper functioning and security of the website.
Non-NecessaryEnabled
Cookies that are not essential for the website's functionality but are employed to gather additional data. You can choose to opt out by using this toggle switch. These cookies gather data for analytics and performance tracking purposes.