Organize Test Files

This topic describes how to use the Explorer panel to organize and manage test files.

Explorer panel

Note

You can watch the Organizing Test Files video.

Test Directory

You can store your tests in any directory on your computer.

To open a test directory in TestCafe Studio, do one of the following:

  • Go to the File menu and click Open Test Directory.
  • Click the Open Directory button button on the main toolbar.
  • On the Welcome page, click Open Test Directory.

The Explorer panel displays the directory's content: nested directories and files with recorded tests and test scripts.

Explorer panel

Recorded Tests Files

Recorded tests are tests you record visually or compose from test actions. These tests are stored in *.testcafe files. TestCafe Studio automatically creates a new *.testcafe file when you start recording a test for a new tested page.

The .testcafe file can contain one or more recorded tests that are organized by fixture. The Explorer panel displays these tests as the .testcafe file's children. The fixture's name is shown above the test list.

Recorded tests

See Record Tests for instructions on how to record tests.

Test Scripts Files

TestCafe Studio also allows you to write tests in JavaScript or TypeScript. Create a test script file in a test directory and write the test code in a built-in Code Editor.

A test script file can contain several tests that are organized by fixture. The Explorer panel displays these tests as the file's children. Fixture names are shown above the test list.

Test scripts

You can also convert recorded test files to test script files.

Note

TestCafe Studio also allows you to use tests created in earlier TestCafe versions (.test.js files). You can add these files to a test directory and view/modify/run the tests in TestCafe Studio.