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

When to Insert transactions in QTP?

3 Answers   Siemens,


how to click the link in webpage by using QTP Script????????

3 Answers  


Dis advantages of XML checkpoint ?

0 Answers   Sapient,


Plz explain about object propeties in object identification? means.. explain about 1. mandatory properties.2. assestive properties 3. ordinal properties.

3 Answers   TCS,


How do I modify a value of an elemnt which is not the first one in xml file? My sample XML file is like: <Environment> <Variable> <Name>Name</Name> <Value>Uday Kumar</Value> </Variable> <Variable> <Name>Designation</Name> <Value>Senior Software Engineer</Value> </Variable> </Environment> for example, I'd like to change the value 'Senior Software Engineer' to 'Student' in the second element. How do I do it in QTP?

3 Answers   QualiTest,






What is system testing and what are the different types of tests you perform in system testing?

0 Answers  


How to Analyze the Checpoint results by Table and DB Checkpoints?

1 Answers  


How to covert a String to an integer?

5 Answers  


how many scripts r there in QTP? pls any answer this question?

4 Answers  


How will you handle custom object in QTP?

2 Answers  


If an application name changes frequently i.e while recording it has the name, in this case, how do qtp handles?

0 Answers  


how to get the data from a winedit box in vb scripting and store it in a variable if data contains "_"(i.e data is TEST_1)

3 Answers  


Categories