ContributionsMost RecentMost LikesSolutionsRe: Index ErrorI think that by default, you are trying to access Item(0), which in your case does not exist yet. That's why it gives an Index Error, there are no Items, and therefore, no indexes. Items.Count = 0Re: How to get execution time between two events?Hi Narender, I think you could either use the StopWatch object if you have the HISUtils plug-in or use the aqDateTime object. In the first case: funcion Test() { var stpWatch = HISUtils.StopWatch; StopWatch.Start(); MySearchOperation(); StopWatch.Stop(); Log.Message ("Difference in times: " + StopWatch.ToString()); } In the second case: function Test() { var startTime = aqDateTime.Time(); MySearchOperation(); var stopTime = aqDateTime.Time(); var diffTime = aqDateTime(startTime, stopTime); //Difference in times (Days:Hours:Minutes:Seconds) Log.Message( aqConvert.TimeIntervalToStr(diffTime)); } For more specifics, please check TestComplete help.COM API testing - No GUI - .NETI would like to test a COM API without GUI using TestComplete, is this possible? All the objects needed to test the Windows application are contained in a .tlb file, which is registered when the Application is installed in the system. I was looking into using external DLLs, but it seems rather cumbersome in this case if I have to redefine/register all the new custom types (structures) to use TestComplete. Originally, some of the testing was done by writing exel macros in VBA and once the library was loaded into the references, the program could be launched simply as: Set SCApp = New (MyLibraryName).Application Then all the Application objects, properties, and methods were accessible. For example, to create a point with coordinates xcoor, ycoor, zcoord Dim SCModel as (MyLibraryName).Model Dim xcoor As Variant, ycoor As Variant, zcoor As Variant Set SCModel = SCApp.Document.Model ... SCModel.Points.AddAutoGlobal xcoor, ycoor, zcoor How can I compare two .xps files?I'm currently using TC 8.70 I do have to compare two .xps files. Since they are inherently xml files, I thought I could follow the procedure outlined in the Help to compare XML files from a script. However, when creating the checkpoint the following Exception is raised: The document is invalid. Error: An invalid character was found in text content. The code I'm using is directly from the TC Help manual: function CreateXMLDemo() { var XMLDoc; // Checks if NewXMLCheckpoint already exists in the Stores | XML collection. if (! XML.Contains("NewXMLCheckpoint")) { // Creates an IXMLDOMDocument object. XMLDoc = Sys.OleObject("Msxml2.DOMDocument.6.0"); XMLDoc.async = false; // Loads data form the XML file to the IXMLDOMDocument object. var TestingDirectory = Application.GetTestingDirectory("HB003\\"); var fileExpected = TestingDirectory + "eReport.xps"; XMLDoc.load(fileExpected); // Creates NewXMLCheckpoint and checks if the creation is successful. if (XML.CreateXML("NewXMLCheckpoint", XMLDoc)) //--> This is where it fails } Thanks in advance for your helpRe: Cannot run Application added with TestesdApps.AddThe problem was that the full name retrieved from the function was in quotes. When the quotes of the string were removed, the problem went awayCannot run Application added with TestesdApps.AddI'm trying to run an application with a location that is machine dependent. var FullFileName = GetProgramPath(); var AppIndex = TestedApps.Add(FullFileName); TestedApps.Items(AppIndex).Run(); The application does not run. I checked the properties of the TestApp Item I'm interested and the incongruent property was FullFileName. Application FullFileName (as input): C:\(Path To The Application)\(FileName).exe Item Added FullFileName: E:\(MyProjectPath)\TestedApps\ "(Application FullFileName)" Anyone knows why is this added? Or how to solve the problem?