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 is review

1612


Can the user toggle between using Local OR and shared OR for the same action?

563


can any body give the banking domain concepts/links

3633


Explain different types of checkpoints?

562


I have some real time based question.. 1.what are the challenges you have faced in your current project. 2.what are the bugs you found in your current project. 3.what are the strategies you follow to convert manual test cases into automation test cases. 4.how QTP identify two different browsers. 5. When you create a function library and share object repository what are the problems you have faced 6. How to solve the tool tip problem 7.what are the interesting bug you have found in your current project. 8.what is your daily work as a automation test engg. 9. how to create a weekly status report. 10. how many test cases you write,review and execute per day. 11.what are the uses of SQL in automation. 12.How to retrieve the data in html through vb script. 13.If application is very slow how to test the application in qtp.

3571






In order to select an automation tool for automating ur application, what r the things u need to consider? For eg i will go for automation; 1) When there is a lot of retesting and regression testing. 2) Return on investments. 3) Whether the tool supports the appln. 4)--------------, etc. Pls give me more number of points because my answer did not satisfy the interviewer. Very urgent pls

1447


What is test object model in quicktest professional (qtp)?

547


Hi there, I've installed a trial version of QTP to see if it works with my product but I cant automate selecting windows from a tree view? Can anyone give me any pointers? Many Thanks

1412


How many types of parameters are available in quicktest professional (qtp)?

585


what r the main attributes of test automation?

1480


What are the Application Functions available in QTP?

1475


How do we analyze the checkpoint results?

583


What is the use of "New Property" in "Add properties" of testobject properties in object repository. How can i use "New properties" while writing scripts if i have assign some values to the testobject properties Can anyone help me? plz

1478


what are the utilities and drivers

1845


Can we run multiple QTP scripts one after the other without manual intervention? How?

598