Editing test data source

You can edit a test data source when you want to change or add test data to test a different scenario.

Before you begin

You must have completed the following tasks:

Procedure

  1. Perform any of the following actions:
    • Identify the test that contains the dataset from the items that are listed under the Tests folder. Go to Step 2.
    • Identify the dataset that contains the test data from the items that are listed under the Test Data folder. Go to Step 3.
  2. Perform the following steps to work with the test:
    1. Right-click the test, and then click Open.

      The test is displayed in the test editor view.

    2. Click the Edit or Create Test Data icon Image of the Create data source icon..

      The Edit or Create Test Data dialog is displayed with the Edit existing test data set from action option as selected.

    3. Click Finish.

      The Open With dialog is displayed.

    4. Go to Step 4.
  3. Perform the following actions to work with the data source file:
    1. Right-click the data source file, and then click Open.

      The test data source view is displayed with the file name of the data source file in the File Name field.

    2. Click Open.

      The Open With dialog is displayed.

    3. Go to Step 4.
  4. Perform the following actions in the Open With dialog:
    1. Select the action for any of the following options:
      Option Description Action

      Program List

      Specifies compatible programs that you can use to open the type of file that contains the test data.

      Perform the following steps:
      1. Select the Program List option, if a program is listed and you want to use that program to open the data source.
        Note: This is the default option that is displayed as selected.
      2. Go to Step 4.b.

      Launch Command

      Specifies that you can use a compatible program from your computer to open the data source file, if a compatible program is not listed.

      Perform the following steps:
      1. Select the Launch Command option.
      2. Click Browse and go to the folder on your computer that contains the executable file of the program.
      3. Select the executable file of the program, and then click Open.

        The path to the executable program file is displayed in the Command field.

      4. Go to Step 4.b.
    2. Select the Always use this application to open these files option, if you want your selection to open the specific type of data source files to be saved.

      When you select this option, you are not subsequently required to select a program to open such file types. The files are opened in the selected program automatically when you want to open the file for editing.

  5. Click OK.

    The data source file is opened in the program that you selected.

  6. Edit the test data.
  7. Save your changes, and then close the program.

Results

You edited the test data source file by using a compatible program and saved your changes.

What to do next

You can run the test to apply the changed test data.

If you want to change or remove the program that you associated to open specific file types of test data sources, you can use the Project > Preferences > Application option. See Applications preferences.