I am using Ranorex 2.3.2
I have a problem with looking for non existent forms. After I click a button a form should appear but sometimes it doesn't so in my test I make sure that the form appeared before moving on. Problem is sometimes, not always, Ranorex hangs itself while searching for that form.
I tried:
class Program { public static MyRepository repo = new MyRepository(); ... public static void Test() { if (repo.SomeForm.OKInfo.Exists()) //OK is a button on form }
class Program { public static MyRepository repo = new MyRepository(); ... public static void Test() { if (repo.SomeForm.SelfInfo.Exists()) }
class Program { ... public static void Test(){ MyRepository repo = new MyRepository(); if (repo.SomeForm.SelfInfo.Exists()) }
class Program { ... public static void Test(){ MyRepository repo = new MyRepository(); if (Validate.NotExists(repo.SomeForm.SelfInfo, "SomeForm does not exist.", false)) }If Ranorex hangs I pause it and debuger allways points to 'if' line.
I know I could also try to use path to look for this form but I'm trying to avoid hard coding paths into my test. Is there a different way to check existence of a form?
Is there some way to get more information from debugger when it happens?
This is a big problem for me because when I check my overnight test run I often find that last log message is half an hour after I left work and the tests is hanging.