IntelliJ IDEA 2021.1 Help

Local TMS

Local TMS is a lightweight and agile way to store and manage your test data well suited for teams regardless of their size. Local TMS stores test data as a collection of t.md and r.md files right in the project. This approach allows for branching, versioning, reviewing, and better integration with automated tests.

Enable local TMS

  • Go to Settings/Preferences | Tools | TMS and set the Markdown checkbox under TMS.

If your project already has any t.md files in it, they will be displayed in the Markdown tab of the TMS tool window.

Create a test suite

  1. In the Project tool window, select the directory in which you want to create the test suite, press Alt+Insert, and select Test Suite from the menu. Alternatively, right-click the directory and select New | New Test Suite.

  2. Give the test suite a name and press Enter.

Test suite files have the following format:

# 1 MyTestSuite Tags: tag1, tag2 Meta: key1 = value, key2 = value * 01 Test Case 1 * Step 1 * Step 2 * Step 3 * 02 Test Case 2 * Step 1 * Step 2 * Step 3
  • The heading contains the test suite number and name. The number has to be unique.

  • Tags and metadata are specified using Tags and Meta keywords right after the element declaration. Tags and metadata can then be used as criteria for filtering TMS items.

  • List items are test cases.

  • Nested list items are test steps.

Create a test run

Test runs are stored in r.md files as part of your project. They are not required to correspond to a test case and can consist of arbitrary steps.

  1. In the Project tool window, select the directory in which you want to create the test run, press Alt+Insert, and select Test Run from the menu. Alternatively, right-click the directory and select New | New Test Run.

  2. Select the test cases that should be checked during this test run.

Manage a test run

For each test case in a test run, you can specify its outcome and who performed the test.

  1. Go to the test run file.

  2. Specify the result using [ok] or [fail] and the agent id using the @ sign, for example:

    * [ok] @my.user C1.01 Test Case 1

Share test data through VCS

Test data stored in local TMS can be shared and versioned just like any other project files.

For general instructions on how enable and use version control in your project, refer to Version control topic.

Last modified: 29 March 2021