cancel
Showing results for 
Search instead for 
Did you mean: 

Execution with xpath is too slow in TC 12.5

fayizkc
Occasional Contributor

Execution with xpath is too slow in TC 12.5

Hi,
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>
2 REPLIES 2
tristaanogre
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
AlexKaras
Community Hero

Re: Execution with xpath is too slow in TC 12.5

Hi,

 

In addition, as your tested application is Angular-based, consider to use Custom Attributes functionality introduced in TC 12.60: https://support.smartbear.com/testcomplete/docs/general-info/whats-new.html#web-testing-improvements

 

Regards,
  /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.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors