ContributionsMost RecentMost LikesSolutionsLogging defect to qacomplete from testcomplete through code when an error occurs is there a way to automatically log defect to qacomplete from testcomplete when an error occurs during test execution. I was able to post it manually from testcomplete SolvedRunning testcomplete tests using the QAC REST API how can i run tests using the qac rest-api by just using a url on a browser rather than logging into qac. i'm able to get the test runs by using the below url, but would like to execute tests http://<hostname>/rest-api/service/api/v2/projects/12917/testruns Re: Executing TestComplete tests from command line hi, yes you are right, though i mentioned command prompt i was actually using power shell and hence the confusion. Worked perfectly fine after switching to windows cmd. Thanks a lot! Executing TestComplete tests from command line I'm trying to execute testcomplete tests from the command line and i'm referring to this page for the commands - https://support.smartbear.com/testcomplete/docs/working-with/automating/command-line-and-exit-codes/command-line.html#_ga=2.52509864.1265581788.1575908601-1160848949.1560436226&_gac=1.178572688.1573855075.EAIaIQobChMI9qG38Jrt5QIVWsXICh0JfwUxEAEYASAAEgLND_D_BwE It seems to be simple, but i'm unable to make it work. In the cmd prompt, i changed the directory to the path where my testcomplete.exe file is and executing the below command Path> TestComplete.exe <Path of the .pjs> file /run /project:<name of the project> But after executing the above command, it launches testcomplete and shows the the below message SolvedRe: Is there a way to cut out the long hierarchy when adding elements to Name Mapping Thank you! very helpful Is there a way to cut out the long hierarchy when adding elements to Name Mapping I have an element on the UI and when added to the name mapping repository it looks buried under a long hierarchy of panels, and this is how it appears when recording an action on this element browser.pageEpadminstg.panel.panelVertical.panelTopPane.panelHorizontal.panelLeftPane.panel.panel.panelTabstrip.panelTabstrip1.panelNotificationsgrid.panel.buttonEvent.ClickButton() I'm sure there is a high chance of some of the panel elements (basically div tags) getting removed/added if a developer makes a slight change to the layout, resulting in failure to identify the element. So is there a way to directly narrow down to the actual element like browser.pageEpadminstg.buttonEvent.ClickButton() It looks very simple when i use the xpath, but it gets very slow when executing on a VM - HomePage.FindChildByXPath("//button[@id='addButton']").click() I'm curious to hear from other users to understand how they manage their name mapping repositories. SolvedHow to create a GetRequest on a intranet application as a specific user using aqHttpRequest I'm using the below code to post a GetRequest on a intranet site, but i'm getting a 401 unauthorized error and in the intranet application logs i dont see a user name listed on the get request aqHttpRequest = aqHttp.CreateGetRequest(address) # Send the request, get an aqHttpResponse object aqHttpResponse = aqHttpRequest.Send() # Read the response data Log.Message(aqHttpResponse.AllHeaders) # All headers Log.Message(aqHttpResponse.GetHeader("Content-Type")) # A specific header Log.Message(aqHttpResponse.StatusCode) # A status code Log.Message(aqHttpResponse.StatusText) # A status text Log.Message(aqHttpResponse.Text) # A response body SolvedRe: Ctrl + Click Operation having issues when executing testcomplete tests from QAComplete Thank you. will create a support ticket Ctrl + Click Operation having issues when executing testcomplete tests from QAComplete I have a scenario where i need a select a row in a webtable, expand it to fetch some data and then do ctrl + click operation to deselect the row. Page.WebTable.click(-1,-1,skCtrl) This line of code works perfectly fine when i execute it from testcomplete, but gets a timeout error when trying to execute it from QAComplete. Other lines of code work perfectly fine. Re: Getting error while trying to retrieve value from db using ADO.CreateCommand() Thank you! It worked fine after changing it to ADO.CreateConnection(). This is the final working code , thought of posting it here as it might be helpful to someone. AConnection = General.GetConnection() ADOCommand = ADO.CreateCommand() ADOCommand.ActiveConnection = AConnection ADOCommand.CommandText='select count(*) from Notification where EmployeeID=?' Prm = ADOCommand.CreateParameter('EmployeeID',adVarChar,adParamInput,-1,'1000) ADOCommand.Parameters.Append(Prm) RecordSet = ADOCommand.Execute() while not RecordSet.EOF: Notificationcount = RecordSet.Fields.Item[0].Value RecordSet.MoveNext() AConnection.Close() def GetConnection(): AConnection = ADO.CreateConnection() AConnection.ConnectionString = "Provider=SQL Server Native Client 11.0;" + "Server=<ServerName>;"+"Database=<dbname>;"+"Trusted_Connection=yes;" AConnection.LoginPrompt = False AConnection.Open() return AConnection