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 is review
Can the user toggle between using Local OR and shared OR for the same action?
can any body give the banking domain concepts/links
Explain different types of checkpoints?
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.
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
What is test object model in quicktest professional (qtp)?
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
How many types of parameters are available in quicktest professional (qtp)?
what r the main attributes of test automation?
What are the Application Functions available in QTP?
How do we analyze the checkpoint results?
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
what are the utilities and drivers
Can we run multiple QTP scripts one after the other without manual intervention? How?