Forum Discussion

johntaylor's avatar
johntaylor
Occasional Contributor
14 years ago

Passing parameters to .bat cmd files

As suggested in the TestComplete Help "Run TestedApp Operation",

I have an instance where my C++ program runs for about 10 seconds, such that before it is finished, TestComplete thinks it has completed.



In this help article, it suggests a workaround by using the .bat file and adding that as a tested app.



That all works fine, but one of the good things about my structure is that I used a script that passed parameters from TestComplete via TestedApps..CommandLineParameters.



I can't appear to get the equivalent working, so the question is

'Is it possible to pass parameters from TestComplete into the.Bat file and pick up via %1, %2 etc?'



I.e test.bat.file



echo %1

runexe %1



@test.bat bob  echoes bob and runs runexe with bob as a parameter.



Thanks

  John





OOOOOOOOPPPPPPPS



My mistake, that all works great. a typical copy and paste problem. When I referred to the correct testedapp it worked fine.
No RepliesBe the first to reply