Forum Discussion
When connected to your remote desktop machine, if you were to run your batch file (do not use tscon or logout), does it run?
Hi rraghvani
I use my computer (machine_1) remote to remote machine(machine_2)
then I write python script to call all progress which I need , the scripts step as following :
1)change to admin to run disconnect
def is_admin():
try:
return ctypes.windll.shell32.IsUserAnAdmin()
except:
return False
if not is_admin():
ctypes.windll.shell32.ShellExecuteW(None,"runas",sys.executable,"",None,1)
2) disconnect (call bat file which is show above)
disconnect_remote()
3) run test case
run_testcomplete()--->subprocess.call(["E:\\AutomationTest\\APPLE\\launchTest.bat", launch_html, launch_xml])
the bat file config :
@echo off
"c:\Automation\x64\Bin\TestComplete.exe" "E:\AutomationTest\APPLE\AppleWMS_Test\AppleWMS_Test.pjs" /run /project:"Apple_Test" /ExportLog:"%1" /ExportSummary:"%2" /SilentMode /exit
if I do not do step 2 disconnect, the test can pass , if I add the step2, test will failed
Related Content
Recent Discussions
- 7 hours ago