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.
Duration of a running test
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Duration of a running test
Hello,
You can use the following line to get the duration of the current iteration.
Regards,
Bernhard
Ranorex Support Team
You can use the following line to get the duration of the current iteration.
Ranorex.Core.Reporting.ActivityStack.Current.Parent.Parent.ElapsedTimeWhy 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