Find and Replace Values
-
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.
-
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.
-
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.
-
There is only one address in this test case, so you can now start searching for Name.
-
On the
Find/Replace Values dialog box, select
Name from the
Column list box.
-
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.
-
Click
Replace on the
Find/Replace Values dialog box to replace that name with a link to the values in the data source.
-
Now search for and replace Zip codes in your script.
-
On the
Find/Replace Values dialog box, select
Zip from the
Column list box.
-
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.
-
Click
Replace on the
Find/Replace Values dialog box to replace that zip code with a link to the values in the data source.
-
When you have finished replacing values, click
Cancel on the
Find/Replace Values dialog box.