Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
checking for Error Dialog Box
#1
Solved: 11 Years, 4 Months ago
Hi,

I’m working on a finance application. For negative testing I need to pass an invalid date. When I’m passing the invalid date, an Error Dialog Box must popup and I need to close the dialog box and fail the test and continue with next set of test.

I’m checking for Error Dialog Box like this

Code:
Sub Sub pickNcompareValues(objExcel ,intRow,ValuesAddRow)
      If [color=#0000FF]SwfWindow("SuperfitsToolset").Dialog("Error").Exist [/color] Then
    ErrDialogBoxText = SwfWindow("SuperfitsToolset").Dialog("Error").GetVisibleText
          TestStatus = "Fail"
       Exit Sub
       End if
'some
'more
'statements
End Sub

When I’m checking for dialog box in each test run
If Error Dialog Box exists, test run completing very quickly
If Error Dialog Box doesn’t exist, test run taking around 25 seconds to complete (I think it's checking for entire screen)

I’m doing any thing wrong? Is there any other way to check for Error Dialog Box?

Regards
Ram.


Messages In This Thread
checking for Error Dialog Box - by vramu1 - 01-22-2008, 05:29 AM
RE: checking for Error Dialog Box - by vramu1 - 01-22-2008, 04:07 PM
RE: checking for Error Dialog Box - by Ankur - 01-23-2008, 12:16 PM
RE: checking for Error Dialog Box - by vramu1 - 01-24-2008, 10:59 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to send/pass UFT Run Error Dialog as output value to main driver script lravi4u 0 583 11-05-2023, 03:55 PM
Last Post: lravi4u
  Automating save dialog box in windows using UFT shipu 0 4,781 01-16-2015, 07:54 PM
Last Post: shipu
  QTP 11 - Chrome 24. Dialog box is identifying as Win object. Kannan R 0 3,089 08-13-2013, 08:10 PM
Last Post: Kannan R
  spell checking of web objects kriday 3 3,975 07-05-2013, 01:37 PM
Last Post: Staff
  css sprited image checking gerfred 0 1,574 01-29-2013, 03:46 PM
Last Post: gerfred

Forum Jump:


Users browsing this thread: 1 Guest(s)