I'm searching how to run my testng file in a loop for example each hour with a batch file
To run my test I use this
mvn clean test
and it's working fine (I have the maven surefire plugin inside my pom)
I also tried to make an infinite loop in batch like this
:while
if %var% equ %var% (
timeout /t %time_to_wait%
goto :while
)
and this also works fine
but for some reason if I'm doing the 2 at the same times like this
:while
if %var% equ %var% (
mvn clean test
timeout /t %time_to_wait%
goto :while
)
It will run my test, wait for the x seconds then instead of going back inside the loop it just stops
Any idea ?