Forum Discussion

dhirendranaga's avatar
dhirendranaga
Occasional Contributor
9 years ago

How to pass values to Project Variables when project is run from command line.

Below is the requirement:

-The TestComplete project has defined Project level variables set to default values.

-Required to run project from command line, able to pass project suite, project details, but not sure how to pass Project Variables and values from command line.

 

Please help.

7 Replies

  • SmartBearDan's avatar
    SmartBearDan
    SmartBear Alumni (Retired)

    Hi dhirendranaga,

     

    There's no way to pass a variable directly through a command line, but you can use a data source outside of TestComplete to set a variable value.  This could be an Excel file, CSV, or any ODBC compliant database.  Essentially, your Project could read that data source and set the Project level variables as the first step in the test set.

     

    Some reference links on this below.

     

    Data Driving a Test Case in TestComplete

    Working with Excel Files

     

    -Dan