Tests

Important

The Tests page is only available if Workflow is enabled, workflow is enabled by default.

Associate a test with a workflow to ensure that the test is run when a review associated with that workflow is started or updated. Associate a test with the global workflow to ensure that the test is run whenever a Swarm review is started or updated. This ensures that the global tests are enforced for all changes even if they are not part of a project.

  • Swarm tests can be created by any Swarm user.
  • Shared Swarm tests can be viewed by any Swarm user.
  • Shared Swarm tests can be added to a workflow by any Swarm user that is authorized to edit the workflow.
  • Shared Swarm tests can be added to the global workflow by any Swarm user that is authorized to edit the global workflow.

This section provides an introduction to listing, searching, and viewing tests.

  • For instructions on how to add a test, see Add a test.
  • For instructions on how to edit a test, see Edit a test.
  • For instructions on how to delete a test, see Delete a test.
  • For instructions on how to add a test to a workflow, see Add a workflow.
  • For instructions on how to add a test to the global workflow, see Global workflow.

Listing tests

To view a list of tests, click Tests in the menu.

Image of the Tests Page

Logged-in users can choose which tests to display by clicking on the My Tests tab or the All Tests tab. Anonymous users only see the shared tests, the My Tests tab is not available to anonymous users:

  • The My Tests: tab lists all of the tests that you are an owner of.
  • The All Tests: tab lists the all of the shared tests, and tests that you are an owner of.
Tip

The Test Owner icon Owner Icon image is displayed for tests you own.

Search test names and test descriptions

You can search for Swarm test names and for the content of the test description from the tests page:

  1. Enter text in the search box.
  2. Click Search.
  3. Any tests names and descriptions that match the search text are displayed in the tab:

    Test search result image

Tip

Switch to the other test tab to display search results for that tab.

Viewing a test that you own

To view test details:

  1. Click Tests in the menu.
  2. Click on the name of the test you want to view.
  3. For information about editing the test, see Add a test.

    Note

    You can edit a test if you are the owner of the test, or if you have super user rights.

    Test Settings image

Viewing a shared test that you do not own

Shared tests can be viewed and used by all Swarm users.

To view test details:

  1. Click Test in the menu.
  2. Click on the name of the test you want to view.
  3. To avoid leaking sensitive information to users that do not own the test, configuration details are hidden.

    Read Only Test image