SaravanaKumar_N
8 years agoContributor
Do we have access for BuiltIn object at Script Extensions
Hi All, My aim is to have a method at our Script Extensions file, that would return the array of command line variables. But it looks like we do not have access for 'BuiltIn' objects at Script Exte...
- 8 years ago
BuiltIn.ParamCount and .ParamStr are wrappers over Sys.Process("TestComplete").CommandLine, so you can try parsing the CommandLine string yourself. Just be aware that spaces can be part of an argument value -- if that argument is enclosed in quotes.
If you use both TestComplete and TestExecute, you'll also need to find out what the current test runner is. Maybe try Sys.WaitProcess("TestExecute") first and fall back to TestComplete.
Or go with tristaanogre's suggestion and use config files instead.