Showing results for 
Search instead for 
Did you mean: 

Execution with xpath is too slow in TC 12.5

Occasional Contributor

Execution with xpath is too slow in TC 12.5

My application is an angular js web app. I am automating this in IE. When i use findChildByXpath or EvaluateXpath is taking too much time. When i am trying to find list of item with EvaluateXpath with //div//<SOME props="">//li its is taking more than 15 minutes to get count of 300. Is there anyway i can increase the execution speed</SOME>
Community Hero

Re: Execution with xpath is too slow in TC 12.5

Yes.  Don't use XPath.

TestComplete has a built in object recognition engine that works pretty amazing.  xPath actually does a full search of the entire DOM while the NameMapping Engine from TestComplete only searches the specified hierarchy.

Read up on using NameMapping and adjust your methodology to use the TestComplete tool rather than relying on Selenium methodology.

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
Community Hero

Re: Execution with xpath is too slow in TC 12.5



In addition, as your tested application is Angular-based, consider to use Custom Attributes functionality introduced in TC 12.60:


  /Alex [Community Hero]
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
New Here?
Join us and watch the welcome video:
Top Kudoed Authors