Restoring API test data

After you complete the upgrade of IBM® API Connect to V10.0.1, restore your API test data.

Open the Automated API behavior testing application and then complete the steps in the following sections to restore each type of API test data.

Snapshots

Restore each saved snapshot by completing the following steps:
  1. Open the file containing a snapshot's data.
  2. In the test application, select HTTP Client.
  3. Copy the following snapshot properties into the client fields:
    • Name
    • Description
    • Method
    • URL
    • Headers
    • Body
  4. Submit the request.
  5. Save the snapshot.

Repeat the steps for each additional snapshot that you want to restore.

Project environments

Restore each project environment by completing the following steps:
  1. Click Vault > project name > Tests.
  2. Click New Preset.
  3. Add an environment.
  4. Copy the following data from the text file to the environment properties:
    • Name of the environment
    • Each Key:Value pair
  5. Save the environment.

Repeat the steps for each additional project environment that you want to restore.

Vault entities

Restore each vault entity by completing the following steps to recreate the snippet:
  1. Click Vault > project name > Tests.
  2. Create a test within the project.
  3. Edit the test, and select From Scratch.
  4. Go to the Source view of the test and paste the snippet's code from your text file.
  5. Go to the Code view and select all Components.
  6. Select Vault and click the Add icon.
  7. Save the snippet with the same name and description as the original.
  8. Delete the test.

Repeat this procedure for each additional vault entity that you want to restore.

Vault variables

Restore each vault variable by completing the following steps:
  1. Click Vault > project name > New Variable.
  2. Paste the name and value from the file into the variable, and save it.

Repeat the steps for each additional vault variable that you want to restore.

Tests and test variables

Restore each test and its test variables by completing the following steps:
Test
  1. Click Vault > project name > Tests.
  2. Create a test with the same name as the original.
  3. Select Source and paste the copied code into the source.
  4. Save the new test.
Test variable
  1. Select a test and click Data sets.
  2. Refer to your notes and set the scope of the test variable.
  3. Create the variable by copying the name and value from your file.

Repeat the steps for each additional test or test variable that you want to restore.