Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/csharp-4.0/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2012/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 4.0 编码的UI测试更改用户导致FATAlexecutionEngineer返回AgentRestart.dat_C# 4.0_Visual Studio 2012_Coded Ui Tests_Automated Tests - Fatal编程技术网

C# 4.0 编码的UI测试更改用户导致FATAlexecutionEngineer返回AgentRestart.dat

C# 4.0 编码的UI测试更改用户导致FATAlexecutionEngineer返回AgentRestart.dat,c#-4.0,visual-studio-2012,coded-ui-tests,automated-tests,C# 4.0,Visual Studio 2012,Coded Ui Tests,Automated Tests,问题: 我正在运行一个编码的UI测试,在VS2012中更新为C。 QA代理正在摔倒并生成dat文件 在调试模式下运行 它成功地打开IE浏览器窗口,登录,尝试在组合框中更改用户。这些名称的格式为“Mr First Last username” CUITe_HtmlComboBox cboUsers = bw.Get<HtmlComboBox>("Id~user"); string terminatingString = ")"; int i = -1; foreach(string u

问题: 我正在运行一个编码的UI测试,在VS2012中更新为C。 QA代理正在摔倒并生成dat文件

在调试模式下运行 它成功地打开IE浏览器窗口,登录,尝试在组合框中更改用户。这些名称的格式为“Mr First Last username”

CUITe_HtmlComboBox cboUsers = bw.Get<HtmlComboBox>("Id~user");
string terminatingString = ")";
int i = -1;
foreach(string userPart in cboUsers.Items) //'Mr'
{
    if(userPart.EndsWith(terminatingString))
    {    
        if(userPart.Contains("username"))
            cboUsers.SelectItem(i);
        i++;
    }

}
通过MSTest.exe运行时,有一个AgentRestart.dat,如下所示,非常抱歉

    ÿÿÿÿ          sMicrosoft.VisualStudio.QualityTools.AgentObject, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a   7Microsoft.VisualStudio.TestTools.Agent.AgentRestartInfo   m_runIdm_testsCompleted System.Guid   ýÿÿÿSystem.Guid   _a_b_c_d_e_f_g_h_i_j_k           ÂTíÚi©D¹È›ë¤÷    

我正在通过托管调试助手工作。由于调试是在测试资源管理器中完成的,因此可能不会调用它。我已将代码保持在最低限度,并将在需要时包含更多代码

找到答案,无法连接到 服务器的telnet ip端口

    ÿÿÿÿ          sMicrosoft.VisualStudio.QualityTools.AgentObject, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a   7Microsoft.VisualStudio.TestTools.Agent.AgentRestartInfo   m_runIdm_testsCompleted System.Guid   ýÿÿÿSystem.Guid   _a_b_c_d_e_f_g_h_i_j_k           ÂTíÚi©D¹È›ë¤÷