ContributionsMost RecentMost LikesSolutionsRe: how to Skip Onstart event for particular Testcase in Test Complete 12 I managed this with: if (Project.TestItems.Current != null) { //on start test stuff } else { null; } Re: Scripting access to log messages Yep, Its just not returning anything :( Re: Scripting access to log messages Hi TristaanOgre, This is what I would essentially be be doing: function GeneralEvents_OnLogError(Sender, LogParams) { testStatusComments = LogParams.AdditonalText var dbObj; dbObj = ADO.CreateADOQuery(); dbObj.ConnectionString = "MyConnectionString"; dbObj.SQL = "Update Test_Status set testStatusComments = testStatusComments + '" + testStatusComments + "' Where TestSectionName = '" + testname + "' AND TestStartTime Like '%" + TestDate + "%'"; dbObj.ExecSQL(); } This will add to other information currently being written out to SQL on the start and stop events. The eventual aim is to start using reporting services so that we can can see very quickly if there are any patterns in failure. Re: Scripting access to log messages Hi TristanOgre, Thank you for the help you have given. I am however still struggling to read the information from LogParams.AdditionalText and write it out elsewhere. Do you have an example you could share? I think my other option would be to go down this path: https://support.smartbear.com/testcomplete/docs/reference/project-objects/test-log/logresults/textlogdata/text.html and pull the text out to a seperate file to use? Many thanks, MegO Re: Scripting access to log messages So I could do something like this: function GeneralEvents_OnLogError(Sender, LogParams) { TestComment = LogParams.AdditonalText } and it would return the error logged? Scripting access to log messages Hi, I have created a script that writes out tests results to a SQL database. I have got a bit stuck on the last part however. I was hoping to use the general event of on log error to write out the messages to the table. I can easily write messages to the log but how do I pull out the error messages that TestComplete writes to the log. Any help would be greatly appreciated. Regards, MegO Re: How to Write TestComplete Test Results to SQL Server Hi alevans4, Do you have an example of the stored procedure you used to insert this data please. I am trying to get something similar set up in our environment at the moment. TestComplete sees my application as a black window Hi all, I have encountered a problem with Test Complete and an application under test. The window I am attempting to perform actions in is displayed as a black screen when using Object spy. If I attempt to record a test in this window no actions are recorded by TestComplete. I have written a script to click on screen co-ordinates within the window, and even though the co-ordinates are correct the click action does not appear to be carried out in the window. I have managed to OCR the button I am attempting to click on using a Script and TestComplete does return the correct text, so it must be able to see the screen when doing this. Have any of you ever encountered a window that TestComplete cannot perform actions on and how did you work around this? Thanks in advance :) Re: Using /exit does not close TestComplete when running from a batch File Thank you Alex :) Using /exit does not close TestComplete when running from a batch File Hi, I am currently running groups of Tests using a combination of a Jscript file: // RunTestItemGroup.js var testItemGroup, project; var objArgs = WScript.Arguments; var projectSuite = objArgs(0); for (i = 1; i < objArgs.length; i++) { if (objArgs(i).search(/\/testitemgroup:/i) != -1) { testItemGroup = objArgs(i).replace(/\/testitemgroup:/i, ""); } if (objArgs(i).search(/\/p:/i) != -1) { project = objArgs(i).replace(/\/p:/i, ""); } } var tc = new ActiveXObject("TestComplete.TestCompleteX64Application.12"); var tci = tc.Integration; tc.Visible = true; tci.OpenProjectSuite(projectSuite); ProjectTestItems = tci.TestSuite(project); tci.RunProjectTestItem(project, testItemGroup); and then calling this from a batch file: Wscript.exe "C:\RunGroup.js" "\TestComplete\ProjectSuite\ProjectSuite.pjs" /r /p:TestRun001 /testitemgroup:Other /exit /silentmode Exit Does anybody know how to exit TestComplete in this scenario. Solved