Page 1 of 1

Execution is very very slow

Posted: Tue Jun 02, 2015 11:48 am
by subodh4u7
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.

Re: Execution is very very slow

Posted: Tue Jun 02, 2015 2:04 pm
by krstcs
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.

Re: Execution is very very slow

Posted: Wed Jun 03, 2015 5:16 am
by subodh4u7
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.

Re: Execution is very very slow

Posted: Fri Jun 05, 2015 2:10 pm
by Support Team
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

Re: Execution is very very slow

Posted: Fri Jun 05, 2015 3:26 pm
by CookieMonster
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

Re: Execution is very very slow

Posted: Mon Jun 08, 2015 9:04 am
by subodh4u7
  • 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

Re: Execution is very very slow

Posted: Tue Jun 09, 2015 8:16 am
by Support Team
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

Re: Execution is very very slow

Posted: Wed Jul 15, 2015 5:29 am
by subodh4u7
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

Re: Execution is very very slow

Posted: Tue Jul 28, 2015 4:56 pm
by melvinarivas
Thanks for question and answers. I have the same problem.