Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

I can use the Object Spy from QTP to get the id and name of SAP GUI controls, e.g. user name control from the logon screen:

  • id: /app/con[0]/ses[0]/wnd[0]/usr/txtRSYST-BNAME
  • name: RSYST-BNAME

Is there an equivalent standalone tool that can provide the same information?

Environment: SAP GUI 7.20.

share|improve this question
    
qtp needs extra adins. for sap it needs sap addin. object spy wont work if the specific addins are not present. try uia verify it might be helpful. –  Kanishka Choudhury Dec 11 '11 at 6:13

3 Answers 3

If you are looking for a spy for SAP GUI in particular, there is a integrated script recorder in SAP GUI. You can access it via "Customize Local Layout (Alt+F12)" > "Script Recording and Playback...".

I also remember a SapGuiScriptingSpy.exe which I think came from SAP, but I don't remember where you can get it from.

share|improve this answer
    
thank you, it's usable but I can't see the objects properties, since it records only the id. –  alexandrul Apr 13 '12 at 7:35
1  
To get an object's properties and methods the SAP GUI automation help may be of use (it's accessible from the same menu). I know it's not very comfortable to do it that way, but still, better than nothing. –  tehlexx Apr 16 '12 at 8:57

It really depends on what the underlying technology. For Win32 there is Spy++ that ships with Visual Studio. For applications that properly implement the MSAA api's for accessibility you can use UIAutomation, so the tool for that is UISpy which is part of the Windows SDK. For managed .net applications I cannot recommend Hawkeye enough.

If the application is a IE based, you can use my Control Grabber, which is open source here. It uses code from hawkeye to hook the browser control and then uses WatiN (on a 32Bit machine), to read the entire DOM and spit out code in a format that I want.

Hope that helps.

share|improve this answer
    
The mentioned apps are not supporting SAP GUI. Stax Control Grabber works on x64 using corflags.exe, so it can load WatiN.Core.dll. –  alexandrul Mar 12 '12 at 11:44

There is an open source app you can get from here that works in a similiar manner: http://uiautomationverify.codeplex.com

And microsoft has a UISpy tool: http://msdn.microsoft.com/en-us/library/ms727247.aspx

share|improve this answer
    
The mentioned tools are unable to see the client/user/password/language controls. –  alexandrul Dec 6 '11 at 6:05
    
I know it doesn't have the 'pointer' but it should have a listing of active applications that you can expand down to to view the properties. So when you have your app running, and you run one of these, it doesn't recognize your app? –  Todd Bumbarger Dec 6 '11 at 15:36
    
It recognizes the app, but it doesn't show anything below sap user area container. –  alexandrul Dec 6 '11 at 16:49
    
Not sure of anything specific for sap then, sorry. –  Todd Bumbarger Dec 7 '11 at 19:23
    
Thank you for your time, it's true that this is a pretty specific area, and most of the tools I tried have no support for SAP. –  alexandrul Dec 7 '11 at 19:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.