User defined function in QTP
Answers were Sorted based on User's Feedback
Answer / sani
User defined functions are encapsulation of segments of
code which is used several times in the script.
They can be either within the QTP script or can be
maintained in external .VBS or .TXT files
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / kabeer
User defined function is basically script logic design by
us.it can repeatable when ever we need it
| Is This Answer Correct ? | 1 Yes | 1 No |
In Descriptive programing if i use this below code will it work for login window or flight Res Window. Shud i add the properties like attached text=login and text=Agent Name in the object repository and define a new object first. Pls tell me the procedure in clear inorder to execute this script. Dialog("title:=Login").WinEdit("attached text:=Agent Name:").set"agent123" Dialog("title:=Login").WinEdit("attached text:=Password:").set"mercury" Dialog("attached text:=Login").winbutton("text:=OK").click
What is the significance of “action 0” in qtp?
how to post xml data from QTP scripts to any application?
how u write vb script in qtp pls give me some basic script and some material
32 Answers Datamatics, UHG, Winit,
How to attach a file to TD?
I Scheduled a QTP Script on remote desktop. Script is going to failure,when remote desktop connection fails.I have to open my remote desktop untile the scripts exection completes. If I disconnect my remote desktop connection, script is going to fail. Could you please any assist in this?
How can we use the "CreateObject("Wscript.Shell")" in QTP and what is the definition and purpose of it?
any one could you explain the following code with example: intFieldItemsCnt =CInt(GetProperty(Browser ("Browsername").Page("Pagename").Weblist ("weblistname"),"items count")) msgbox intFieldItemsCnt
What environment does qtp run in?
when i try to recognise a winmenu item it does not allow me to do that but recognises it as window..i am using qtp 9.2 could someone help with this
how to click on object? (with out knowing the object details) for ex: in a webpage one link is available.i want to click that link by using one menthod through qtp?
Hi All I'm new in QTP. I'm trying to make test cases for login on Flight.exe . I have parametrise the agentname and password field. So wen wromg agent name or password is entered it show a dialog box with proper message(Like: "Wrong Password" or :Please enter Password" etc) and OK button. I have created If else block. Now my problem is i want to make checkpoint on error message Dialog box. But each time i create a checkpoint it shows same text message. So how i can check that message is there or not.