Forum Discussion

Seretta's avatar
Seretta
Occasional Contributor
10 years ago

how can I catch an expected error in the sut in testcomplete?

Hi,

I expect an error from the SUT, that's what the test case should prove, so I want to post an error only if the error does't come and not when it does. How do I do it? Any ideas?

Thanks a lot

Seretta

1 Reply

  • NisHera's avatar
    NisHera
    Valued Contributor

    Assuming error is a popup,

    You may use wairProperty of popup mesaage.

    if given time popup not "exist" can fire Log.error message

     

    there may be other ways depending on what and how your SUT works