Ask a Question

Test Case is passed though Checkpoint doesn't match

bhakti
Contributor

Test Case is passed though Checkpoint doesn't match

Hi,

 

In keyword test case i have placed the check point (property checkpoint)  on error message. ("Error message A" )

 

E.g. 

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?

 

original.png

 Untitled.png

Regards,

 

Bhakti

 

 

[ Mod: no usernames and passwords please ]

3 REPLIES 3
joseph_michaud
Moderator

Re: Test Case is passed though Checkpoint doesn't match

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.

 

-----
Joseph
Marsha_R
Community Hero

Re: Test Case is passed though Checkpoint doesn't match

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.


Marsha_R
[Community Hero]
____
[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.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
leandroaraujoso
Contributor

Re: Test Case is passed though Checkpoint doesn't match

Hi bhakti,

 

 

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.

 

Regards,

 

Leandro de Araújo Souza

 

cancel
Showing results for 
Search instead for 
Did you mean: