Micro Focus QTP (UFT) Forums
qtp 11 and visual c 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: UFT / QTP Interview Questions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Interview-Questions)
+--- Thread: qtp 11 and visual c application (/Thread-qtp-11-and-visual-c-application)



qtp 11 and visual c application - qtptester - 11-10-2011

hello all,

i am trying to use qtp11 to test this visual c application
but i have this problem :
i registered these statements

Code:
Window("[window]").Dialog("dialog").Activate
Window("[window]").Dialog("dialog").WinList("LB").WinEdit("Ed").SetSelection 0,6
Window("[window]").Dialog("dialog").WinList("LB").WinEdit("Ed").Set "898989"

but when i run the test with qtp 11 the test stop and show me the following error

Ed
Object's physical description:
Native Class = Edit
miccommentproperty =
Index = 1



note i saw in the help that setSelection is used to select where write in a textfield and in the qtp help it was followed by the method "Type" i tried it too but it did no worked
can you help me please?

thank you very much