If you need to create a custom list of tests that you will need to revisit, you can do so using tags and saved filters. To do so, tag the tests that you wish to organize and then create a saved filter using those tags.

Common Use Cases

Saved filters can be useful for a few common use cases:

  • Draft – As you start drafting tests, tag them as #draft and create a saved filter with this view. Remove the #draft tag once it’s done. The "Draft” saved filter can become a to-do list.
  • Archived – For obsolete or deprecated tests, it can be common practice to tag them as #archived, rather than delete them, and create a saved filter to view these tests.
  • Bugs – For known issues, it can be helpful to tag the test with #bug and create a saved filter to aggregate all issues.

If you are organizing your tests by feature or into smoke and regression test suites, it’s generally recommended that you use Features and Run Groups, respectively. 

Creating a Saved Filter

To create a saved filter, click the “+” button next to Saved Filters and specify the tags you wish to filter by. Saved filters let you use advanced conditions to generate and you can add as many conditions as you’d like. 

To populate saved filters, add tags to tests to fulfill the saved filter condition and they will show up automatically.

Running Saved Filters

There are 3 ways to run saved filters:

  • Click the “Run” button and select platforms to run your tests
  • Run from the CLI using the command rainforest run --folder 2343
  • Add a saved filter to a run group and trigger the run group

To add a saved filter to a run group, click Run > Add to Run Group on the saved filter view. 

Watch here: 

Did this answer your question?