ContributionsMost RecentMost LikesSolutionsHow to access testlog file itself inside the TestComplate script Hello People, I am trying to write custom code to transfer the test log output data to Excel file. For that, I need to access the last testlog output result into my custom code. So that's I don't know how to write code to get the access of that outputfile. For Example, My testlog output filename is 'object online change' and I want to store its output data like how many testcases are passes and how may are failed and may more stuff into Excel file. For that, I need to access output file. First, I have to get the data from the test log, exel export is the second step. Hope to get a convincing solution... Thanks in advanced Piyush Convert the Test log .mht file in to Excel Hello, I have test complete results in .mht file and I want to convert it into Excel file. can you suggest me How can I do it best and proper format? Is there any direct conversion tool available or Should I write a script for that? If I have to write a script can you give me some basic idea how can I do it? Thanks in Advance!! SolvedRe: JScript runtime error . This Operation was canceled because the method invoke timeout has expired. Thank you So much for the suggestion and Reply!!:smileyhappy: JScript runtime error . This Operation was canceled because the method invoke timeout has expired. Hello People, I have 2 functions. First one is for the Toolbar function for the software desktop application and In second function I have used that Toolbar function. Currently , My aim is to get output for the second function. So whenever I call the Toolbar function in my Second function it generates Error like"JScript runtime error . This Operation was canceled because the method invoke timeout has expired." Here is My Both Functions; function GetToolBarItemStatus(stringToolTipName){ var currentUIRootObject = ObjectUIMap["GetCurrentRootObject"]() objectToolBarMain = currentUIRootObject["MainForm"]["WinFormsObject"]("_topSandBarDock")["FindChild"]("Index", "2", 0, true) if (objectToolBarMain.Exists==true) { for(integerItemIndex = 0; integerItemIndex < objectToolBarMain.Items.Count; integerItemIndex++) { if(aqString.Find(objectToolBarMain.Items.Item(integerItemIndex).ToolTipText,stringToolTipName,0,true) != -1) // Error in this line { objectItem = objectToolBarMain.Items.Item(integerItemIndex); break; } for(i=0; i<11 ;i++) { if(objectItem["Enabled"]==true) { return true; } Delay(1000) if(i == 10) { return false; } } } else{ Log["Warning"]("Object Tool Bar not found!") } return false } "2nd function : function LoginWithParameter(){ Log["Message"]("loging in for the first time.") // ToolBar["SelectToolBarItem"](objectToolBarMain,"Login"); if(GetToolBarItemStatus("Login (Alt+F8)")==true){ currentUIRootObject["MainForm"]["Keys"]("~[F8]") Delay(1000) } else{ Log["Error"]("Login button in the tool bar is not enabled","",pmNormal,pmNormal,currentUIRootObject["MainForm"]) } do { // Cold start of the Controller objectColdStartWindow = currentUIRootObject["WaitWindow"]("#32770","SoMachine", -1, 5000) if (objectColdStartWindow.Exists){ objectColdStartWindowText = objectColdStartWindow["FindChild"](new Array("WndClass","Index"),new Array("Static","2"),0,true) if (objectColdStartWindowText["Exists"]){ stringColdWindowText=objectColdStartWindowText["WndCaption"] Log["Message"](stringColdWindowText) if(aqString["Find"](stringColdWindowText, "a cold start must be performed", 0 ,false)!=-1){ objectJaButton = objectColdStartWindow["FindChild"]("WndCaption", "&Ja",0, true) Log["Checkpoint"]("Cold start Window", "",pmNormal,pmNormal,objectColdStartWindow) objectJaButton.Click() } } } //Delay(50000 ) boolStatusLogout=GetToolBarItemStatus("Logout (Ctrl+F8)") boolStatusRun=GetToolBarItemStatus("Start (F5)") boolStatusStop=GetToolBarItemStatus("Logout (Shift+F8)") } while (boolStatusLogout==false&&(boolStatusRun==false||boolStatusStop==false)); } With Delay it works fine but I dont want to put the delay!! Is there any alternative Solution avilable?? SolvedWant to block the Error When Tree nodes are not exapandable Hello, I have code in Java script. I want to expand tree node using Expand command. In which i have 10 items to expand. out of 10 2 are not expandable. every time when i run the code for that 2 items Test log automatically generate the error ' The tree node cannot be expanded or collapsed.' which i dont want. I ant to stop or block that error. what can i do?? for (i = 0; i < objectChildTreeViewHelp["Items"]["Count"]; i++) { my_array[i] = objectChildTreeViewHelp["Items"]["Item"](i)["Text"] stringText="|SoMachine Motion Overview|SoMachine Motion Overview|Releasenotes|"+stringReleaseNotesChildTextName+ "|" +objectChildTreeViewHelp["Items"]["Item"](i)["Text"] objectTreeViewHelp["ExpandItem"](stringText) Log["Checkpoint"]("Success: "+ my_array[i]+ " RealeaseNote Expanded Successfully") } Solved