How to get a Video log when running in console mode? Is there another mode?

When I run from remotely using console mode a browser is not displayed and so the video log is a blank/black screen. A cmd console is not displayed either. I use Invoke-WmiMethod from powershell. Is there a way to get a video? Is there another option for -mode other than ConsoleMode? Here is my code:

$command=‘c: & CD C: \Katalon_Studio_Windows_64-5.5
& .\katalon.exe -noSplash
-runMode=console -projectPath=“C:\BAuto.prj” -retry=0
-testSuitePath=“Test Suites/Run Stage Tests”
-executionProfile=“Stage” -browserType=“Chrome”’

$cmd = "CMD.EXE /c "+$command

[string][ValidateNotNullOrEmpty()]$passwd = $PassWord

$secpasswd = ConvertTo-SecureString -String $passwd
-AsPlainText -Force

$myCredential = New-Object
System.Management.Automation.PSCredential ($UserName, $secpasswd)

Invoke-WmiMethod -class Win32_process -name Create
-ArgumentList $cmd -ComputerName $testServerName -Credential $myCredentialInvoke-WmiMethod
-class Win32_process -name Create -ArgumentList $cmd -ComputerName
$testServerName -Credential $myCredential

1 Like

same question Im running ver 5.6