In the previous lesson, you saw how you can update the recognition
properties of an object when they change. Another factor you can change is
the recognition weights that Functional Tester uses during playback.
You use the ScriptAssure® recognition
preferences to set this. The label object that you tested with the second
verification point can demonstrate how this works.
Procedure
- On the Functional Tester menu, click .
- Click .
- Click the Advanced button.
Notice
that one of the default settings is Warn if accepted score is greater
than: 10000. A score of 10000 indicates that one important property
can be wrong. Let's lower the score to 5000 and see what happens.
- Select the Use Default check box beside
this field.
- Then type 4000 in the field and then click OK.
- Play back the script on ClassicsB again.
The
log now contains a warning for the label object. The reason given in the objectFound field,
is that the recognition score is 10000. This discrepancy was caused by changing
the word "Order" to "Orders" in the label.
- Close the log.
- Restore the default value for the recognition score:
- Click .
- Click .
- Click the Advanced button.
- Select the Use Default check box beside
the Warn if accepted score . . . field.
This
will change the 4000 back to 10000.
- Click OK
- Play back the script again.
Now the warning
is gone and everything passes.
- Close the log.
Results
This lesson showed how you can tweak the recognition score in order
to achieve the sensitivity that you want for object recognition. For more
information about using ScriptAssure, see the Functional Tester Help.