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

Answers were Sorted based on User's Feedback



I've some problem in Descriptive programming plz help me. I've written in a click event c..

Answer / nn

syntax error?- 2 if's used an 1 end if

Is This Answer Correct ?    0 Yes 0 No

I've some problem in Descriptive programming plz help me. I've written in a click event c..

Answer / 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

More QTP Interview Questions

Can any body help me to write descriptive program to find a cell value (say 2 row, 3rd column) in a datatable which is creating dynamically and statically

0 Answers  


How we can capture the dynamic object ex:(rotating globe) in the web page with time gaph is 5 sec..

3 Answers   IBM,


I am Using QTP 9.1 version. I have created a Shared Object Repository. The size of Shared Object REpository is 9 MB. In my system i am able to execute the script very flexibly and it is very fast. But if i copy the same code into other system with the same configuration, it is executing very slowly(i.e dam slow). It is not happening in all machines it is in only some machines. Can please any one give th esolution. It is high priority to me as i need to give demo to client on their machines.

4 Answers   TCS,


How to use the object spy in quicktest professional 8.0 version?

0 Answers  


How the objecs properties are identified?Tell me in Hierarchical order?

5 Answers   IBM,






In one of the scripts the pwd in the DT was encripted. Can any one tell me how to I decript or undo the same?

3 Answers   BirlaSoft,


As u told write Libarary files in QTP. Do u use ever oject repositary 0r spy while writing scripts and for which type of testing u prepared test scripts.

1 Answers  


HOW TO DO THE BATCH TESTING USING QTP?

2 Answers   Ordain Solutions,


What is keyword view?

0 Answers  


When I click on a link in web page.Link should open in new window.can anyone please let me know the script for this ---Koti

0 Answers   HCL,


give me the code for check point for validating application

1 Answers  


How to convert non-reusable action into reusable action in QTP?(i know by default QTP will take it as a non-reuable action )(Chandana) plz urgent?

4 Answers   Wipro,


Categories