How to read the error code in console output from Jenkins pipeline script
Hello, I have configured my jenkins pipeline with Declarative pipeline script as shown below. Currently I am able to send the emails when the build is unstable. But there are some other situations where the build fails due to testExecute launch error on the remote machine. And even for that failure it is sending emails to everyone in the recipient list. I want to check if the error code is -1 then send the email only to selected emails list else send to everyone. pipeline{ agent {label "windows"} stages { stage('Test complete'){ steps { Step1 } } } post{ unstable { // echo "This will run when test unstable" emailext ( subject: "EA smoke test results in Prod", body: "Please click below to access the test results \n" + env.BUILD_URL+"TestComplete/", to: "vinod@xxx.com", from: "donotreply@cloudbees.com") } } } console output with the error exit code to read in the above pipeline script and if that's true then send the emails to only selected people. [TestComplete] Test runner exit code: -1. [TestComplete] [WARNING] Error: The user did not log in using the SmartBear account or did not pass the accesskey in the command-line arguments. TestComplete will be closed.The user did not log in using the SmartBear account or did not pass the accesskey in the command-line arguments. TestComplete will be closed.. [TestComplete] [WARNING] Unable to find the log file "1677263408853.tclogx". [TestComplete] [WARNING] Unable to find the log file "1677263408853.htmlx". [TestComplete] [WARNING] Unable to find the log file "1677263408853.mht". [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 (Prod_SmokeTest/CORE_Prod_Smoke).6.2KViews0likes13CommentsHow to read .mht file attachment created by TC? Microsoft Edge displays blank
I have setup Issue Tracking in TC so I can create a bug item in AzureDevOps. Bug Item is created with an attachment in .mht format that should show the failed test. I have Edge and .mht file opens but is blank. What is the best way to read .mht file created by TC?Solved5.5KViews0likes6CommentsSend Test Results to Azure DevOps W/O pipeline setup?
Hello all, Is it possible to link TestComplete Test Cases to Azure DevOps without the Test Adapter and pipeline integration? In other words, I want to run the tests from TestComplete or TestExecute with the Execution Plan instead of running them as part of the build pipeline and link the test results to Azure DevOps for review by others? If I try to link a test case via the Execution Plan I am unable to log into my DevOps repository, This could be the only issue I need to resolve. If the Test Adapter is required and this can only be done via an Azure DevOps pipeline build process I will need to wait until we have other items worked out and in placed. Thanks everyone, Scott H.Solved3.8KViews0likes24CommentsIntegration with Azure DevOps failed
Hello, I get the following error when I try to connect to Azure DevOps in order to get test case ids. Update your browser Your browser is not supported or up-to-date. Try updating it, or else download and install the latest version of Microsoft Edge. You could also try to access https://aka.ms/mysecurityinfo from another device. I am using TestComplete Version: 15.30.355.7 x64 on Windows Server 2019 machine I guess the pop-up window uses Internet Explorer. I installed MS Edge, and set it as default browser, also uninstalled Internet Explorer but it did not help This message appears after I successfully authenticate with username and password. Is there any way in TestComplete to configure to use another browser to authenticate to Azure DevOps, not Internet Explorer?Solved3.5KViews0likes6CommentsAzure DevOps Integration - Re-running Failed Test
Hi Community, Did anyone manage to find a way how to re-run failed tests using AzureDevops? We currently are facing the problem that when a test fails inside a job (ex: a job has 5 tests, 4 passed but 1 failed), when rerunning failed jobs, all the 5 tests are re-executed. We would like to run only the specific test case which failed rather than the full job. Appreciate your feedback :)!2.4KViews0likes6CommentsUnable to connect TestComplete 12.0 due to Azure DevOps will stop accepting TLS 1.0/1.1 connections
Hey Everyone We are using Test Complete 12.60 and Today we are unable to connect VSTS project and After doing some analysis we found that Test Complete uses TLS 1.0 Azure DevOps will stop accepting TLS 1.0/1.1 connections from Jan 31st, 2022. Please checkour blog postfor more details. Could help us how to solve this problem. Exception message: TF400324: Team Foundation services are not available from server https://dev.azure.com/mzzzzz Technical information (for administrator): The underlying connection was closed: An unexpected error occurred on a send. Exception call stack: at Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.ReadResponse(HttpWebResponse webResponse, WebException webException) at Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.SendRequest() at Microsoft.TeamFoundation.Client.Channels.TfsHttpRequestChannel.Request(TfsMessage message, TimeSpan timeout) at Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.Invoke(TfsClientOperation operation, Object[] parameters, TimeSpan timeout, Object[]& outputs) at Microsoft.TeamFoundation.VersionControl.Client.Repository4.QueryWorkspace(String workspaceName, String ownerName) at Microsoft.TeamFoundation.VersionControl.Client.WebServiceLayerLocalWorkspaces.QueryWorkspace(String workspaceName, String ownerName) at Microsoft.TeamFoundation.VersionControl.Client.Client.GetRepositoryWorkspace(String workspaceName, String workspaceOwner) at Microsoft.TeamFoundation.VersionControl.Client.Workspace.RefreshMappingsIfNeeded() at Microsoft.TeamFoundation.VersionControl.Client.Workspace.TryGetServerItemForLocalItem(String localItem) at TFVCApiProviderCLR.DialogRunnerProvider.DialogRunnerCommon.GetWorkfoldInfo(String LocalPath, String& ServerPath, String& WorkspaceName, String& OwnerName, String& CollectionURL) at GetWorkfoldInfo(Char* LocalPath, Char** pServerPath, Char** pWorkspaceName, Char** pOwnerName, Char** pCollectionURL) --------------------------- OK ---------------------------Solved2KViews0likes2Commentsfacing issue while integrating Testcomplete with Azure devops
getting below warning as in the screenshot,No test sources found matching the given filter '**\WSLCB.pjs' My repositoryhierarchy in below screenshot and i want WSLCB.pjs to be executed in the pipeline i am using azure pipeline with MS Hosted agent and source control as Git and below are the screenshots. We have followed all possible ways as mentioned in smartbear tutorial but issue still not resolved. Can someone please help Regards, SnehalSolved2KViews1like11CommentsAzure DevOps Integration Test Execute version that is launched.
When integrating with Azure DevOps using the TestComplete Test Adapter, you select the 'Preferred test runner' of either 'TestExecute' or 'TestComplete'. Where would we specify whether the 32bit or 64bit version should be run? Thanks Brad KnutsonSolved1.7KViews0likes14Commentstestscripts from jenkins not running on testExecute
Hi, I don't know where to start from. We recently updated the testExecute on the server and from then when we run the jenkins pipeline build, they are not reaching the testexecute and not running. We don't see any sessions on selenium grid running. But when we run the same test script from our local machine connecting to remote server those scripts are running fine. We tried to restart the server, selenium grid and the testExecute agent, but no luck. The person who initially configured was left and now we are facing this issue. For some builds this is the last message in the console [TestComplete] A TestComplete build step is already running on the node. Pausing the run until this built step is over... And for some builds this is the last message [TestComplete] Launching the test runner. $ '"C:\Program Files (x86)\SmartBear\TestExecute 15\x64\bin\SessionCreator.exe"' ExecuteProcess '/c:""C:\Program Files (x86)\SmartBear\TestExecute 15\x64\bin\TestExecute.exe"" "c:\var\lib\jenkins\workspace\Prod-Automation\Dartts-prod-smoke-pipeline\Prod_SmokeTest.pjs" /run /SilentMode /ForceConversion /ns /exit "/ExportLog:c:\var\lib\jenkins\workspace\Prod-Automation\Dartts-prod-smoke-pipeline\1692131710677.tclogx" "/ExportLog:c:\var\lib\jenkins\workspace\Prod-Automation\Dartts-prod-smoke-pipeline\1692131710677.htmlx" "/ErrorLog:c:\var\lib\jenkins\workspace\Prod-Automation\Dartts-prod-smoke-pipeline\1692131710677.txt" "/project:DARTTS_Prod_Smoke" /DoNotShowLog "/run" "/SilentMode" "/psv:env=prod" "/psv:ADFSusername=****" "/psv:ADFSpassword=****" /JenkinsTCPluginVersion:2.8.1' jobs queue in jenkins Selenium grid sessions Not sure what are we missing here. Do we need to do anything else when we update the testExecute agent.1.6KViews0likes23Comments