How 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.2KViews0likes6CommentsHow 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).4.9KViews0likes13CommentsSend 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.3KViews0likes6CommentsAzure 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.3KViews0likes6CommentsUnable 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, SnehalSolved1.9KViews1like11CommentsTestComplete with Zephyr Scale
In this post, we are going to talk about SmartBear’s UI testing tool, TestComplete, and writing the results to Zephyr Scale in an automated fashion. When we think about using TestComplete with any test management tool, it can really be accomplished in two ways: Natively inside TestComplete or integrating with some CI-CD system. When we are using Zephyr Scale, both ways will utilize the Zephyr Scale REST API. When we link to Zephyr Scale natively from TestComplete, it is a script heavy approach. An example of that can be found here. Today we are going to go into detail about using TestComplete, with a CI-CD system, and sending the results to Zephyr Scale. Now let’s talk about automating this process. The most common way to automate triggering TestComplete tests is through one if its many integrations. TestComplete can integrate to any CI-CD system as it has Command Line options, REST API options, and many native integrations like Azure Dev Ops or Jenkins. The use of a CI-CD system makes managing the executions at scale much easier. The general approach to this workflow would be a two-stage pipeline something like: node { stage('Run UI Tests') { // Run the UI Tests using TestComplete stage('Pass Results') { //Pass Results to Zephyr Scale } } First, we trigger TestComplete to execute our tests somewhere. This could be a local machine or a cloud computer, anywhere, and we store the test results in a relative location. Next, we use a batch file (or alike) to take the results from that relative location, send them to Zephyr Scale. When executing TestComplete tests, there are easy ways to write the results to a specific location in an automated fashion. We will look at options through the CLI as well as what some of the native integrations offer. Starting with the TestComplete CLI, the /ExportSummary:File_Name flag will generate a summary report for the test runs, and save it to a fully qualified or relative path in Junit-XML structure. At a basic level we need this: TestComplete.exe <ProjectSuite Location> [optional-arguments] So something like this: TestComplete.exe "C:\Work\My Projects\MySuite.pjs" /r /ExportSummary:C:\Reports\Results.xml /e The /ExportSummary flag can be stored in a relative or fully qualified directory. We could also use one of TestComplete’s many native integrations, like Jenkins and specify in the settings where to output results: Now that our TestComplete tests are executing, and the results are writing to a relative location we are ready for stage 2 of the pipeline, sending the results to Zephyr Scale. So now let’s send our results to Zephyr Scale. I think the easiest option is to use the Zephyr Scale API, and the Auto-Create Test Case option to true. The command below is a replica of what you would use in a batch file script in the pipeline. curl -H "Authorization: Bearer Zephyr-Scale-Token-Here" -F file= Relative-Location-of-Report-Here\report.xml;type=application/xml "https://api.zephyrscale.smartbear.com/v2/automations/executions/junit?projectKey=Project-Key-Here&autoCreateTestCases=true" After you modify the API token, relative location, and project key you are good to run the pipeline. The pipeline should look something like this: After we run the pipeline let’s jump into Jira to find to confirm the results are populating. Even with execution data: Also, with transactional data to analyze the failed test steps:1.8KViews1like0CommentsAzure 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.7KViews0likes14Comments