Interview Questions   Tutorials   Discussions   Programs   Videos   

QTP - Give me descriptive programming code sample flight application in qtp?




302
views
asked marvit August 19, 2014 02:22 AM  

Give me descriptive programming code sample flight application in qtp?


           

1 Answers



 
answered By Dharma   0  

SystemUtil.Run"C:\Program Files\Mercury Interactive\QTP\Samples\Flight\Application\Flight4a.exe //To invoke the application

Set d=Dialog("text:=Login") //d is storing or just a declaration of d(object )
d.Activatate //opening the d- Login window
d.WinEdit("attachedtext:=Agent Name:").Set"Mercury" //d- variable,winEdit-Window Edit box, attachedtext-Property, agent name- value, Set- method of operation, Mercury- value.
d.WinEdit("attachedtext:=Password:").Set"Mercury"
d.WinButton("text:=OK")


the format will be-> the objecttype(Property:=Value).operation.
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert