Forum Discussion

gopalmalu's avatar
gopalmalu
Contributor
14 years ago

How to pass the parameter in TC

Hi ,



We want to pass the parameter to the Script of testcomplete,

Plaese help in same.



Thanks,

Gopal Malu

3 Replies

  • Hi,



    Use code like this:



    function myFunctionWhichAcceptsAParameter(myParameter)

    {

    // do something

    }



    function Main()

    {

    var myValueWhichIWillUseAsAParameter = "something";

    myFunctionWhichAcceptsAParameter(myValueWhichIWillUseAsAParameter);

    }





    If this is not what you want, clarify your request.
  • Suppose we want to parameterize the object brower value ,which we want to pass from external excel sheet or from database.

    May that object value is different for different testcase.



    In QTP ,we can pass the parameter and value from any external data source.



    Is there any way in testComplete ?



    Thanks,

    Gopal Malu