Sample projects do not run properly

Ask general questions here.
S_A_Fischer
Posts: 2
Joined: Wed Aug 26, 2015 7:54 am

Sample projects do not run properly

Post by S_A_Fischer » Wed Nov 16, 2016 9:30 am

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?
Attachments
Sample_Report.png
Sample_Report.png (109.35 KiB) Viewed 459 times

asdf
Posts: 174
Joined: Mon Mar 21, 2016 3:16 pm

Re: Sample projects do not run properly

Post by asdf » Fri Nov 18, 2016 1:36 pm

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

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

Re: Sample projects do not run properly

Post by krstcs » Fri Nov 18, 2016 3:15 pm

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.
Shortcuts usually aren't...

S_A_Fischer
Posts: 2
Joined: Wed Aug 26, 2015 7:54 am

Re: Sample projects do not run properly

Post by S_A_Fischer » Mon Nov 21, 2016 6:48 pm

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?

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

Re: Sample projects do not run properly

Post by krstcs » Mon Nov 21, 2016 6:56 pm

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...)
Shortcuts usually aren't...

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

Re: Sample projects do not run properly

Post by Support Team » Tue Nov 22, 2016 2:53 pm

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
.
Image