Contributions
jenkins structure with pipeline
Hello, I ve 30 tests keywords to run every night with testExecute on a VM tests on one project. I would like to know how do you setup you're tests in jenkins if you have 30 tests to run in one single project. I used to use 3 differents pipeline in order to have to run 10 tests each time, i would be faster to rerun the test if one of them fail. Problem is in my jenkins pipeline structure it created 3 projects on hard drive which could be a probleme in future if i continue to use this method Should i use only one pipeline for those 30 tests, it would take a lot of time to re validate a job if a test fail Another system would be to create 30 jobs in jenkins not in jenkins pipeline but i would be hard to maintain with the hour of run of each one of them every night. What would be the best way?686Views0likes3Commentsjenkins 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.1KViews0likes0Commentstest failed on windows update screen
Hi everyone, I got an issue with the windows update screen, i'am using Jenkins which send test on a physical machine "vega test" with Testcomplete, which use Network suite on a virtual server "srv-test01" which will execute Keyword test on TestExecute. Probleme is when there is a windows update screen the test crash because i didn't manage this case, after that i start my program and do some keyword test. Is there a simple way to catch this screen, or manage this problem with KeywordTests? I tried to desable this on windows param but it's still there, i tried to put test on all day long to catch this windows and press esc to hide, but still didn't work. ThanksSolved988Views0likes2CommentsTestcomplete / testExecute Configuration and help
Hi, I have many questions for you, i hope we will figure it out. i am from france so i apologize for some bad sentence. I have a real server which we will called A, and a virtual server called B on another network. I got TestComplete Locked on A and TestExecute Floated on B. I run KeywordTests on windows app 1. I would like to know how to activate the floated license of testexecute on B, i tried my best but didnt succeed, i ve understand i should activate the license first on A which is a real machine, and then transfert it to B. But didnt understand how. I ve tried with Sentinel Admin Control Center but failed. On A i got this : on B i got this : I got this on B, is this working and license transfered? 2.A I would like to setup jenkins send test to B which will run my test with testexecute. For the moment i ve sucessfully connected jenkins to A, which run test with testcomplete, but thats not exactly what i want. 2.B I didnt know how to connect A to B with keywordTest and NetworkSuite/Slave/Jobs I have access to the base path which means connection should work, but when i verify connection it failed. What path should i set up? 3. How do you handle the if condition with windows keyword test, like if the windows show do the action, but if there is nothing continue the test with no error.Solved1.8KViews0likes6CommentsRe: Keyword handling exeption
Thanks for youre answers, i finally manage this case with try catch and if object exist in the keywordTests If we don't find this windows the action continue and finish action creation, else if windows show up catch error return false and send mail.1.2KViews0likes0CommentsKeyword handling exeption
Hello, I have created a script macro indelphi and several keyword witch work with an exe, i would like to manage error when trying to add data already existing in app. ex : windows add tiers "toto" > Error already existing I ve tried Try catch but not catching anything, script crash and stop no action further. Normaly i would get result := false with an mail send procedure et run another tasks. Do you have any idea?Solved1.2KViews0likes3Comments