what is mean by output parameters?
I need full description with example. tell me any one please

Answer Posted / lakshmi.v

inputout Parameters are used for passing the values into the
action.while calling it and returing the values from it.

eXAMPLE FOR USING INPUT AND OUTPUT PARAMETERS IN THE SCRIPT


vbwindow("cal").vbedit("value1").set parameter("a")
vbwindow("cal").vbedit("value2").set parameter("b")
vbwindow("cal").vbbutton("ADD").click
var1=vbwindow("cal").vbedit("RESULT").GetRoProperty("Text")
parameter("c")=var1
vbwindow("cal").vbedit("value1").set parameter("a")
vbwindow("cal").vbedit("value2").set parameter("b")
vbwindow("cal").vbbutton("SUB").click
var2=vbwindow("cal").vbedit("RESULT").GetRoProperty("Text")
parameter("d")=var2

EXAMPLE FOR PASSING THE VALUES&RETURN VALUES
RunAction "Action1[inouttext]",oneiteration,5,7,s1,s2

msgbox s1
msgbox s2

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

There is an excel file of 1 to 100 sheets how you will iterate through it?

760


Does quicktest professional (qtp) is unicode compatible?

754


I want two test two agents login for the flight website. Here is the scenario: I want to go through 1-3 rows for one user login and other user login I want to go though 3-5 rows. How would you set this up in qtp. Thank You

1715


What is the difference between byref and byval in qtp?

790


explain how to write vb script in qtp?when will you write own script?

2064


What are private functions in QTP? How they can be called from the function library?

808


Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.

3186


By using QTP can we record any log files written by the application which is in execution?

1699


how to write the descriptive programming in QTP for remove the object value and substitute, with a variable then call the validation from excel

2103


Hi, i run scripts in one machine those r passed.when i run the scripts in client side those r failed.Give me such a scenario when ever u faced?

1735


Define Canvas view of UFT?

791


Explain in brief about the quicktest professional (qtp) automation object model?

766


Difference between test object and run time object?

768


What is the synchronization point in qtp?

746


Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP). Say, i want to get a parent object for a "Link" in a web page by writing script in Descriptive Programming.

2324