Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

For Passing Parameters from one Action to another Action we
will use Input & Output parameters. Can any one tell how to
use this Input & Output parameters with Example ?

Answer Posted / saravanaraja

write the following script in Action1

dim a,b

a=10
RunAction "Action2",oneiteration, a,b

msgbox b

here a is the input parameter & b is the output parameter.

click Action 2 properties and give input parameter as a &
output parameter as b.


Write the following script in Action2:

dim c,d

c=parameter.item("a")
c=c+20

parameter.item("b")=c

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to find array size in qtp?

949


What does it mean when a check point is in red color? What do you do?

1029


How to handle dynamic objects in quicktest professional?

892


How many types of recording facility are available in quicktest professional (qtp)?

996


tell me QTP standards ?plz

1871


What is the registration process and examination fees?

1011


I am getting an error "failed to open the XML checkpoint result viewer" in result window,after clicking on "View XML checkpoint results".Someone suggest me settings,if any...

1984


what type of automation is follwed in the project?

1879


I AM TRYING PORT CODE FROM WINRUNNER TO QTP AND DON'T KNOW TO HOW TO CHECK THE ERRORS. IN WINRUNNER FUNCTION RETURNS EIGHER 0 OR -1 AGAINST WHICH RESULT CAN BE MADE PASS OR FAIL BUT IN QTP I DON'T SEE FUNCTIONS RETURNING ANY VALUE. APPRECIATE IF ANYONE COULD HELP ME CONVERTING FOLLWOING WINRUNNER CODE TO QTP. set_window("Customer Service"); rc = web_obj_get_text("Summary","#2","#4",ssn,""," ",1); if (rc != E_OK) { report_msg("[GetSubscriberSummary] Could Not get subscriber SSN; rc = "&rc); myRC = rc; } else { ssn = StripBlank(ssn); if (DEBUG) report_msg ("[GetSubscriberSummary] SSN: "&ssn); }

2203


How to execute the WR Script through QTP? I have WinRunner script with initialization script, common scripts, GUI AND functions. I connected WR through QTP with "call to WinRunner" option but I am getting problem after connecting to WinRunner i.e. showing "Do you want to quit now" with 'yes' and 'No' message box

2236


What is the use of an object spy tool in qtp?

949


How to add synchronisation points in qtp?

990


Hi How to retrieve data from web element line by line?

1994


How to modify the text checkpoint?

1057


How to run a test using quicktest professional (qtp)?

1056