Micro Focus QTP (UFT) Forums
QTP11 is not able to record on windows application - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: QTP11 is not able to record on windows application (/Thread-QTP11-is-not-able-to-record-on-windows-application)



QTP11 is not able to record on windows application - sowmya - 02-15-2012

Hi,

I tried to record windows application using qtp11 with window7.It is not recording anyting.
I changed the run settings as run on any open windows based application but no use.

Please anybody send me the script for selecting the processes tab of windows task manager using qtp.Flow should be
windows>system32>taskmgr.exe>processes

Code:
For windows xp i have a below code:
window("regexpwndtitle:=system32").winListView("nativeclass:=SysListView32").select "taskmgr.exe"
window("regexpwndtitle:=system32").winListView("nativeclass:=SysListView32").type micReturn
Dialog("text:=windows Task Manager").wintab("nativeclass:=SysTabControl32).select "Processes"


if i run the same code on win7 it shows sysListView cannot identified. and if i spy the sytem32 it just shows window....>winobject...


RE: QTP11 is not able to record on windows application - rohit330 - 02-22-2012

Am not an expertise to suggest, still as a workaround just try to identify those tabs using object spy. If it is not identifying make sure that the add ins are properly loaded.

Regards


RE: QTP11 is not able to record on windows application - inborntester - 02-22-2012

can you use SystemUtil.Run "taskmgr" instead of first two statements.


RE: QTP11 is not able to record on windows application - sowmya - 02-24-2012

Thanks for your response.

I opened task mgr thru system util ,its working fine till clicking on endprocess button appeared on windows task manager dialog.later one more dialog appears for confirmation of end process,in that again end process button is there but its not able to identify that.when i spy it identifies but if i write the script and run then it ll stop its execution.