Forum Discussion
I suggest you read through Running Tests via Remote Desktop? And understand how tscon utility works.
See posts, https://community.smartbear.com/t5/TestComplete-Questions/Desktop-invisible-error-when-system-is-locked-while-running/m-p/250573 and https://community.smartbear.com/t5/TestComplete-Questions/Getting-quot-The-object-does-not-exist-quot-errors-for-all/m-p/245442.
Hi rraghvani
E:\AutomationTest\APPLE\AppleWMS_Test\Script>for /F "skip=1 tokens=3" %s in ('query user hlcla02') do (C:\Windows\System32\tscon.exe %s /dest:console )
E:\AutomationTest\APPLE\AppleWMS_Test\Script>(C:\Windows\System32\tscon.exe 9 /dest:console )
E:\AutomationTest\APPLE\AppleWMS_Test\Script>(C:\Windows\System32\tscon.exe 29 /dest:console )
I have run the bat file before the test, but it still failed
my test steps is ,run the bat to disconnect then run the test scripts
the bat file as following :
for /f "skip=1 tokens=3" %%s in ('query user %USERNAME%') do (
%windir%\System32\tscon.exe %%s /dest:console
)
if I comment the bat file ,the test can run pass, I am not sure why ?
Related Content
Recent Discussions
- 7 hours ago