0

问题:在VS 2012中更新C# 我运行编码的UI测试与CUITe。 质量保证代理正在翻身并生成一个dat文件编码的UI测试更改用户造成FatalExecutionEngineError返回AgentRestart.dat

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

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

我正在通过托管调试助理工作。随着调试完成我在测试浏览器中它可能不会被调用。我已经把代码到最低限度,并且将包括更多,如果需要

回答