Suppose u want Pass 'Val1'  to Script1 and get value for 'Val2' from
Script1. Use the following steps.

Open Script1 script,
Go To Action Properties,
In Action Properties pop up window, click on Parameters tab
Click on '+' mark against Input parameters
Enter 'Val1' in Name text field
Same thing u defined in Val2 in Output Parameters section.

Now Use following code to pass and get value from Script1
Dim Val1,Val2
Val1=123
RunAction "Scrip1", oneIteration,Val1, Val2
Msgbox Val2.

To read value for Val1, then use the following code in Script1
Msgbox Parameter("Val1")
To assign value for output parameter, use the following code in Script1
Parameter("Val2")=2334

-Hokrani

On Thu, Oct 16, 2008 at 10:33 AM, Sundar <[EMAIL PROTECTED]> wrote:

>
> How to pass the value from one action to another action and how to get
> the value from one action
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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