Solved
Forum Discussion
rraghvani
Champion Level 3
3 years agoHere's an example: TC Project
Batch file,
echo off
setlocal enableextensions enabledelayedexpansion
set /a x = 1
:loop
if %x% leq 5 (
echo x: %x%
"c:\Program Files (x86)\SmartBear\TestComplete 15\x64\Bin\TestComplete.exe" "c:\Sandbox\ALT\TestComplete\Number\Number.pjs" /run /exit /project:Number /prjvar:Var1=%x% /donotshowlog
set /a x = x + 1
goto :loop
)
:end
echo finished
It will loop 5 times, calling TC and passing the appropriate variable %x%
Try write something simple, and get it to work.