cancel
Showing results for 
Search instead for 
Did you mean: 

Testcomplete runs slow

SOLVED
Highlighted
Occasional Contributor

Testcomplete runs slow


I am testing c# windows application of .NET Version 4 using the scripts written in TestComplete 8.7. It was working fine. But for the past 2 days I am not able to run even a simple test case which call the c# .Net Ver 4 application. 


 


I think the component from TestComplete that talks to .Net is crashed or corrupt. So what happens when I run a test case it launches my tested application  and launches the requried screen and enters data. But it is very very slow. Earlier it use to happen very fast. So after investigating I found that my windows "Application Error" has hundreds of log being create from test complete. So this is what is slowing my test run.


 


Log Name:      Application


Source:        TestComplete


Date:          3/4/2014 2:45:57 PM


Event ID:      0


Task Category: None


Level:         Error


Keywords:      Classic


User:          N/A


Computer:      PC06.rssls.com


Description:


The description for Event ID 0 from source TestComplete cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.


 


If the event originated on another computer, the display information had to be saved with the event.


 


The following information was included with the event: 


 


An error has occurred in the .NET Open Application "C:\Project\1.7.64.0\RAL.EnterpriseClient.exe". Error identifier: LC-427. Additional information: hr = 0x8000211d; source: mscorlib; message: System.Reflection.AmbiguousMatchException: Ambiguous match found.


   at System.RuntimeType.GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConv, Type[] types, ParameterModifier[] modifiers)


   at System.Type.GetMethod(String name, BindingFlags bindingAttr).


 


Event Xml:



  <System>


    <Provider Name="TestComplete" />


    <EventID Qualifiers="0">0</EventID>


    <Level>2</Level>


    <Task>0</Task>


    <Keywords>0x80000000000000</Keywords>


    <TimeCreated SystemTime="2014-03-04T09:15:57.000000000Z" />


    <EventRecordID>289041</EventRecordID>


    <Channel>Application</Channel>


    <Computer>PC06.rssls.com</Computer>


    <Security />


  </System>


  <EventData>


    <Data>An error has occurred in the .NET Open Application "C:\Project\1.7.64.0\RAL.EnterpriseClient.exe". Error identifier: LC-427. Additional information: hr = 0x8000211d; source: mscorlib; message: System.Reflection.AmbiguousMatchException: Ambiguous match found.


   at System.RuntimeType.GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConv, Type[] types, ParameterModifier[] modifiers)


   at System.Type.GetMethod(String name, BindingFlags bindingAttr).</Data>


  </EventData>


</Event>


 


 


I ran my test run for around 3 to 4 minutes and found hundreds of logs like the above getting created.


 


So now I am not able to run my regression testing in my machine and cant use testcomplte.


 


What Do I do?  Any suggestions are welcome.











 


 


 


 


 

Automation Manager
1 ACCEPTED SOLUTION

Accepted Solutions
Regular Contributor

RE: Testcomplete runs slow

Hi Rafiq,



We have had the "Ambiguous match found" on Name Mapping issues on a new version of the application to test because of a GUI reorganisation. It might not be visible but the developers may have had to reorganize the GUI element tree which impacts seriously TC.



So if this is a new version of the .net application, you are in for a serious Name Mapping debugging session.



Sincerely
Simon Glet

View solution in original post

13 REPLIES 13
Regular Contributor

RE: Testcomplete runs slow

Hi Rafiq,



We have had the "Ambiguous match found" on Name Mapping issues on a new version of the application to test because of a GUI reorganisation. It might not be visible but the developers may have had to reorganize the GUI element tree which impacts seriously TC.



So if this is a new version of the .net application, you are in for a serious Name Mapping debugging session.



Sincerely
Simon Glet

View solution in original post

Highlighted
Occasional Contributor

RE: Testcomplete runs slow

Hi Simmon, 



.Net 4 is a old version. I believe the latest is 4.5. And my test complete is 8.70. 



This is something to do with TestCoplete's component that talks to .Net which is corrupt.

Because the above error log gets created only when from my testcomplete script launches the .Net application.  



And when I run the testcomplete script like for example creating class files and adding properties and methods. That runs fine no issues and no error log is created.



But I am not aware how to repair this or re-install the testcomplte application. And if re-install I am not sure what will happen to my licencing.



Thanks.





Automation Manager
Highlighted
Regular Contributor

RE: Testcomplete runs slow

Rafiq,



I am not sure that TC 8.7 supports .Net 4.5 as is it not mentionned here.



You might want to check with support about this.



Sincerely
Simon Glet
Highlighted
Occasional Contributor

RE: Testcomplete runs slow

Simmon, 



I am not using .NET 4.5. 

I am using .NET 4.0



And I am sure the component that testcomplete uses to communicate to the .NET is corrupt, which is causing the problem. 



Thanks.
Automation Manager
Highlighted
Regular Contributor

RE: Testcomplete runs slow

Taking a guess here but if your assumption is correct and something is corrupt and it worked previously have you tried re-installing Test Complete? I am assuming you are running your tests from within the Test Complete IDE?
Highlighted
Community Manager

RE: Testcomplete runs slow


Hi Rafiq,


 


Have you installed Windows updates recently? The mscorlib.dll library might be updated, and this could affect this crash. Check the version of this file on your computer.

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Highlighted
Occasional Contributor

RE: Testcomplete runs slow

Hi Tanya,



I searched my C:\Windows folder for mscorlib.dll and found these files




 


c:\Windows\Microsoft.NET\Framework


 


mscorlib.dll 


 


version - 


v2.0.50727


v4.0.30319


 




now these are the files available. 



Recently i had installed Microsofts Business Intelligence server for SQL 2012. Does this has something to do with the corruption.



Thanks.







Automation Manager
Highlighted
Occasional Contributor

RE: Testcomplete runs slow

Is there a repair option available in test complete 8.5 installation?



If I re-install I will have to re-activate my registration which will be already with smartbear. So I would be prompted with a message of duplication.



Or if there is some other way to resolve this issue?
Automation Manager
Highlighted
Occasional Contributor

RE: Testcomplete runs slow

I had posted this to support team of Smartbear but no response from them as my maintainance contract has expired. 



This is not maintenance request. The customer should have liberty to reinstall his application as an when required. which is not there as of now. Now what is the point of owning  a software??
Automation Manager
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors