h u call the function

Answers were Sorted based on User's Feedback



h u call the function..

Answer / swarup

We can call a function using below method.

Call Function Name("Hello World")
[public/private]Function Function(text [Arg List])
MsgBox text [Description]
End Function

Is This Answer Correct ?    2 Yes 0 No

h u call the function..

Answer / venu

Even if U don’t specify CALL keyword & just write this way:

FunctionName (Parameter1, Parameter2,….)

This will call the required function

Is This Answer Correct ?    1 Yes 0 No

h u call the function..

Answer / praveena

we can call the function by using tools>general
options>folders...........
(or)
call test_name ( [ parameter1, parameter2, ...
parametern ] );

if it is wrong plz tell the correct...........

thank you

Is This Answer Correct ?    0 Yes 0 No

h u call the function..

Answer / sugumar

First u Write the test. And then rename the action (shift +
F2) then which test u want to call that renamed function
open the test Choose call to Existing Action. choose which
function u wand to call the action name automatically
appear in the action's box. And then click ok function
called.
Rename Steps:
Edit-->Action-->Rename (or) Action Property.
Steps for Call Function:
Insert-->Call to Existing Action-->select the test from
list--> Choose where u want call the function then press
ok. Finally u see that test RunAction.... step appear

Is This Answer Correct ?    0 Yes 0 No

h u call the function..

Answer / narendra

First of all we need to add that function into resources
tab and script as call <function name>(arguments if any)

comment on the same

Is This Answer Correct ?    0 Yes 0 No

h u call the function..

Answer / siva

I can tell the ways of how to call the function
First prepare test for any application then
go to==>note pad==>save with extension of .VBS then
EX:=function function name()
""ur test""
End function

then Associate this function to QTP
How to associate==>file==>settings==>Resources==>add ur file

then call to ur function

function name()

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

Hi,iam new to automation and i have 1 year experience in manual testing.I have a little bit idea about QTP9.0 .But i have no idea about script writing using VB.Please help to learn script writing.

1 Answers  


How can we use the "CreateObject ("Scripting.FileSystemObject")" in QTP and what is the definition and purpose of it?

2 Answers  


can we take 'dim my pen is good' as a paramerter

2 Answers  


How exactly you start scripting in QTP? In the interview he was not satisfied with my answer.Please post what is correct answer.

2 Answers  


write qtp descriptive programming to activate multiple notepads? please urgent friends

1 Answers   TCS,


how to load vbs file to qtp through scripting. plz provide the code.....

2 Answers   IBM,


How to open any application during Scripting in QTP?

7 Answers   Celgene, IBM,


is it possible to change the date format like MM/DD/YY into DD/MM?YY through script in QTP

5 Answers   IBM,


what is batch run ?

4 Answers   HCL,


in my database haveing 3X3 (manas having 3 rows 3 colums) i want to test only (2nd row 3colum) bit how to test either script or any automation plz explain? (Chandana)

8 Answers   IBM,


Client is able to provide budget..he want you to choose the automation tool for the web application? which one you will select ? QTP or Selenium ? what are the reasons?

0 Answers   CTS,


Define virtual object?

0 Answers  


Categories