background image
<< Using the Difference Viewer | Generating Pass/Fail Reports >>

Updating expected values

<< Using the Difference Viewer | Generating Pass/Fail Reports >>
128
Getting Started: A Tutorial
7 R
EVIEWING
AND
R
EPORTING
T
EST
R
ESULTS
Using the Difference Viewer
results file. However, for complicated or long comparisons, you will
often need to use the Difference Viewer to pinpoint each of the pieces of
data in the verification that failed.
3
Leave the Difference Viewer open
In the next exercise you will use the Difference Viewer to update the
expected values in your test script.
Updating expected
values
In the previous section, you used the Difference Viewer to obtain detailed
information about an error that caused a testcase to fail. The testcase failed
because the actual value did not match with the expected value.
To have your testcase run cleanly the next time, use the Update Expected
Value command to modify the expected value in your script.
To update the expected value in your script:
1
In SilkTest, click the Difference Viewer window to make it the active
window
2
Update the expected value
Click Results/Update Expected Value. The script file becomes the
active window. Note that the caption has been replaced with the actual
value.
Tip You can also update an expected value from the results file.
Select the line containing the error and click Results/Update
Expected Value
.
3
Close the Difference Viewer
Make the Difference Viewer active, click File/Close. Do not close the
results file.
For more information about results files, see the online Help.