在编码的UI TestRun期间停用远程桌面 [英] Deactivate Remote Desktop during Coded UI TestRun

查看:123
本文介绍了在编码的UI TestRun期间停用远程桌面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在运行编码的UI测试期间是否有正确的方法来停用机器的远程桌面支持?



如果机器的屏幕未激活(锁定/注销),则编码的UI测试无法运行并失败。


因此,如果我在测试运行期间连接并断开连接,屏幕将被锁定,并且进一步的测试将失败。



1)在测试运行期间是否有一种通用/适当的方法来阻止远程桌面会话?



2)有没有办法让编码的UI测试重新登录如果屏幕被锁定(注销)并且我启动了一个testrun?

Hi,
Is there a proper way to deactivate the Remote Desktop support of a machine during the run of a coded UI Test?

If the Screen of a machine is not active (locked/log off) the coded UI Test could not run and fails.
So if I connect during a test run and than disconnect the screen is locked and the further testrun will fail.

1) Is there a common/propper way to block the remote desktop sessions during a test run?

2) Is there a way to get the coded UI Test to relogin if the screen is locked (log off) and I start a testrun?

推荐答案

Hi Live Eric,

Hi Live Eric,

1)是否有共同之处/ propper在测试运行期间阻止远程桌面会话的方式?

你应该可以通过
运行命令
以禁用
AssemblyInitialize
方法然后,在
AssemblyCleanup
方法。

You should be able to do this by running a command to disable the remote desktop in AssemblyInitialize method and then, to enable it in AssemblyCleanup method.

-Tejas。


这篇关于在编码的UI TestRun期间停用远程桌面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆