master_mind01
13 years agoNew Contributor
Batch File to run a test item using TestExecute.
Hi,
My batch file looks the following:
@echo off
tasklist /FI "IMAGENAME eq TestExecute.exe" | find /I "TestExecute.exe"
IF ERRORLEVEL 2 GOTO Test2
echo start scripts
pause
@echo on
:Test2
taskkill /IM TestExecute.exe /F
Start /wait "TestExecute" "C:\Program Files (x86)\Automated QA\TestExecute 8\Bin\TestExecute.exe" "C:\TestComplete 8 Projects\MyTest\MyTest.pjs" /r /p:Project_Name /t:"KeywordTests|DoEnter_Info"
What I am trying to do is:
1. Create a main batch file to run TestExecute.
2. Create another batch file to load projects and run specific test item. This batch file that loads projects is going to be called from the main batch file.
Help will be very much appreciated :)
Thanks,
MasterMind
My batch file looks the following:
@echo off
tasklist /FI "IMAGENAME eq TestExecute.exe" | find /I "TestExecute.exe"
IF ERRORLEVEL 2 GOTO Test2
echo start scripts
pause
@echo on
:Test2
taskkill /IM TestExecute.exe /F
Start /wait "TestExecute" "C:\Program Files (x86)\Automated QA\TestExecute 8\Bin\TestExecute.exe" "C:\TestComplete 8 Projects\MyTest\MyTest.pjs" /r /p:Project_Name /t:"KeywordTests|DoEnter_Info"
What I am trying to do is:
1. Create a main batch file to run TestExecute.
2. Create another batch file to load projects and run specific test item. This batch file that loads projects is going to be called from the main batch file.
Help will be very much appreciated :)
Thanks,
MasterMind