Forum Discussion
3 Replies
- YMinaev
Staff
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. - gopalmaluContributorSuppose 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 - YMinaev
Staff
Hi,
Yes, you can use Data-Driven Testing to get values from an Excel document, CSV file or a database and use these values in your test.