ContributionsMost RecentMost LikesSolutionsRe: JUnit output for TestComplete in Azure DevOps? I found a workaround. In the Visual Studio Tests step I specified a fixed local folder on the (self-hosted) test machine as the 'Test results folder', then made that Shared so I can access it from my machine over the network. I can view the mht files published to that folder that correspond to any test failures reported in ADO, and just ignore the attached mhts in ADO. JUnit output for TestComplete in Azure DevOps? Hi all, I'm trying to run TestComplete in Azure DevOps for the first time, formerly I was using Jenkins which gave me nicely formatted report output with the TestComplete plugin. I have my pipeline (classic mode) running and logging test failures, but the error content is very limited. The mht file is attached, but comes up blank on every browser/viewer I've tried it with (yes, I've enabled Internet Explorer compatibility). I can view the file on the machine that executed the test, but not the file attached to the pipeline. Has anyone had success with configuring report output to JUnit format? Or maybe something else? I have a pipeline running Cypress with JUnit report output, it's (slightly) more informative and supported natively with Publish Test Results. I know TestComplete supports a command line switch to output to JUnit, but I don't know how I would invoke it in this context. SolvedRe: Wrong timestamp on TestComplete log in Jenkins Yes, it took a bit of back and forth but the issue was finally reproduced and resolved with a patch. Thanks to SmartBear support! Allen Wrong timestamp on TestComplete log in Jenkins Hello all, I am trying to figure out why the TestComplete Test Results entry in a Jenkins build always shows one hour later than the correct time. Here's an example from this morning: I launch a basic pipeline test at 11:12 am, which only takes a couple of minutes to complete. The pipeline history shows the new build number at 11:12 am. I click on the build number and it takes me to the build details page, which shows 11:12:25 AM in the header. From this page I can click on the TestComplete Test Results link, which has a list of all the test items executed. In this case there is only one, and it shows a start time of 12:12:35 PM ! Now I click on the test item, and it shows the detailed Test Execution Summary, where the times are again correct starting at 11:12:35 AM. Any ideas? Has anyone else seen this? All test systems are located in the same office, in US Eastern time zone. The only time zone setting I could find anywhere is for the Jenkins user, and changing it did not affect the TestComplete Test Results time, only the Jenkins build details time. Thanks. Allen SolvedRe: Unable to run TestComplete on Jenkins node Hello all, After some further troubleshooting and a call with support I got this working, and wanted to provide more detail. Issue 1: This was a configuration issue finding TestComplete on the 'wrong' machine. It turned out someone installed and ran a service on the host machine with the same name as the agent machine. Removing that service and properly configuring a service agent on the agent machine got this resolved. Issue 2: If the agent was running as a service on the agent machine with user "Local service", it gave 'Unable to create a user session' error. If the agent was running as a service on the agent machine with the domain user, it tries to launch the test runner and hangs forever. The final resolution to this was to: 1. Have the agent running as a service on the agent machine with user "Local service" 2. Have the pipeline configured with userName and userPassword, not credentialsId Final syntax: testcompletetest userName: '[domain\\user]', userPassword: '[domain user password]', launchType: 'lcProject', project: 'inSight_INQ_SFA_OE', suite: 'D:\\inSight_HEAD\\Testing\\Projects\\inSight\\inSight.pjs', useTCService: true, useActiveSession: true Unable to run TestComplete on Jenkins node Hello all, I have a Helpdesk request open for this already, but figured I would try the forums also. I am trying to run TestComplete on Jenkins for the first time, to migrate our previous NetworkSuite tests for parallel execution using Pipeline execution. I have a master machine running TestComplete and the Jenkins master, and a node machine running TestExecute and the Jenkins node. The master machine is logged in as a domain user, and the node machine is logged in and running unlocked with a different domain user, with the Jenkins node running as a service under that same domain user. When I try to run 'Build Now' on my Pipeline, I see two problems: 1. TestComplete is found and started on the master machine, even though the agent is definitely running on the node. 2. I get an 'Unable to create a user session' error. The node machine is unlocked, and TestExecute is running on it. I have gone over the various TestComplete and Jenkins set up pages multiple times, and the following thread which has a similar error but different setup, and I'm still stumped. https://community.smartbear.com/t5/TestComplete-General-Discussions/Unable-to-create-a-user-session-Error-in-Jenkins/m-p/192496#M36077 Here's my pipeline, which is configured to run a very simple project that I have confirmed can run successfully on the node machine: pipeline { agent none stages { stage('Run test') { agent { label 'MyTestNode' } steps { echo "${env.NODE_NAME}" testcompletetest credentialsId: '', launchType: 'lcProject', project: 'inSight_INQ_SFA_OE', suite: 'D:\\inSight_HEAD\\Testing\\Projects\\inSight\\inSight.pjs', useTCService: true } } } } Log: Started by user admin Running in Durability level: MAX_SURVIVABILITY [Pipeline] Start of Pipeline[Pipeline] stage[Pipeline] { (Run test)[Pipeline] nodeRunning on VSIC112 in D:\inSight_HEAD\Testing\workspace\TestComplete inSight Desktop[Pipeline] {[Pipeline] echoStart TestComplete project inSight_INQ_SFA_OE[Pipeline] echoVSIC112[Pipeline] testcompletetest[TestComplete] The test execution started (inSight/inSight_INQ_SFA_OE). [TestComplete] Found TestComplete/TestExecute installations: Type: TC, Version: 14.81.217.7, Path: "C:\Program Files (x86)\SmartBear\TestComplete 14\x64\bin\TestComplete.exe" Type: TELite, Version: 14.81.217.50, Path: "C:\Program Files (x86)\SmartBear\TestExecuteLite 14\x64\bin\TestExecuteLite.exe" [TestComplete] Selected TestComplete/TestExecute installation: Type: TC, Version: 14.81.217.7, Path: "C:\Program Files (x86)\SmartBear\TestComplete 14\x64\bin\TestComplete.exe" [TestComplete] Launching the test runner. $ '"C:\Program Files (x86)\SmartBear\TestComplete 14\bin\TestCompleteService14.exe"' //LogonAndExecute //lDomain: "" //lName: "" //lPassword: ******** //lTimeout: "-1" //lUseActiveSession: "true" //lCommandLine: '""C:\Program Files (x86)\SmartBear\TestComplete 14\x64\bin\TestComplete.exe" D:\inSight_HEAD\Testing\Projects\inSight\inSight.pjs /run /SilentMode /ForceConversion /ns /exit "/ExportLog:D:\inSight_HEAD\Testing\workspace\TestComplete inSight Desktop\1621525595237.tclogx" "/ExportLog:D:\inSight_HEAD\Testing\workspace\TestComplete inSight Desktop\1621525595237.htmlx" "/ErrorLog:D:\inSight_HEAD\Testing\workspace\TestComplete inSight Desktop\1621525595237.txt" /project:inSight_INQ_SFA_OE /JenkinsTCPluginVersion:2.6.2"' [TestComplete] Test runner exit code: -10 (Unable to create a user session). [TestComplete] [WARNING] Unable to find the log file "1621525595237.tclogx". [TestComplete] [WARNING] Unable to find the log file "1621525595237.htmlx". [TestComplete] [WARNING] Errors occurred during the test execution. [TestComplete] Marking the build as UNSTABLE. [TestComplete] [WARNING] Unable to publish test results (xml data is empty). [TestComplete] The test execution finished (inSight/inSight_INQ_SFA_OE).[Pipeline] }[Pipeline] // node[Pipeline] }[Pipeline] // stage[Pipeline] End of PipelineFinished: UNSTABLE Thanks. Allen SolvedRe: FindChild for newly created page objects FindChildEx does do the trick, thanks. I was not familiar with the power of that command. For the record, no, at least according to the object tree Panel(1) (which is a top level object) does not exist until I click the button inside Panel(0). The power of React, I guess. But I'm not sure why FindPanel doesn't work consistently in that situation, I'm guessing it finds the object as soon as it's created before the new object tree is fully rendered? Anyway, I'll work with FindChildEx for a while and see how it goes. Thanks! Allen Re: FindChild for newly created page objects I'm not waiting for a new page, the URL doesn't change, I'm waiting for a new object to appear on the same page. So, in the simplest case, I'm working with mypage.Panel(0) in the object tree. I click a button, the URL remains the same, but now mypage.Panel(1) is created, it didn't exist in the object tree before. I need to find an object inside Panel(1). Wait only applies to the page object, not a child panel. WaitPanel seemed like the way to go, I saw the technique in an old forum post, but it doesn't wait, or at least it doesn't wait long enough. Thanks. Allen FindChild for newly created page objects Hello all, I'm a long time TestComplete desktop user, just getting used to the web object handling. What I'm trying to figure out is how to consistently handle a situation where I click on a button on a page, and it causes a popup dialog (new page), that I want to perform operations on. That page has objectIdentifiers, so I can use FindChild to find and operate on them, which is good because the object path can be quite deep. But, they may not be rendered yet so FindChild doesn't find the object. What's the best way to do a dynamic wait to see if the new page is fully loaded before I search for an object in it? I am not using NameMapping. I tried this syntax, but it doesn't work consistently, the first WaitPanel often returns before I can find the child. Sys.Browser("chrome").Page("*").WaitPanel(1, 5000); // This returns immediately without waiting Sys.Browser("chrome").Page("*").FindChild("contentText", "Available Locations*"); Thanks. Allen SolvedRe: Add ability to collapse and expand log results tree I'll bump this again, now that TestComplete 14 is here and I still don't see it. I can expand and collapse test items, but not log results.