Hi all,
Can any one help me with my question in parameters concept.

1)I have three action and in the first action some data stored in a
variable.
And i want to use this data stored in a variable in another test.
I know that by using datatable or environment variable or external vb file
we can archive this but is there any possibility of doing this from
parameters.
You can use global sheet



2)And one more question is we can declare parameters from the file >
settings > parameters and one from edit>action (this is for individual
actions).
when i am declaring a value in file> settings As per my knowledge this
values we can use them in any of the actions in that test. but In my case
it is not working.only the one which we declared in the individual actions
is working.

For an input parameter, you can specify either a fixed value or you can
specify the name of another defined parameter (Data Table parameter,
environment parameter, or an action input parameter of the calling action)
from which the argument should take its value.

For an output parameter, you can specify either a variable in which you
want to store the value or the name of a defined parameter (Data Table
parameter, environment parameter, or an action output parameter of the
calling action).

An action call with parameters has the following syntax:

*RunAction* *ActionName**, **IterationQuantity**, **Parameters*

For example, suppose you call Action2 from Action1, and Action2 has one
input and one output parameter defined.

The following statement supplies a string value of MyValue for the input
parameter and stores the resulting value of the output parameter in a
variable called MyVariable.

RunAction "Action2", oneIteration, "MyValue", MyVariable

The following statement uses the value defined for Action1's Axn1_In input
action parameter as the value for the input parameter, and stores the
resulting value of the output parameter in Action1's Data Table sheet in a
column called Column1_out.

RunAction "Action2", oneIteration,
Parameter("Axn1_In"),DataTable("Column1_out", dtLocalSheet)

In the following example, the first statement calls Action2 using its
default input parameter value. The second statement uses the value defined
for Action2's Axn2_out output action parameter as the value for the call to
Action 3's input parameter, and stores the resulting value of the output
parameter in Action1's Axn1_out so that the output value is available at
the parent action level.

RunAction "Action2", oneIteration
RunAction "Action3", oneIteration, Parameter("Action2","Axn2_out"),
Parameter("Axn1_out")

Note that the Action2 output parameter is available for use in the call to
Action3, even though no storage location is specified in the call to
Action2.


3)Please let me know what is the difference between both the parameters
i)one which we declare in file and ii) one which we declare for individual
actions.



Regards
shalini


 --
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

Reply via email to