How to call a function in QTP?Is there any method ?


Thanks ,
PRASANNA

Answers were Sorted based on User's Feedback



How to call a function in QTP?Is there any method ? Thanks , PRASANNA ..

Answer / siva

there are twoways
call login( login is a function name) for this we have to
create a function in a notepad and we have to save it
with .vbs extension, then we have to go to settings-
resources-you the show he path of the vbs file) then it
will work perfect or else
executefile"pathof your vbs file"
ex: executefile"d:\\login"
i hopw you can understand

Is This Answer Correct ?    2 Yes 0 No

How to call a function in QTP?Is there any method ? Thanks , PRASANNA ..

Answer / ramesh t

Call Funcation_Name()

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

When I parameterize a script then for each iteration script is executed from begining to end. If I want to execute some middle steps multiple times using Parameterization (avoiding begining and end steps), what is the solution of this (e.g. total steps are 1 2 3 4 5 and i want 2 3 4 only(not 1 nd 5)

3 Answers  


How to get line numbers in your editor in expert view?

1 Answers  


How can we perfom Action and Component parameter.?

1 Answers   EDS,


How many types of recording modes are there?

0 Answers  


Hi All As per the requirements i have to copy the data from word document to excel sheet using the QTP Note : Data in word document is in tabular format i.e there is 80 rows and 5 columns table Can any body provide code for this ? Thanks in advance Regards Test123Test

1 Answers  






I recorded a Web based Application running on JAVA and when I went to play them back a week later they didn't run. I noticed that the Browser was putting in a (Underscore and a Number) for each line so i re-recorded and noticed the Underscore line wasn't the same as what i recorded last week so any script I record today will not work next week because the browser settings or how QTP recognizes it keeps changing. This is the new line Browser("Bureau of Labor Statistics_4").Page("Bureau of Labor Statistics").JavaApplet("SurveyApplet").JavaList ("Select an Area").Select "U.S. city average" This is the old line 'Browser("Bureau of Labor Statistics_3").Page("Bureau of Labor Statistics").JavaApplet("SurveyApplet").JavaList ("Select an Area").Select "U.S. city average" Notice the Burearu of Labor Statistics_3 adn Burearu of Labor Statistics_4. Why does it change and how do I prevent it from changing.

5 Answers  


What are the Levels of Automation in QTP

2 Answers  


How did you resolve conflicts present in Object Repository?

0 Answers  


write script to read and write data from file ?

2 Answers   HealthAsyst,


Explain types of descriptive programming?

0 Answers  


What r steps to migrate from Manual testing to QTP?(IN BOTH WEB BASED AND WINDOWS APP)

1 Answers   Wipro,


w is active screen

2 Answers   GCI, Wipro,


Categories