While Rainforest has an intuitive UI where you can manage test cases and review your results, many teams like to have a workflow-native alternative for test execution. For dev-centric teams who are comfortable with technical solutions, or who use continuous integration and continuous delivery methods, the Rainforest command line interface (CLI) provides a more streamlined way to initiate test runs.
Over 30% of all the test runs in Rainforest are executed via our command line interface, allowing technical users to initiate tests from any script and better integrate QA into their development process. Here are just a few examples of how teams are using the CLI:
Here are the steps you’ll need to take to get your Rainforest CLI up and running.
Visit our CLI page to download the rainforest-cli file and install it. We support Mac, Windows and Linux.
In your Rainforest account, go to Settings > Integrations and copy your API token. This token is unique to each user in your company account.
To run your first test, go to your terminal window and try the following basic command. The test ID can be found on any test page, next to the title.
rainforest run --tokenFor example, to run test ID 1 using your token xyz, the command would look like this:
rainforest run 1 --token xyzVoilà! You ran your first test from the CLI. To perform other commands, check out the CLI documentation on our GitHub page. Watch the video below to see how it works in action:
Rainforest is designed to fit seamlessly into developer workflows and bring QA closer to development. Learn more about setting up your CLI for Continuous Integration here.