How to failing a test case in popup watcher method

Ask general questions here.
M-K-B
Posts: 9
Joined: Tue Nov 28, 2017 12:52 pm

How to failing a test case in popup watcher method

Post by M-K-B » Tue Nov 28, 2017 1:09 pm

i want to failing a test with exception that work perfect in the method of my watcher and in result report give me error that i want but i just get success in pie chart report how can i fail a test and in chart not having success i have only one record and module code in my test
thanks in advance
You do not have the required permissions to view the files attached to this post.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: How to failing a test case in popup watcher method

Post by odklizec » Wed Nov 29, 2017 10:34 am

Hi,

Sadly, this is currently not possible. The problem is, that popupwatcher runs in a separate thread and there is currently no way to pause or stop the main test thread from popupwatcher. There is already a feature request created for it and it seems it's already under investigation:
https://uservoice.ranorex.com/forums/15 ... from-popup
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

M-K-B
Posts: 9
Joined: Tue Nov 28, 2017 12:52 pm

Re: How to failing a test case in popup watcher method

Post by M-K-B » Sat Dec 02, 2017 6:00 am

i wrote this in my code module and its work very good
You do not have the required permissions to view the files attached to this post.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: How to failing a test case in popup watcher method

Post by odklizec » Mon Dec 04, 2017 8:24 am

Hi,

Thanks for the heads up. I've never heard of RunAborted and Environment.Exit. Nice to hear these could make the test case to fail even form popupwatcher. Anyway, it would still be nice to have a proper way of pausing the main thread from popupwatcher. Let's hope Ranorex folks will do something about it ;)
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

M-K-B
Posts: 9
Joined: Tue Nov 28, 2017 12:52 pm

Re: How to failing a test case in popup watcher method

Post by M-K-B » Mon Dec 04, 2017 8:37 am

hi
i'm new with ranorex but i know a little C#
thank you very much for your response