Execution is very very slow

Ask general questions here.
User avatar
subodh4u7
Posts: 68
Joined: Tue Jan 06, 2015 8:26 am

Execution is very very slow

Post by subodh4u7 » Tue Jun 02, 2015 11:48 am

When ruuning my solution, its very very slow.
Scenario is like as :
1. Clicking on the Windows Start menu.
2. typing the cmd in search box
3. Righ click on the cmd.exe
4. Select the Run as administrator

Code: Select all

			myRepo.WindowStart.Self.Click();
			myRepo.StartMenu.SearchBoxStartMenu.PressKeys("cmd");
			myRepo.StartMenu.CmdExeStartMenu.Click(System.Windows.Forms.MouseButtons.Right);
			myRepo.StartMenuExplorerContextMenu.RunAsAdministratorCMD.Click();
			myRepo.StartMenu.Self.Activate();
How can i resolve this issues. It takes more time (minimum 900 ms) when clicking the Right mouse button. Please guide me how to make execution faster. What are the tips and tricks which i can follow so that i can apply in my project to speed up. Sometime its very frustrating to wait even wihthout putting any delay.
Regards,
Subodh

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Execution is very very slow

Post by krstcs » Tue Jun 02, 2015 2:04 pm

First, 900ms is less than 1 sec. That isn't very long.

Second, test automation is not about speed, it is about consistency in testing. With consistency comes speed, but it is a by-product, not the goal. Ranorex is faster than a manual tester, but it still takes time to do things.

Finally, are you running Ranorex Studio as an administrator? If you want to test against an application running as administrator then Ranorex Studio should also be started as an administrator.
Shortcuts usually aren't...

User avatar
subodh4u7
Posts: 68
Joined: Tue Jan 06, 2015 8:26 am

Re: Execution is very very slow

Post by subodh4u7 » Wed Jun 03, 2015 5:16 am

Thanks for quick reply Ranorex Guru.

Sorry for mentioning wrong timings. It takes around 20-45 secs.

Tried running the studio as Run as administrator but still the same result.

Totally agree with you automation is not about speed but its all about consistency. However taking long time is also not acceptable. If it takes longer time, then Obejct reference error is thrown, Which is also not good.

We should find some solution to better the Ranorex.
Regards,
Subodh

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Execution is very very slow

Post by Support Team » Fri Jun 05, 2015 2:10 pm

Hi subodh4u7,

I tried the same steps as you described in your post in on my machine it takes ~ 3 seconds.
Please give us more information about your test environment.
  • Windows version
  • .NET Framework version
  • Ranorex version
Did you already try to reinstall ranorex?

Regards,
Bernhard
.
Image

CookieMonster
Certified Professional
Certified Professional
Posts: 74
Joined: Mon Aug 14, 2006 7:17 pm
Location: CH

Re: Execution is very very slow

Post by CookieMonster » Fri Jun 05, 2015 3:26 pm

Hi,

When we / I have this problem, in the most cases it's something wrong with xpath in the repository.
May you are using an attribute for e.g. text which changes for any kind of a reason. Then object will be searched by the default timeout, and can't be found.

Regards
Dan

User avatar
subodh4u7
Posts: 68
Joined: Tue Jan 06, 2015 8:26 am

Re: Execution is very very slow

Post by subodh4u7 » Mon Jun 08, 2015 9:04 am

  • Windows version - Windows 7 SP1
  • .NET Framework version - 4.5.2
  • Ranorex version
- 5.2.1

No, I have not re-install the ranorex.

Regards,
Subodh
Support Team wrote:Hi subodh4u7,

I tried the same steps as you described in your post in on my machine it takes ~ 3 seconds.
Please give us more information about your test environment.
  • Windows version
  • .NET Framework version
  • Ranorex version
Did you already try to reinstall ranorex?

Regards,
Bernhard
Regards,
Subodh

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Execution is very very slow

Post by Support Team » Tue Jun 09, 2015 8:16 am

Hello Subodh,

First of all, please update to our latest version, currently Ranorex 5.3.2.
After that, please check whether the RxPath of your repository are correct. If you need help, please upload or send your repository file (*.rxrep) to [email protected]

Regards,
Robert
.
Image

User avatar
subodh4u7
Posts: 68
Joined: Tue Jan 06, 2015 8:26 am

Re: Execution is very very slow

Post by subodh4u7 » Wed Jul 15, 2015 5:29 am

I have figured out the problem.
I have added few more attributes to the xpath of the elements and now its much faster and better. And also removed '/' , '*' from the xpath and modified to the full path.

Regards,
Subodh
Regards,
Subodh

melvinarivas
Posts: 1
Joined: Tue Jul 28, 2015 4:52 pm

Re: Execution is very very slow

Post by melvinarivas » Tue Jul 28, 2015 4:56 pm

Thanks for question and answers. I have the same problem.