pywin32 / pywinauto not working properly in remote desktop when it is minimized

前端 未结 2 1876
耶瑟儿~
耶瑟儿~ 2021-01-15 13:58

I have a Jenkins pipeline that executes a program in a remote server that uses pywin to manipulate an application for functional tests.

My application works great wh

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-15 14:22

    If I understand your problem, which is mine also, correct answer can be found there:

    https://support.smartbear.com/testcomplete/docs/testing-with/running/via-rdp/keeping-computer-unlocked.html

    (This link comes from this page: Remote Execution Guide in pywinauto)

    And exact process to follow such as described in the page:

    To disconnect from Remote Desktop, run the following command on the remote computer (in the Remote Desktop window) as an Administrator:

    %windir%\System32\tscon.exe RDP-Tcp#NNN /dest:console

    where RDP-Tcp#NNN is the ID of your current Remote Desktop session, for example, RDP-Tcp#0. You can see it in the Windows Task Manager on the Users tab, in the Session column.

    You will see the “Your remote desktop session has ended” message, and the Remote Desktop client will close. But all programs and tests on the remote computer will continue running normally.

    I am just testing it and works without problem.

提交回复
热议问题