Page 1 of 1

Sample projects do not run properly

Posted: Wed Nov 16, 2016 9:30 am
by S_A_Fischer
Both example projects (Desktop and Web) do not run properly on my native machine.

When I click at "Run" for a Sample Solution, the SUT opens (either KeePass or browser with WordPress), but the first step (entering a key into field) does not work.

In both cases the Report starts wih "Failed to find item...".

Environment:
OS: Windows 7 SP1
Ranorex: V 6.1
Browser: IE 11

I suppose there is some kind of incompatibility on the environment of the native machine.
I double checked behaviour with a VM (Windows 8.1, Ranorex 6.1, IE 11) and there both samples run correctly.

Which components should I check on the OS?

Re: Sample projects do not run properly

Posted: Fri Nov 18, 2016 1:36 pm
by asdf
Hi Fischer,

May I ask you to check the DPI settings on your initial machine?
This value have to be set to 100%.
Please find more information, on the bottom of the troubleshooting article.

I hope this helps.
Please let me know, if you need further help.

Kind regards,
asdf

Re: Sample projects do not run properly

Posted: Fri Nov 18, 2016 3:15 pm
by krstcs
asdf, the DPI settings only matter for image validation. This does not appear to be the issue here.

S_A_Fischer, it appears that you have changed the default timeout of the element (it says "9.9s (timeout factor = 0.11)"). I would suggest setting everything back to the default and seeing if that works. You cannot make the timeout too fast or Ranorex will not have time to actually find and act upon the element before the test fails.

Re: Sample projects do not run properly

Posted: Mon Nov 21, 2016 6:48 pm
by S_A_Fischer
Hi krstcs, thanks for the advice. The test case is now running but it is very slow. The test case "AddNewEntry" takes 5.5 minutes.

And some steps don't work. The message is quite similar:

Failed to find item 'KeePassTestSuiteRepository.LogIn.MasterPassword'.
No element found for path '/form[@controlname='KeyPromptForm']/text[@controlname='m_tbPassword']/text[@accessiblerole='Text']' within 40s.

So still no successful test run.

What parts of my system could have an impact on the speed of test run?

Re: Sample projects do not run properly

Posted: Mon Nov 21, 2016 6:56 pm
by krstcs
That error message either means:

1. The path is not correct.
2. The path is not SPECIFIC ENOUGH.
3. The timeout is not long enough.


Check them in that order.

Could you please post the following:
A Ranorex SNAPSHOT of the element in question
The FULL RanoreXPath currently being used for the element in question (the path that isn't working...)

Re: Sample projects do not run properly

Posted: Tue Nov 22, 2016 2:53 pm
by Support Team
Hi S_A_Fischer,

In order to analyze your issue in more detail, may I ask you to send an email to [email protected] with a detailed description of your problem.
We could arrange a remote session, in order to look into this problem directly on your machine if it is necessary.

I'm looking forward to your email.

Best regards,
Matthias