Forum Discussion
7 Replies
- SmartBearDan
Alumni
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
-Dan
You could also set an environment variable and then read it in your test
http://support.smartbear.com/viewarticle/70788/ "GetEnvironmentVariable Method"
(Note that this won't work if you have enabled support for Windows Store apps on Windows 8 and up due to permissions issues).
- dhirendranagaOccasional ContributorThank you very much, will give a try.