Page 1 of 1

Duration of a running test

Posted: Fri Sep 07, 2012 12:59 pm
by Hermch
Hi,

I have a ranorex testcase which consists of serveral recordings and code modules.
I run this test 10 times in a row. Usally it takes about 4 minutes to run the test once.

Sometimes my Application hangs, then the test keeps running because it waits for an UI Element but it does not appear.

My question:

Is it possible to check the actual duration of the running test iteration. For example if the iteration takes longer than 6 minutes, ranorex should abort the test and report an error.
I would need to check the duration of the whole testcase with all its recordings and code modules. I can not predict when the application hang happens.

Re: Duration of a running test

Posted: Mon Sep 10, 2012 4:50 pm
by Support Team
Hello,

You can use the following line to get the duration of the current iteration.
Ranorex.Core.Reporting.ActivityStack.Current.Parent.Parent.ElapsedTime
Why don't you use the 'Search Timeout' property for this issue? Please read the section Repository Items Properties to get more information about repository properties.

Regards,
Bernhard
Ranorex Support Team