测试代理..设备重启重新连接 [英] Test Agent .. Device restart reconnect

查看:68
本文介绍了测试代理..设备重启重新连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的测试要求是让测试目标设备断电,然后重新启动或重新启动,然后重新启动测试应用并继续测试检查。我把这样的东西放到我的测试代码中。



System.Diagnostics.Process.Start(" shutdown"," / r / t 0");

My Test requirement is to have the Test Target Device power off and then back on or restart, then re-launch test app and continue test checks. I placed something like this into my test code.

System.Diagnostics.Process.Start("shutdown", "/r /t 0");

System.Threading.Thread.Sleep(180000);

System.Threading.Thread.Sleep(180000);

OpenApp();

OpenApp();

设备重新启动,我得到的第一条消息是


代理连接错误:该任务已经有[此设备]的活动会话。每30秒重试一次。

Device reboots and the first message I get is
Agent connect error: The task already has an active session for [this device]. Retry every 30 sec.

然后

代理重新连接。

Then
Agent reconnected.

3分钟睡眠未过期,但是,一次测试永远无法继续。

the 3 minute sleep had not expired, however, once it does the test never is able to continue.

有没有办法让代理重新连接到上一个会话并继续?

Is there a way to have the agent reconnect to the previous session and continue?

不是真正的小孩而不是真正的巫师

Not really a kid and not really a wizard

推荐答案

嗨WizKid730,

Hi WizKid730,

感谢您在此发帖。

您是否在TFS VNext Build中部署测试代理并在远程计算机上运行测试?如果是这样,我很抱歉,如果您之前使测试代理设备重新启动,我们就无法让代理重新连接到上一个会话。因为在您使测试代理
设备重启后,您的计算机将丢失测试代理设备之间的所有连接,然后代理无法重新连接到上一个会话。

Did you deploy the test agent and run test on remote machine in TFS VNext Build? If so, I am sorry that we could not have the agent reconnect to the previous session if you make the test agent device reboot before. Because after you make the test agent device reboot, your machine will lose all connections between the test agent device, then the agent could not reconnect to the previous session.

最好的问候

Limitxiao Gao

Limitxiao Gao


这篇关于测试代理..设备重启重新连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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