Page 1 of 2

Spy can't find all of the SAP GUI elements

Posted: Mon Sep 14, 2015 3:06 pm
by Martin
Hello

I'm having an issue with Ranorex Spy. Seems that it doesn't wan't to find all the elements seen by users.

Info:
Ranorex 5.4.1
SAP GUI 7.40 Patch 4
Win 7 64-bit

The issue is that in most of the screens Ranorex Spy can only find the main element within what the needed elements are in.
Untitled.jpg
I have tried multiple combinations to fix the issue:
Spy32bit
Spy64bit
Running SAP and Ranorex with Admin rights
Running SAP and Ranorex without Admin rights
Reinstalling Ranorex
Reinstalling Ranorex to a different folder
Reinstalling Ranorex to a different folder without the version number

Also I have scripting enabled in SAP.

So the question on hand is, should I be able to select the elements (such as nameTags, textfields etc.) I wish from inside the main container area or are there some restrictions I don't know about or am I just missing something?

Re: Spy can't find all of the SAP GUI elements

Posted: Mon Sep 14, 2015 3:23 pm
by odklizec
Hi Martin,

Could you please post a Ranorex snapshot of the element in question? Without snapshot, it's next to impossible to suggest something useful.

Re: Spy can't find all of the SAP GUI elements

Posted: Tue Sep 15, 2015 9:18 am
by Martin
Sent the snapshot to support.

Odklizec, if you haven any time or will to check it as well, give me a reply and I can send you the snapshot as well.

Thanks,
Martin

Re: Spy can't find all of the SAP GUI elements

Posted: Tue Sep 15, 2015 10:37 am
by Martin
Also I had some progress using the GDI capture list, but this can only get me the raw text seen.
Still cannot seem to get the textbox elements from the forms.

Re: Spy can't find all of the SAP GUI elements

Posted: Tue Sep 15, 2015 12:16 pm
by odklizec
Hi Martin,

I'm currently out of my Ranorex machine, so I can't help you much. I'm sure Ranorex folks will contact you soon.

BTW, have you enbaled SAP scripting support in SAP settings? Please check this Ranorex support page regarding SAP testing...
http://www.ranorex.com/support/user-gui ... tions.html
This may be the reason why you cannot access the individual elements.

Another possibility may be that not all SAP elements are supported yet and therefore, the GDI access may be currently your only option?

Re: Spy can't find all of the SAP GUI elements

Posted: Tue Sep 15, 2015 1:40 pm
by Martin
Hey, thanks for your reply

Scripting is actually enabled.

These SAP elements are quite common ones and probably already from the 1st versions of SAP GUI.

But I did some further digging and maybe it might even be an issue of the views?

Cause the form (from the second picture from the 1st post) is actually composed of different screens.
So probably they are in a larger container. But still should be able to access the child elements then.
odklizec wrote:Hi Martin,

I'm currently out of my Ranorex machine, so I can't help you much. I'm sure Ranorex folks will contact you soon.

BTW, have you enbaled SAP scripting support in SAP settings? Please check this Ranorex support page regarding SAP testing...
http://www.ranorex.com/support/user-gui ... tions.html
This may be the reason why you cannot access the individual elements.

Another possibility may be that not all SAP elements are supported yet and therefore, the GDI access may be currently your only option?

Re: Spy can't find all of the SAP GUI elements

Posted: Tue Sep 15, 2015 1:56 pm
by odklizec
Well, it's possible that due to the design of individual forms, it may not be possible to track the underlying elements via spy or recording. But it may still be possible to access them directly via spy tree or manually constructed xpath. Feel free to send me the snapshot and I can check it tomorrow when I will be back at work.

Re: Spy can't find all of the SAP GUI elements

Posted: Tue Sep 15, 2015 2:03 pm
by Martin
odklizec wrote:Well, it's possible that due to the design of individual forms, it may not be possible to track the underlying elements via spy or recording. But it may still be possible to access them directly via spy tree or manually constructed xpath. Feel free to send me the snapshot and I can check it tomorrow when I will be back at work.
Spy tree basically contains 2 elements in the end - left side of the container area (that actually includes all the layout stuff) and the right side of the container.

Not sure about manual contstructing of the path though.

I'll send you the snapshot via PM in a sec.

And big thanks to you for taking the time to understand my issue!

Thanks,
Martin

Re: Spy can't find all of the SAP GUI elements

Posted: Wed Sep 16, 2015 7:32 am
by odklizec
Hi,

Are you sure you posted me a correct snapshot? The one you sent me does not look like the screenshot you posted in your first post?

In the snapshot you sent me, there seems to be no access to the individual elements of "element 100", which is a SAP TreeList. Is this the same kind of element as in you initial post? My best guess is, that this TreeList is not yet supported by Ranorex? I'm sure Ranorex folks will provide you with more details.

Re: Spy can't find all of the SAP GUI elements

Posted: Wed Sep 16, 2015 7:37 am
by Martin
odklizec wrote:Hi,

Are you sure you posted me a correct snapshot? The one you sent me does not look like the screenshot you posted in your first post?

In the snapshot you sent me, there seems to be no access to the individual elements of "element 100", which is a SAP TreeList. Is this the same kind of element as in you initial post? My best guess is, that this TreeList is not yet supported by Ranorex? I'm sure Ranorex folks will provide you with more details.
Hey

1st of all thanks for taking a look.

Yeah it's actually the correct one. And yeah that's exactly the issue. The "element 100" doesn't contain any further child elements (except 2 (left and right side of the container area).

And atm I'm not sure if it's a resctriction from Ranorex or SAP side.

Today i'll be trying out IBM RFT with the same place and see if there is any change.


PS. Ranorex support hasn't replied yet




Edit: Quick note. In the 1st post i have actually posted 2 screenshot. The bottom one is for the snapshot i posted. The 1st one is from another screen (SAP specific) and was there just as another example but is not included in the snapshot.

Re: Spy can't find all of the SAP GUI elements

Posted: Wed Sep 16, 2015 8:18 am
by odklizec
Hi Martin,

You are welcome. Sorry, I missed the second screenshot ;)

Anyway, I would suggest to try to examine the problematic element with Microsoft's Inspect tool (discussed >here<). If the Inspect tool can select the child elements of "Element 100", then it's definitely something Ranorex folks should look into. Most probably not yet implemented support for this kind of SAP element. Good luck!

Re: Spy can't find all of the SAP GUI elements

Posted: Wed Sep 16, 2015 9:32 am
by Martin
odklizec wrote:Hi Martin,

You are welcome. Sorry, I missed the second screenshot ;)

Anyway, I would suggest to try to examine the problematic element with Microsoft's Inspect tool (discussed >here<). If the Inspect tool can select the child elements of "Element 100", then it's definitely something Ranorex folks should look into. Most probably not yet implemented support for this kind of SAP element. Good luck!
Thanks for the idea. I'll take a look right away.

Re: Spy can't find all of the SAP GUI elements

Posted: Wed Sep 16, 2015 2:08 pm
by Martin
Seems to have the same issue with with MS Inspect.

But did some further digging (I, myself, am quite new to SAP, so debugging that side takes more time for me atm) and waiting for sys admins to change a global parameter for the server.

If this fixes the issue i'll sure let Ranorex support know as well as this should be included in the "setting up Ranorex for SAP" documentation as a dependency.

Re: Spy can't find all of the SAP GUI elements

Posted: Wed Sep 16, 2015 3:18 pm
by Martin
Issue solved. Was related to my last thought.

I'll post the requirements here as well as i'll send it to Ranorex Support to update documentation tomorrow during my working hours.

Thanks for the help!

Re: Spy can't find all of the SAP GUI elements

Posted: Wed Sep 16, 2015 3:24 pm
by odklizec
Nice to hear you found the solution! ;)