Contributions
How to upload test result from TestComplete to QAComplete using POST request.
How to upload test result from TestComplete to QAComplete using POST request. I'm planning to upload the .mht file from TestComplete result to QAComplete. This is my code to upload the file but it didnt work. var url4 = 'https://qacomplete.smartbear.com/rest-api/service/api/v2/projects/(projID)/testruns/' + runID +'/items/' + itemId +'/report'; var value = Bytes(); var files = '{"file":'+ value +'}'; var aqHttpRequest4 = aqHttp.CreatePostRequest(url4,username,password); aqHttpRequest4.SetHeader("Content-Type", "application/json"); var aqHttpResponse4 = aqHttpRequest4.Send(files); if(aqHttpResponse4.StatusCode == "200"){ Log.Message(aqHttpResponse4.Text); } else { Log.Error("Error"); } I'm getting this error when I run the code. url4 = https://qacomplete.smartbear.com/rest-api/service/api/v2/projects/(projID)/testruns/1176706/items/8840000/report Response status text: InternalServerError Response body: {"errors":[{"message":"Index was outside the bounds of the array.","code":0}]} All response headers: Cache-Control: private Date: Fri, 13 Jul 2018 07:37:07 GMT Content-Length: 78 Content-Type: application/json; Charset=UTF-8 Server: Microsoft-IIS/8.5 X-Powered-By: ServiceStack/3.960 Win32NT/.NET X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET X-ServerName: app22 X-Powered-By: ARR/3.0 X-Powered-By: ASP.NET X-ServerName: gw1 Response status text: InternalServerError Response body: {"errors":[{"message":"Index was outside the bounds of the array.","code":0}]} All response headers: Cache-Control: private Date: Fri, 13 Jul 2018 07:37:07 GMT Content-Length: 78 Content-Type: application/json; Charset=UTF-8 Server: Microsoft-IIS/8.5 X-Powered-By: ServiceStack/3.960 Win32NT/.NET X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET X-ServerName: app22 X-Powered-By: ARR/3.0 X-Powered-By: ASP.NET X-ServerName: gw1 Any idea? Thanks in advance. Jeff1.2KViews0likes0CommentsRe: Continuous Integration and QAComplete
Hi Param, I'm having issue with my code on uploading test log to QAComplete. Here is my code. var url4 = 'https://qacomplete.smartbear.com/rest-api/service/api/v2/projects/(projID)/testruns/' + runID +'/items/' + itemId +'/report'; var files = '{"file":'+ aqFile.OpenBinaryFile("C:\\TCTests\\log.mht", aqFile.faRead)+'}'; var aqHttpRequest4 = aqHttp.CreatePostRequest(url4,username,password); aqHttpRequest4.SetHeader("Content-Type", "application/json"); var aqHttpResponse4 = aqHttpRequest4.Send(files); if(aqHttpResponse4.StatusCode == "200"){ Log.Message(aqHttpResponse4.Text); } else { Log.Error("Oh NO!"); } When I run this code I'm getting this error https://qacomplete.smartbear.com/rest-api/service/api/v2/projects/(projID)/testruns/1176611/items/8838812/report' was sent with the status code 500 Response status text: InternalServerError Response body: {"errors":[{"message":"Index was outside the bounds of the array.","code":0}]} All response headers: Cache-Control: private Date: Fri, 13 Jul 2018 05:21:54 GMT Content-Length: 78 Content-Type: application/json; Charset=UTF-8 Server: Microsoft-IIS/8.5 X-Powered-By: ServiceStack/3.960 Win32NT/.NET X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET X-ServerName: app21 X-Powered-By: ARR/3.0 X-Powered-By: ASP.NET X-ServerName: gw1 Response status text: InternalServerError Response body: {"errors":[{"message":"Index was outside the bounds of the array.","code":0}]} All response headers: Cache-Control: private Date: Fri, 13 Jul 2018 05:21:54 GMT Content-Length: 78 Content-Type: application/json; Charset=UTF-8 Server: Microsoft-IIS/8.5 X-Powered-By: ServiceStack/3.960 Win32NT/.NET X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET X-ServerName: app21 X-Powered-By: ARR/3.0 X-Powered-By: ASP.NET X-ServerName: gw1 Any suggestion? Thanks in advance, Jeff2.2KViews0likes0CommentsRe: Networksuite stopped working on Win10 and Win81 machines with TestComplete12.42
Hi, Have you found the solution for this? I think we are facing the same issue. We are running our test on a remote desktop windows server 2016 machine with test execute installed. We made a setup before on a windows server 2012 and we haven't get any issue. We are getting "10 (Unable to create user session)" when we don't access the server 2016 machine while running the test. But when we access it while running the test, the job runs successfully. Any idea? Jeff3.2KViews0likes9CommentsRe: The Browser("chrome") does not contain Page("*").
Hi Alex, Can't find SmartBear extension on my remote computer where testExecute is installed. I tried this step from SmartBear documentation : Reinstalling SmartBear Test Extension If you removeSmartBear Test Extensionfrom Chrome, it will be blacklisted and TestComplete will not be able to automatically reinstall or update it. In this case, to reinstall the extension: From Chrome’s main menu, selectSettingsand switch to theExtensionspage. -- or -- Navigate to thechrome://extensionspage. In the<Program Files>\<Common Files>\SmartBear\tcCrExtension\<alphanumeric_ID>folder, locate the SmartBear Test Extension file - thetcCrExtension.crxfile. Drag thetcCrExtension.crxfile to the Extensions page in Chrome. Confirm the installation when prompted. unfotunately dragging the file "tcCrExtension.crx " to Chrome extension page doesn't work. thanks, Jeff2.7KViews0likes2Comments