I've some problem in Descriptive programming plz help me.
I've written in a click event code in Functional library
when I run this flight reservation program It is not run.
How to I write multiple click event in functional library.
My program is this. I have associate an action with
functional library.
Public Function ClickButton(byval ApplicationName, byval
WindowName, byval ObjectName, byref Comments) If
Dialog("text:=" &WindowName).WinButton("text:="
&ObjectName).Exist Then
Dialog("text:=" &WindowName).Activate
Dialog("text:=" &WindowName).WinButton("text:="
&ObjectName).Click
Elseif Window("text:="&ApplicationName).WinButton("text:="
&ObjectName).Exist Then
Window("text:=" &ApplicationName).Activate
Window("text:=" &ApplicationName).WinButton("text:="
&ObjectName).Click
End if
End Function
Answer Posted / guest
/* Replace Logical Name with Object Properties */
Dialog("text:=" &WindowName).Activate
Dialog("text:=" &WindowName).WinEdit("attachedtext:="
&applicationName).operation."Value"
Dialog("text:=" &WindowName).WinEdit("attachedtext:="
&ObjectName).operation."Value"
Dialog("text:=" &windowName).winButton("attachedtext:="
ok).click
-----------------------------------------------------------
/* Descriptive Object */
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the major/ important methods, functions in QTP we use realtime testing
why text area checkpoints cannot used for web applications
How to connect the remote desktop using QTP 9.2 explain the method or procedure?
how to acess a test in RSA?
explain how to write vb script in qtp?when will you write own script?
What is Associate Repository in QTP 9.2 ?
What is meant by Output Value in UFT?
Can we create a qtp test from qc?
Which environments does qtp support?
I need to pull the data from the page which in row, column vice into excel sheet, how can it be done using QTP? eg: Name Dept xyz gdty i need the same data to be exported in excel sheet.
Can any one send me the QTP Basic Coding Samples?
How to create runtime property for an object?
What is Distributed testing? How does UFT support it?
How qtp recognizes the object?
any body plz send health care domain project to me with explanation any two modules on that project. mail_id: ranjith_99reddy@yahoo.co.in