Hi let me ask one questin

1.How to use outputof the one function input to the another
function
pls give the script for above


2.what is the purpose of action parameter , how to create it

Answers were Sorted based on User's Feedback



Hi let me ask one questin 1.How to use outputof the one function input to the another function ..

Answer / sup

Action Parameters can be created in this way:-


Right-Click on Action in Keyword View
Click on Action Properties
Select Parameters Tab

***********Action input parameters*********
Click on "+" and add the input Variables with their
respective datatype and their Values

***********Action output parameters*********
Click on "+" and add the output Variables(o/p Var name)
with their respective datatype
Note- Here there is no Default Value tab

++++++++++++++++++++++++++++++++++
Once you have created Action Output Parameters
write in the Expert View of the same action
Parameter("o/p Var name")="pass"(you can give any values)

************
and then yopucan call this action in any other actions
within same or different test

Is This Answer Correct ?    1 Yes 1 No

Hi let me ask one questin 1.How to use outputof the one function input to the another function ..

Answer / dimple

Passing the parameters from one action to another. Here is
an example.
'Action1 script
dim var
var=Parameter("t") 'Input parameter
msgbox(var)

Parameter("a")=89 'Output parameter

Create anothere action action2
RunAction "Action1",oneiteration,"20",x
Msgbox(x) 'First action output parameter comes to action2
automatically

Exit run

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

what is the difference between DATA TABLE and DATA SET?

2 Answers   Accenture,


An object is created, i dont know the methods available for that object, i want to find methods available for that object and use the required method. How i can do this???

4 Answers   HCL,


how i will connect oracle or microsoft acess database through manually written Script

2 Answers   Aurigo,


There is a name "AJAY" how do u count no.of. "A" in that name ?

4 Answers  


what is the use of VIRTUAL OBJECTS? explain ?

10 Answers   ABC Infotech, IBM, TCS,


What does SPLIT and JOIN commands do in Vbscript?

6 Answers   Ordain Solutions, UBC,


HI ALL, HOW WE INSTALL .NET ADD-IN OR JAVA ADD-IN TO THE QTP? PLZ URGENT.ANSWER ME.

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.

5 Answers  


Hi,can anyone tell me How to found the number of 1's and 2's in the given format 1,1,2,2,3,3,4,2 using vbscript Thanks in advance

3 Answers  


What are the different types of Database checkpoints in QTP? when they are used?

2 Answers  


Have you ever written a compiled module? If yes tell me about some of the functions that you wrote.

1 Answers  


how to test load test and block box testing an a web based application pls give ans briefly

0 Answers   Impiger,


Categories