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).5.6KViews0likes13CommentsHow 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.3KViews0likes6CommentsSend 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.4KViews0likes6CommentsDesign For Automated testing of a Grid template UI usnig ReadyAPI
##URGENT###Hi Guys, My team is looking to automate our applicationGrid Based Application. I am very new to automation and the requirement is to build a test-suite in ReadyAPI . The Requirement is to validate the Stored Procs/ Various services that run behind to generate data and validate it against a query that gets the same data using query . As a QA i have very minimal knowledge of SQL and to be able to do something requires a humongous effort . Question : Can someone please help suggest any framework design in mind for such validation or any other ideas for example if we could take the data from the website and validate it against the query would it make sense . Please suggest and share your expertise .2.8KViews0likes7CommentsComparing Json node values against each other
Hi Team, I have query regarding the json values comparison. I have request say Request-1 and gives response as Response-1. Gives 10 node values One more request say Request-2 and gives response as Respnse-2. Gives 10 node values I need to compare both response values of all the node values which are common to both. Kindly let me know. I added smart assertion to do comparison, but if node value changes from 10 to 11 the fails to compare or may miss to validate. Thanks, Vivek KulkarniSolved2.5KViews0likes8CommentsAzure 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.3KViews0likes6Commentsencoding of utf-8 is set for some APIs test cases and not for some in project properties
Hi mates, I am sending unicode characters in Json request payload. The server is returning "NO success" response. But If I add encoding as UTF-8 in that test case(REST) properties, response comes as "SUCCESS". Is it the the right thing to send UTF-8 explicitly ? And if yes, how does this will be addressed when any integrations call that API ? And, I could see some other APIs test cases shows UTF-8 as encoding by default in ReadyAPI. So, not sure whats going on. Appreciate any help. Thanks. Ravi.2KViews0likes2Comments