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.8KViews1like17Commentsjenkins 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.5KViews0likes0CommentsLog4J 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 enable TLSv1.2 for Testrunner
I have configured the vmoption file. Its working fine when i trigger request directly using play button. But while same testcase fails when I ran through Testrunner with SSLhandshake error. Please let me know if there is any configuration to be done Testrunner to support tlsv1.2Solved5.6KViews0likes2CommentsHow 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.5KViews0likes6CommentsRead excel data/links in javascript test complete
Hi team, I have tried to read the data file using javascript in test complete.But shows error as "Type error: cannot read the property 'SheetByTitle' of null" functionExcelRead() { varexcelFile = Excel.Open("C:\\temp\\DataStorageExcel.xlsx"); varexcelSheet = excelFile.SheetByTitle("Sheet1"); varvalueA = excelSheet.Cell("A", 3).Value; varvalueB = excelSheet.Cell(2, 3).Value; varvalueC = excelSheet.CellByName("C3").Value; } Can any one help regarding this issue or I want to fetch the weblinks from excel file one by one that links need to execute. Thanks in advance.Solved5.3KViews0likes4CommentsDouble-Monitor and Logging ...
Hello, I work with two monitors and after running Keywordtests the pictures in the log are showing the secound (for testing unused) monitor. It´s not necessary to make a picture of both screens and I think nobody uses two screens for testing. So pleasechange the process of screenshot making limited to one screen only or make it chooseable from which screen pictures are been taken. Attached Screenshot is showing my secound (blank) screen on the left side.5.1KViews3likes3CommentsError: 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.8KViews0likes4Comments