The Fixture Editor allows you to view and modify a fixture. To open the editor, double-click the fixture in the Explorer panel.
The editor consists of the following parts:
The toolbar - Provides information about the fixture (the name and tested webpage's URL) and buttons to perform common tasks.
You can click the webpage's URL to open the webpage in the browser.
The test list - Displays tests included in the fixture. You can click a test's row to open the test in the Test Editor.
Common Tasks #
You can perform the following tasks in the editor:
- Record New Tests
- Run the Fixture or Single Test
- Modify the Fixture's Properties
- Delete Tests
Record New Tests #
Click Record a new test on the editor's toolbar to start recording a new test and add it to the fixture.
Run the Fixture or Single Test #
Click the Run all tests button on the editor's toolbar to run the entire fixture.
To run a single test, hover the mouse cursor over the test's row and click Run test displayed to the right of it.
TestCafe Studio creates the test file in the same test directory and displays it in the Explorer panel.
Modify the Fixture's Properties #
Click on the editor's toolbar to modify the fixture's properties. This invokes the Fixture Properties dialog where you can change the fixture name, file name, target webpage, and authentication credentials. To save the changes, click OK.
Delete Tests #
Click Remove all tests on the editor's toolbar to delete all the fixture's tests.
To delete a single test from the fixture, hover the mouse cursor over the test's row and click the row's Remove test button.