I have a batch file with below content:
%1 %2 --params.validFile=%3 --params.invalidFile=%4
I am starting it through power shell script:
$path= "<filePath>\start.bat"
$args= '"<filePath>\protractor" "<filepath>/conf.js" "<filepath>/invalidfile" "<filepath>/validfile"'
Write-Host "Executing: " $path $args
$process = Start-Process $path $args -RedirectStandardOutput stdout.txt" -RedirectStandardError "stderr.txt" -PassThru
$process.WaitForExit()
if ($process.ExitCode -eq 0){
Write-Host "protractor cmdline complete"
Exit 0
} else {
Write-Error "protractor cmdline failed"
Exit 1
}
Note:
- filepath is the absolute path
- invalid and valid files are just parameters to the test
Problem:
On running this as part of octopus deployment, the logs shows the "protractor cmdline failed" printed, but the octopus step never ends. It keeps on going forever.
Could someone help in knowing how to integrate protractor with octopus?