Test Case is passed though Checkpoint doesn't match
In keyword test case i have placed the check point (property checkpoint) on error message. ("Error message A" )
If Drop down 1 --> XYZ and Drop down 2--> ABC then system displays error message "Error message A"
when i change input values in key wordtest, so that error message does not display . In this case after running test system should have faild the testcase as "Error message A" is not getting displayed right...
But actually tescase passed successfully
Can any one explain this?
[ Mod: no usernames and passwords please ]
It is a little difficult to judge this particular problem when you redact part of the text from the comparison checkpoint.
In general, note that it is possible to edit your keyword property checkpoint in such a way that you are actually adding carriage return and line feed characters in the comparison text.
Try converting your KeywordTest into a script and look at what you're using for the comparison text in the Property checkpoint.
With text comparison we find it useful to use aqString.Trim on both strings. This avoids the issue that Joseph is talking about. You'll have to create your own comparison instead of using a checkpoint, but you'll get the correct result.
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
It seems to me that even though the message are not beeing displayed, it's there somehere. I suggest you to verify if the properties (Visible and VisibleOnScreen) of that message before checking its values.
Let me know if that helps.
Leandro de Araújo Souza