cancel
Showing results for 
Search instead for 
Did you mean: 

Decrease time for If Object - Not Exists validation

SOLVED
DCat1223
Frequent Contributor

Decrease time for If Object - Not Exists validation

Good afternoon everyone.  I've been out of the testing environment for a few years, but am back and getting re-aquainted with TC.  I'm testing a Web application using Keyword Tests, and want to have some validation run to ensure, in certain cases, that an object does not exist.  I'm using the If Object -Object Name - Not Exists Test Action.  This is working for me, but this step takes literally 10 minutes to complete.  I've set the Auto-wait Time Out on the step but that doesn't seem to do anything.  I'm hoping some of you folks have run into this and would be open to suggestions to cut this wait time considerably.  2018-10-12_15-27-08.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
tristaanogre
Community Hero

Re: Decrease time for If Object - Not Exists validation

In Tools | Options | Engines | NameMapping, there is an option about "check visible items first" or something like taht.  un check that and try again.

 

One thing that happens is that if the object is not found in the available visible objects, it then goes and searches invisible... so, two separtae searches... slows things down.

 

Second thing to look at..... are you using Extended Find?  If so, this could be slowing down the search...  because if you are using extended find in your namemapping tree and the object is not initially found, it does need to do a further search of the entire tree.  Try remapping the "offending" object without using Extended Find and see if this solves the problem.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

View solution in original post

2 REPLIES 2
tristaanogre
Community Hero

Re: Decrease time for If Object - Not Exists validation

In Tools | Options | Engines | NameMapping, there is an option about "check visible items first" or something like taht.  un check that and try again.

 

One thing that happens is that if the object is not found in the available visible objects, it then goes and searches invisible... so, two separtae searches... slows things down.

 

Second thing to look at..... are you using Extended Find?  If so, this could be slowing down the search...  because if you are using extended find in your namemapping tree and the object is not initially found, it does need to do a further search of the entire tree.  Try remapping the "offending" object without using Extended Find and see if this solves the problem.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

View solution in original post

DCat1223
Frequent Contributor

Re: Decrease time for If Object - Not Exists validation

Hey tristaanogre.  Thank you so much.  These suggestions did the trick!  This is running much better now.  The step now takes less than 10 seconds.  I really appreciate you input!  

 

Dave. 

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors