Micro Focus QTP (UFT) Forums
Getting Error in QTP 10 - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Getting Error in QTP 10 (/Thread-Getting-Error-in-QTP-10)



Getting Error in QTP 10 - kirankadam - 03-27-2012

Hello Friends
I am using QTP 10 on my window 7 ulitmate version.
I just record one window application script & playback,But I got a error
The test run cannot continue due to an
uncoverable error.
Cannot find the "SysListView32" Object's
"Start menu"(class Window).Verify that
parent properties match an object currently
displayed in your application.
Line(1):"Window("Start menu").WinListView("SysListView32").Select"Right".
I did not understand this error.I googled it.
But I am unble to find the solution.Please help some one.
Give me solution & why this error occured again & again.
I also attach screenshot.[Image: qtperror.png]

Thanks in Advance
Kiran


RE: Getting Error in QTP 10 - sshukla12 - 03-27-2012

Hi,
Instead of using this line of code:
Code:
Window("Start menu").WinListView("SysListView32").Select"Right"
go for System.util Run(path of the application)
This will help u out.

Regards,
Sankalp


RE: Getting Error in QTP 10 - kirankadam - 03-27-2012

Thanks Sankalp,
I did not understand where & how to use Systemutil.run command.
I paste my script,Please send me modified script.

Code:
Window("Start menu").WinListView("SysListView32").Select "Flight"
Dialog("Login").WinEdit("Agent Name:").Set "admin"
Dialog("Login").WinEdit("Password:").SetSecure "4f719d3a0f20a4f7e082b69c971e4ccfcca16ed5"
Dialog("Login").WinButton("OK").Click
Window("Flight Reservation").Close

Reply me.
Thanks & Regards
Kiran


RE: Getting Error in QTP 10 - swathi - 03-28-2012

Code:
use systemutil.Run("C:\Program Files\HP\QuickTest Professional\samples\flight\app\flight4a.exe")
in place of
Code:
Window("Start menu").WinListView("SysListView32").Select "Flight"


C:\Program Files\HP\QuickTest Professional\samples\flight\app\flight4a.exe is the path where Flight application is installed in my system so please make sure to cross check the path in your system to invoke Flight application


RE: Getting Error in QTP 10 - kirankadam - 03-28-2012

Thanks Swati,
As per you suggest,I follow the code.
Script is runnin without error.
Thank you very very much.
Regards
Kiran