编码的UI测试更改用户导致FatalExecutionEngineError返回AgentRestart.dat

时间:2015-03-31 04:46:53

标签: c#-4.0 visual-studio-2012 coded-ui-tests automated-tests

问题: 我在C#中的VS 2012更新中使用CUITe运行编码的UI测试。 QA代理正在倒下并生成一个dat文件

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

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++;
    }

}

日志 在调试期间,VS将抛出此

FatalExecutionEngineError was detected
Message: The runtime has encountered a fatal error. 
The address of the error was at 0x69c08d3b, on thread 0x1410. 
The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. 
Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack.

通过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¹È›ë¤÷    

我正在处理托管调试助手。由于调试是在测试资源管理器中完成的,因此可能无法调用它。我已将代码保持在最低限度,并且如果需要还会包含更多代码

1 个答案:

答案 0 :(得分:0)

找到答案,无法连接到 data source

的telnet ip端口
相关问题