This topic provides information on how to organize your test files.
The image below demonstrates the Explorer panel that allows you to manage your test files.
Test Directory #
You can create a test directory anywhere on your computer and then open it in TestCafe Studio in one of the following ways:
- Go to the File menu and click Open Test Directory.
- On the Welcome page, click Open Folder.
The Explorer panel displays the directory's content.
TestCafe Studio automatically creates a test directory in the Users/Username/TestCafeStudio folder and gives it the tested site's name if you start recording a test from the Welcome page. If a directory with the same name already exists, TestCafe Studio opens it and adds a new test to it.
You can also organize test files into subdirectories. To create a subdirectory, right-click a test directory in the Explorer panel and select New Directory. In the New directory dialog, enter the directory name and click the Create button.
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.
.testcafe test file can contain one or more recorded tests. The Explorer panel displays these tests as the
.testcafe file's child items.
See Record Tests for information on how to record tests.
Coded Tests Files #
The Explorer panel displays tests included to a
.ts file as the file's child items.
TestCafe Studio also allows you to use tests created in an earlier TestCafe version (
.test.jsfiles). You can add these files to a test directory and view/modify/run the tests from TestCafe Studio.