更新时间:2023-02-06 16:09:19
如果在调试模式下运行Coded UI Test,可能会发生这种情况。但如果禁用它,它不会影响测试的执行。以下是克服此问题的方法:
This may occur if you are running a Coded UI Test in debugging mode. But it will not affect the execution of your test if you disable it. Following is a way to overcome this:
在VS中禁用ContextSwitchDeadlock异常,如下所示:
Disable ContextSwitchDeadlock exception in VS as follows:
转到Debug-> Exceptions->'Managed调试助手'。取消选中ContextSwitchDeadlock的复选框。
Go to Debug->Exceptions->'Managed Debugging Assistents'. Uncheck the check-box against ContextSwitchDeadlock.