Forum Discussion
tristaanogre
8 years agoEsteemed Contributor
Are you doing script code or keyword tests?
In any case, it you want to see if a checkpoint fails if an object changes, you don't make a new checkpoint. The checkpoint is a comparison of the value of a property in your AUT to a set value to test.
In code, if you do a property checkpoint, it might look like this.
aqObject.CheckProperty(Aliases.MyAUT.myButton, "Label", 0, "MyLabel", true)
This line of code will check the Label property of the my Button object. If the value of the Label property equals "MyLabel" the log will report a pass. If the value does not equal "MyLabel", it will report an error to the log.
The property checkpoint in Keyword tests is analogous to this code line. Any property on an object can be checked in this way.
In any case, it you want to see if a checkpoint fails if an object changes, you don't make a new checkpoint. The checkpoint is a comparison of the value of a property in your AUT to a set value to test.
In code, if you do a property checkpoint, it might look like this.
aqObject.CheckProperty(Aliases.MyAUT.myButton, "Label", 0, "MyLabel", true)
This line of code will check the Label property of the my Button object. If the value of the Label property equals "MyLabel" the log will report a pass. If the value does not equal "MyLabel", it will report an error to the log.
The property checkpoint in Keyword tests is analogous to this code line. Any property on an object can be checked in this way.
- sameerjade8 years agoFrequent Contributor
I am doing script code test. Thanks, I will try that.