Comparing table data in IF not working
Hello, I have this weird problem were everything seems correct but TC isn't doing the correct steps. I have a data driven loop, and I am going to check if the product number is a specific product, and it should do the steps I want. This has worked in the past, not sure why it stopped working. In the image below, in the blue box, the product number is filled in - this is correct. For the sake of testing, I added the yellow box - these also give and store the correct values. The problem is in the red box, for some unknown reason it just skips the if. Below is a small snippet of the test log, and you can see that the log action provided the correct product number. Also, you can see that the text in the textbox is also the correct value. And lastly a screenshot of the if itself. Can anybody help me notice the issue? Thanks in advance. LuukSolved7.9KViews0likes28CommentsTest Fails When Running with Tag: Double Parameter Default Issue
Hey, fellow community, I'm facing an intriguing issue with one of my tests, and I was hoping to get some insights from you all. Here's the problem: I have a test that includes an optional double parameter, and its default value is set to 10000. When I manually run the test, everything works perfectly, and the default value of 10000 is used as expected. However, the trouble starts when I try to run the test using the tag. I use the right-click option on the project and run the test with the tag '@tag'. Surprisingly, the test fails, and upon further investigation, I noticed that the value used for the double parameter is 0 instead of my intended default value of 10000. I've already double-checked the tag setup and made sure everything looks correct. It's puzzling why the default value is being ignored when using the tag, leading to the failure. Has anyone encountered a similar issue before or have any ideas about what might be causing this discrepancy? I'd greatly appreciate any suggestions, tips, or experiences you can share to help me troubleshoot this problem and get my test running successfully with the tag. Thank you all in advance for your support and insights!Solved6.7KViews1like17Commentsjenkins pipeline catch the exit code 0
Hello, I need you're help, i am using Testcomplete 15 and TestExecute 15 with jenkins With jenkins pipeline def RunTest(String TestInfos) { try { testcompletetest actionOnErrors: 'MAKE_FAILED', actionOnWarnings: 'MAKE_UNSTABLE', credentialsId: 'VEGA-TEST', executorType: 'TE', launchType: 'lcItem', project: 'Macro_Standard_Beta', sessionScreenResolution: '1920x1080', suite: 'Alocpro\\Alocpro.pjs', useTCService: true, test: "$TestInfos" stageResult = 'SUCCESS' echo "< Build SUCESS >" } catch (Exception e) { catchError(stageResult: 'FAILURE') { sh "exit 1" } echo "< Build Failed >" } } pipeline { agent { label 'Srv-Test01' } options { timeout(time: 1, unit: 'HOURS') } stages { stage('Reset BDD Beta') { steps { script{ RunTest('Beta_02_Reset_BDD') } } } stage('CartesCarburant') { steps { RunTest('Avancee1|Beta_2_01_CartesCarburant1') } } stage('Contentieux') { steps { RunTest('Avancee1|Beta_2_02_Contentieux') } } stage('Contraintes') { steps { RunTest('Avancee1|Beta_2_03_Contraintes') } } /* stage('CRM') { steps { RunTest('Avancee1|Beta_2_04_CRM') } } stage('EtatStatistique') { steps { RunTest('Avancee1|Beta_2_05_1_EtatStatistique') } }*/ stage('Financement') { steps { RunTest('Avancee1|Beta_2_06_Financement') } } stage('Comptabilite') { steps { RunTest('Avancee1|Beta_2_07_0_Comptabilite') } } stage('Assurance') { steps { RunTest('Avancee1|Beta_2_08_Assurance') } } stage('GestionDesPetroliers') { steps { RunTest('Avancee1|Beta_2_09_GestionDesPetroliers') } } stage('Prestation') { steps { RunTest('Avancee1|Beta_2_10_Prestation') } } } post { failure { emailext body: '''$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS : \n $BUILD_LOG maxLines=8000, escapeHtml=true \n \n Check console output at $BUILD_URL to view the results.''', recipientProviders: [brokenBuildSuspects()], from: '##', subject: 'Build failed in jenkins : $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!', to: '##', attachLog: true } unstable { emailext body: '''Build unstable - $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS : unstable\n $BUILD_LOG maxLines=8000, escapeHtml=true \n \n Check console output at $BUILD_URL to view the results.''', recipientProviders: [brokenBuildSuspects()], from: '##', subject: 'Build instable in jenkins : $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!', to: '##', attachLog: true } fixed { emailext body: '''$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS : Back to normal !\n Check console output at $BUILD_URL to view the results.''', recipientProviders: [brokenBuildSuspects()], from: '##', subject: 'Build back to normal : $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!', to: '##' } } } The jenkinspipeline works, but in my jenkins view i dont have my stage in red when it failed. What i would like to do is to catch the exit code =! 0 and setstageResult = 'FAILURE' But the other stages needs to continue even if one of them failed there are independent I have triedcatchError steps but this is not really what i want. In this exemple the try catch does nothing even if a test crashed because of the exit code which seems not to be handled in jenkins this way The error i did in this scenario is in purpose to test the exitcode I have linked a log of the lastest execution i did >logs jenkins.txt Is there a way to catch the exitcode in jenkins? Thanks6.1KViews0likes0CommentsLog4J vulnerability
Hello SmartBear, With recent news about Log4J vulnerability. Could you let us know if there are impacts on TestComplete tool Version 14.xx Source :https://thehackernews.com/2021/12/extremely-critical-log4j-vulnerability.html References: https://www.wired.com/story/log4j-flaw-hacking-internet/ https://www.zdnet.com/article/security-warning-new-zero-day-in-the-log4j-java-library-is-already-being-exploited/ https://arstechnica.com/information-technology/2021/12/the-critical-log4shell-zero-day-affects-a-whos-who-of-big-cloud-services/ https://www.cisa.gov/uscert/ncas/current-activity/2021/12/10/apache-releases-log4j-version-2150-address-critical-rce https://www.randori.com/blog/cve-2021-44228/Solved5.9KViews0likes3CommentsHow 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.2KViews0likes6CommentsError: This operation returned because the timeout period expired in testcomplete
I got an error like below Error: This operation returned because the timeout period expired in testcomplete I increase the auto wait timeout to 50000, but still I get the same, how do it rectify it?Solved4.5KViews0likes4CommentsAllure Reporting using TestComplete 14.1 (Junit or JavaClasses method) ?
How to create an allure reporting for testcomplete? 1. Junit Summary report can be covered into Allure? 2. JavaClassess of allure to be used to generte report? LinoTadrostristaanogreSmartBear_Suppo TanyaYatskovska,IStaroverov,AlexKarasSolved4.3KViews0likes8CommentsSessionCreator does not invoke my application and does not provide Test Results (TestExecute)
Hello, I have created a Powershell Task in Azure DevOps deployment pipeline to run the SessionCreator Utility. Below is the command -: SessionCreator.exe RunTest /UserName:****-CORP\**** /password:******** /UseActiveSession /ProjectPath:"$(Agent.Releasedirectory)\_INR-TestAutomation\INR_AutomationProjectSuite.pjs" /arg:/PrjVar:inrExeLocation="$(Agent.Releasedirectory)\_INR\INR Binaries\inr.exe" it does connect to the remote desktop session where we have installed TestExecute and starts running TestExecute, however, it does not invoke my application and after it fails it does not show the any failed results in the "Test" section of the pipeline. Any help would be appreciated. Thank you4.1KViews0likes36CommentsHow to measure SQL hits due to my application
Use case: I'm working on a form in development environment and everything works fine. aqPerformance tells me everything is quick. I make a change in my form. aqPerformance still tells me everything is quick. Users suddenly report that everything has slowed down and the system is unusable and they want me to personally drive over to their offices and make coffee while they wait for the form to load. After testing, I find that the small change in my form suddenly added 200 SQL queries each time you move your mouse. This isn't a problem in production or our test servers, but the users are on a network with high latency. Each single SQL connection is quick, but it adds up. Is there a way to monitor these SQL hits by, say, using profiler and profiling during the form load/ item select etc. then report back the amount of SQL queries ? I know developers could keep profiler open while developing the application, but sometimes it doesn't behave the same on you machine as on live and you want to know if something has dramatically changed. Also, if you could catch this before it gets to users that would save alot of fuel.4.1KViews0likes6Comments