How to speed up Ranorex solution build?

Ask general questions here.
Fergal
Certified Professional
Certified Professional
Posts: 455
Joined: Tue Feb 18, 2014 2:14 pm
Location: Co Louth, Ireland
Contact:

How to speed up Ranorex solution build?

Post by Fergal » Tue Feb 13, 2018 5:40 pm

One suggestion for speeding up the time it takes to build a Ranorex solution, might be to go through the solution and delete any old code or recording modules that are no longer used by the solution. With less modules, the solution will build faster.

Would it also help to delete the contents of the "bin" folder? Is there a risk to deleting the "bin" folder contents?

Do you have any other suggestions for optimizing a Ranorex solution, to reduce the time it takes to build?

Thanks.

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

Re: How to speed up Ranorex solution build?

Post by odklizec » Wed Feb 14, 2018 8:34 am

Hi,

There is no risk with deleting bin folder. You can also delete obj folder as well, because Ranorex regenerates the content of bin and obj during build process. However, I don't think this will somehow speed up the build process? If your test suite is rather large, it may take some time to build it. What exactly is your problem? How long does it take to build the solution? Have you tried it on another computer? What can speed things up is reducing the number and size of files included in project and copied to output directory. If there is too many (and large) files to copy, then it may take some time to build the project. Also, using excels for data connectors is bad idea too. Too many of them will definitely make the build slower and not only build! Opening excel data connectors takes much longer than csv data connectors!
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

Fergal
Certified Professional
Certified Professional
Posts: 455
Joined: Tue Feb 18, 2014 2:14 pm
Location: Co Louth, Ireland
Contact:

Re: How to speed up Ranorex solution build?

Post by Fergal » Wed Feb 14, 2018 3:10 pm

Thanks for your reply and helpful ideas odklizec. When the solution is built it builds over 400 files and can take a few minutes to complete the build. I have deleted the bin and obj folders and rebuilt the solution. That does seem to have helped, so thanks for that. The project does not use Excel data connections.

I will also go through the solution and remove old unused modules.

Thanks again.

SirJay
Posts: 4
Joined: Wed Oct 06, 2021 4:38 am

Re: How to speed up Ranorex solution build?

Post by SirJay » Thu Sep 28, 2023 3:37 am

thanks for this thread. ive deleted the bin and obj. it helped speed up. though hopefully this approach will always be consistent.