Skip to Main Content
Return to Navigation

Exporting and Importing Test Cases

You can create or modify a large number of test cases by exporting test cases to a file, editing the file, and then importing the file back into the test.

You can export a text file using the following delimiter characters:

Exporting Test Cases

To export test cases:

  1. With a test open, select Test, Export.

  2. Specify a location for the file.

  3. Select a separator character.

    Note: The default separator character is a comma, which is also the default separator used by spreadsheet programs. If any of the values in your test case contain commas, the value will be split into separate fields. If you have commas in your test case values, choose a different separator.

  4. Specify whether to export one or all test cases.

  5. Click Start.

The bar along the bottom of the dialog box denotes the progress of the export.

Image: Example of export using a tab delimiter for all test cases

This example illustrates export using a tab delimiter for all test cases.

Example of export using a tab delimiter for all test cases

Importing Test Cases

To import test cases.

  1. In PTF, with a test open, select Test, Import.

  2. Enter the file path or browse to the file.

  3. Specify the separator character.

  4. Click Open to display a list of tests cases in the file.

    Image: Test Case Import dialog box

    This example illustrates the fields and controls on the Test Case Import dialog box. You can find definitions for the fields and controls later on this page.

    Test Case Import dialog box

    If the test case already exists in the test, the action is set to Replace. If the test case does not exist in the test, the action is set to Import as new. If you change the action to Import as new for an existing case, you must also enter a new test name in New Name field.

  5. Select the test cases to import.

  6. Click Start.