Lesson 9: Change the recognition preferences
In the previous exercise 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 HCL DevOps Test UI (Test UI) uses during playback. You use the recognition preferences to set this. The label object that you tested with the second verification point can demonstrate how this works.
To start at the beginning of the tutorial, see the Test UI Tutorial.
-
On the product menu, click Tools > Options.
-
Click Functional Test > Playback > ScriptAssure.
-
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.
-
Click the Use Default check box beside this field.
-
Then type 4000 in the field. 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. The 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 Tools > Options.
-
Click Functional Test > Playback > ScriptAssure.
-
Click the Advanced button.
-
Click 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.
-
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, see Using ScriptAssure™.
Advance to Lesson 10: Use regular expressions.