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


Please Help Members By Posting Answers For Below Questions

What are the major/ important methods, functions in QTP we use realtime testing

2494


why text area checkpoints cannot used for web applications

2109


How to connect the remote desktop using QTP 9.2 explain the method or procedure?

3034


how to acess a test in RSA?

1884


explain how to write vb script in qtp?when will you write own script?

2064


What is Associate Repository in QTP 9.2 ?

791


What is meant by Output Value in UFT?

790


Can we create a qtp test from qc?

793


Which environments does qtp support?

850


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.

1905


Can any one send me the QTP Basic Coding Samples?

1825


How to create runtime property for an object?

1673


What is Distributed testing? How does UFT support it?

798


How qtp recognizes the object?

867


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

3672