Search for HTML elements pretty slow in 5.3.1

Bug reports.
User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Search for HTML elements pretty slow in 5.3.1

Post by odklizec » Wed Mar 25, 2015 5:09 pm

Hi,

While investigating another 5.3.1 issue, I noticed a strange slowdown, while searching for HTML elements. I'm pretty sure this did not happen in 5.2.3! Additionally, the same elements are highlighted almost instantly if selected from Studio repository or via Spy.

The slowdown happens only if the solution is started by F5 from Studio, both in Debug and Release mode. It does not happen if the solution is compiled and started from the command line (both Debug a Release).

Additionally, the search speed is OK while running the solution from Studio without attached debugger (by Ctrl+F5). But this is really weird, because running solution without attached debugger should have the same effect as running in Release mode or not?

Steps to reproduce:
- go to this page http://www.w3schools.com/html/tryit.asp ... html_table
- replace the existing HTML code with this one and press "See Result":

Code: Select all

<!DOCTYPE html>
<html>
<body>

<table border="1" style="width:50%">
  <tr>
    <td id="cust_1">cust_1</td>
    <td id="serviceTime_1"></td>
  </tr>
  <tr>
    <td id="cust_2">cust_2</td>
    <td id="serviceTime_2"></td>
  </tr>
  <tr>
    <td id="cust_3">cust_3</td>
    <td id="serviceTime_3"></td>
  </tr>
  <tr>
    <td id="cust_4">cust_4</td>
    <td id="serviceTime_4"></td>
  </tr>
  <tr>
    <td id="cust_5">cust_5</td>
    <td id="serviceTime_5"></td>
  </tr>
</table>

</body>
</html>
- load the attached project and try run it by F5 >>> you should experience significant delay while searching for elements
- switch build configuration to Release and run it again (by F5) >> still slow search
- now try to run it by Ctrl + F5 >> elements found instantly
You do not have the required permissions to view the files attached to this post.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Search for HTML elements pretty slow in 5.3.1

Post by Support Team » Fri Mar 27, 2015 10:44 am

Hi odklizec,

Thank you for reporting this issue. We were able to reproduce the behavior on our machines as well. I have added the issue to our internal bug-tracking system, we will try to fix the issue as soon as possible.

Regards,
Robert

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Search for HTML elements pretty slow in 5.3.1

Post by odklizec » Fri Mar 27, 2015 11:11 am

Hi Robert,

Great! Thanks for the info.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Search for HTML elements pretty slow in 5.3.1

Post by Support Team » Fri Apr 03, 2015 10:08 am

Hi odklizec,

We found out that the target CPU setting "Any CPU" is causing the issue. Please try to reset the target CPU to "32bit", it should solve the performance issue.

Regards,
Robert

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Search for HTML elements pretty slow in 5.3.1

Post by odklizec » Fri Apr 03, 2015 10:51 am

Hi Robert,

Thanks for the info. Good find! It definitely improved the search speed in provided sample. However, running the project without attached debugger seems to be still noticeably faster, even if the project is started in Release mode?

It's not so evident (but still visible) with the sample project I provided, but I can clearly see it while running my production solution (which has already set CPU to "32bit"). It takes around 50mins to finish the project when started from Studio (release mode), and it finishes under 30 minutes if started from command line. So the target CPU seems not be the only reason of the slow down?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Search for HTML elements pretty slow in 5.3.1

Post by Support Team » Tue Apr 07, 2015 12:18 pm

Hello odklizec,

We already found the root of the issue. It’s caused from an internal code change, we will try to fix this as soon as possible.

Kind regards,
Robert

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Search for HTML elements pretty slow in 5.3.1

Post by odklizec » Tue Apr 07, 2015 12:20 pm

Hi Robert,

Great news! Thanks for the info.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Search for HTML elements pretty slow in 5.3.1

Post by odklizec » Mon Apr 20, 2015 3:58 pm

I can confirm the issue is fixed in 5.3.2. Thanks!
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration