Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to verify there is no message gets displayed
#1
Not Solved
Hi

How can we verify that there is no message gets displayed in a particular area.

I tried with text check point by providing expected as empty, but it gets passed even there is a message in that area.
Reply
#2
Not Solved
What kind of application you are testing? ( VB or web or Java)?
Reply
#3
Not Solved
The Area you are testing, when you spy that or look in the Object repository does it have a property assigned to it?

For example
I have a Static area on part of my app that gets written to
I then search for the "Text" Property of that area

Code:
ScreenValue=Window("Window1").Static("ScreenValue").GetROProperty("Text")

From there you can make your own check point:

Code:
If ScreenValue = "" then  
Reporter.ReportEvent micPass, "ScreenValue", "Screen Value was blank"
Else
Reporter.ReportEvent micFail, "ScreenValue", "Screen Value was NOT blank"
End if
Reply
#4
Not Solved
If you already know the message which is not supposed to be displayed then

write the code like :

Code:
x = object(message).exist

if x <> false then
reporter.reportevent micPass, "No messages displayed", "validation is successfull"
else
reporter.reportevent micFail, "Messages are being displayed", "validation failed"
end if
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Help for instruction to click on Skip button in the warning message vijilesh 0 1,365 09-16-2018, 03:48 PM
Last Post: vijilesh
  [UFT] [WPF] Verify if the cell contains an image robertosalemi 0 1,779 10-25-2016, 06:57 PM
Last Post: robertosalemi
  Need to verify the drop down values based on condition santhoshmscsoftware 1 2,714 05-04-2016, 11:28 PM
Last Post: supputuri
  verify that parent properties match object currently displayed in your application. sona 0 2,943 02-21-2016, 12:00 PM
Last Post: sona
  Auto Complete list not displayed in PEGA7 adityacharan 0 2,312 11-29-2015, 12:07 PM
Last Post: adityacharan

Forum Jump:


Users browsing this thread: 1 Guest(s)