Not Exist validation took too much time

Ask general questions here.
anouar2002
Posts: 38
Joined: Thu Feb 27, 2020 2:06 pm

Not Exist validation took too much time

Post by anouar2002 » Wed May 10, 2023 3:04 pm

Hello everyone,

I am using Ranorex 10.6.0 to test a Desktop application based on DevExpress and Winforms.

In some recording, I want to validate that an item (column in a table) will be no more visible when I click on a button.

I use for that a Validation of Not Exist to this item.

It works but it take too much time --> About 4 minutes for each validatiion. And this is not optimal for my test suit especially when you use this validation 5 times which make the recording time > 20 minutes.

Is any solution to resolve this problem?

User avatar
Stub
Posts: 515
Joined: Fri Jul 15, 2016 1:35 pm

Re: Not Exist validation took too much time

Post by Stub » Thu May 11, 2023 8:43 am

It's taking the search timeout period from your repository. Shorten this in the repository to suit the element that you're searching for, or directly change the 'not exists within' search period to a shorter period that produces the correct results.

When I'm checking things don't exist I only wait for a few seconds each time, not the full 'effective' search timeout. This search period depends on the complexity of the app/repository path, so I play around to find a comfortable threshold that works reliably.

anouar2002
Posts: 38
Joined: Thu Feb 27, 2020 2:06 pm

Re: Not Exist validation took too much time

Post by anouar2002 » Fri May 12, 2023 7:46 am

Hello,

thanks for your answer- So if I understand you right, it depends on the amount of items of repositoty that I am using ? and there is no concret solution to resolve it.

User avatar
Stub
Posts: 515
Joined: Fri Jul 15, 2016 1:35 pm

Re: Not Exist validation took too much time

Post by Stub » Fri May 12, 2023 8:10 am

If by "amount of items" you mean the depth of nesting of your repository item, then yes. The search timout has nothing to do with total volume of items. Look at the effective timeout period for the item in question within your repository.

As for "no concrete solution" - that's totally incorrect. You need to adjust the search timeout period to suit your situation, as I do for mine.

anouar2002
Posts: 38
Joined: Thu Feb 27, 2020 2:06 pm

Re: Not Exist validation took too much time

Post by anouar2002 » Fri May 12, 2023 3:42 pm

Thank you stub. I will try your suggestion!