Find and Replace Values

  1. Indicate the names of the table and column that contain values that you want to link to. You can do that with either the Find/Replace Values dialog box or using the Find and Replace menu bar; this exercise uses the Find/Replace Values dialog box.
  2. On the Find/Replace Values dialog box, select Customer$ from the list of tables and Address from the list of columns. Click Find Next to start searching for addresses within the test case. Silk Test Classic finds and highlights various values.
  3. Click Find Next until Silk Test Classic highlights 201 Spring street. Since this is an address, click Replace on the Find/Replace Values dialog box to replace that number with a value from the data source.
  4. There is only one address in this test case, so you can now start searching for Name.
    1. On the Find/Replace Values dialog box, select Name from the Column list box.
    2. Click Find Next until Silk Test Classic highlights “Susan”. Remember that you may have to change the direction of your search by clicking Up on the Find/Replace Values dialog box to locate this value.
    3. Click Replace on the Find/Replace Values dialog box to replace that name with a link to the values in the data source.
  5. Now search for and replace Zip codes in your script.
    1. On the Find/Replace Values dialog box, select Zip from the Column list box.
    2. Click Find Next until Silk Test Classic highlights “02421”. Remember that you may have to change the direction of your search by clicking Up on the Find/Replace Values dialog box to locate this value.
    3. Click Replace on the Find/Replace Values dialog box to replace that zip code with a link to the values in the data source.
  6. When you have finished replacing values, click Cancel on the Find/Replace Values dialog box.