Jenkins Environment Variables not available in Tests
Hi, I'm using Jenkins to trigger scheduled tests and have recently started to use parameters in Jenkins. The parameters are set as environment variables by Jenkins and can easily be accessed by scripts executed on the Jenkins slave but not from the tests run by TestExecute in the same job. I need to parameters to be able to control which test system I should access from my tests. Sure I could copy the tests, one for each target, and hard code the target in each test, but that would quickly lead to a maintenance nightmare, thus I thought of using Jenkins parameters (and Multi-configuration variables) to do the job for me. Anyone tried this and found a solution to get this working? My setup is as follows: Jenkins, TestComplete Jenkins plugin, Java Web Start as service (on Jenkins slaves), TestExecute, Test written in python. Issue filed in support request: Case #00181940: "Environment variables form Jenkins not available in TestExecute" BR, JohanSolved5.2KViews0likes4CommentsNew Jenkins TestComplete Plugin Released to publish MHT reports in JUnit format
Hi, I am Fernando Miguélez and I have been a user of TestComplete and TestExecute for almost a year. We use those both to test mainly Flex applications. We use Jenkins actively to continuously build and deploy software but also to perform integration (unit) and functional (with TestComplete/TestExecute) testing. We have been looking forward to hearing from an official Jenkins plugin so TestComplete/TestExecute tests could be more maneageable. Our daily functional tests are generated in MHT format and it takes a lot of manual intervention to figure out what happened with every functional group (we have to download it and open int in Internet Explorer that we happen to use only for that, Firefox or Chrome are our preferred browsers). After waiting for so long and after gathering some experience with Jenkins development I decided to create my own Jenkins plugin. Today I would like to proudly announce the availability of new Jenkins Plugin: TestComplete xUnit Plugin. Just look for it in "Manage Plugins" option of your Jenkins installation. This plugin basically converts MHT TestComplete/TestExecute reports into JUnit format that Jenkins can interpret and handle, so you can benefit from quick failure list review, tendency graphs, failure history, etc. I am not affiliated with Smartbear and my release happened to coincide in time with official release of official TestComplete Jenkins Plugin. My plugin is lighter and only applies to publishing. Official Jenkins Plugin from Smartbear is a full blown plugin to directly invoke TC/TE from Jenkins but leaves small room for customizations. In our case we already had set up our integration with Jenkins by means of many tweaks (batch scripts, Jenkins slaves setup, execution rules, etc.) so we only needed the reporting part. Thus if you start out with a fresh Jenkins integration you may prefer to go with official plugin, but if you happen to come from an existing integration my plugin could be more helpful. I hope you enjoy it. ;-)4.6KViews5likes10CommentsHow do we get test execute working with a jenkins slave service on a windows machine?
We now use the test complete pluggin for jenkins (which is awesome), but have not figure out how to get it working with a jenkins slave installed as a service. Until now, the way we get tests to launch is by starting a vm and logging in. A batch job starts a jenkins swarm slave and leaves the cmd window open while running. We disconnect (not log off) for the environment to run tests utilizing test execute. Now with the pluggin, there is an option to 'run interactively' and specify a user there. I expected that I could install the jenkins slave as a service, and with credentials entered (and me not having a session) that TE would execute using the new option. Test execute does launch this way, but doesnt appear to do anything. Why is the "run interactive mode" ignored? Error: TestComplete] Selected TestComplete/TestExecute installation: Type: TE, Version: 11.11.1064.11, Path: "C:\Program Files (x86)\SmartBear\TestExecute 11\bin\TestExecute.exe" [TestComplete] [WARNING] The node is connected via Java Web Start (JNLP). In this mode, the "Run interactive user session" property of the TestComplete Test step is ignored. TestComplete (or TestExecute) will work in the current user session. [TestComplete] Launching the test runner. $ "C:\Program Files (x86)\SmartBear\TestExecute 11\bin\TestExecute.exe" D:\jenkins-Slave\workspace\DEV-8.10_Rollups_Perf\FLOWCAL_Regression_Test_Perf4.5KViews0likes3CommentsJenkins exit code result
im using TC plugin thur pipeline running in interactive mode, my setup is i run a series of project. I need to get the result of each project run by getting the exit code on each project that run do make additional steps depend on the requirement. I used the /exportSummary to try to parse the result but for some reason this is not working.4.2KViews0likes5CommentsTest runner exit code: -10 (Unable to create a user session).
Hello! I have a CI environment with jenkins where I'm trying to configure TestExecute to run functional testes. I have three machines that I want to use as jenkins slaves. I had succes in prepare one of those machines and in this case, the tests are running fine, but, in the other ones, I'm getting the error message "Test runner exit code: -10 (Unable to create a user session)." and I have no more ideas how to proceed. Additional informations: The jenkins is configured by jenkinsfile. The test stages are defined like this: def cred = 'TESTECOMPLETE_CRED' if ("${env.NODE_NAME}" == "SkyOne_QA"){ cred = 'TESTECOMPLETE_CRED_SKYONE' } stage('Test Run Persona') { testcompletetest actionOnErrors: 'MAKE_FAILED', actionOnWarnings: 'MAKE_UNSTABLE', launchType: 'lcProject', project: 'nsjPersona', suite: 'TestesFuncionais.pjs', useTCService: true, credentialsId: cred } In one of those 3 machines, the tests are running perfectly. In both the jenkins slave agents are installed as a service and the testcomplete service have permissions to run in interactive session. Finally, I saw the document with instructions about how to prepare a machine to run tests. I tried to cunfigure those two machines like the document says, but I had no success. I hope you can help-me with this. Thanks a lot!3.6KViews0likes10CommentsRunning TestComplete on Jenkins through Command Line
Hello, I'm having an issue trying to execute a TestComplete suite on Jenkins through a Windows Batch Command build. However, when simply running only the TestComplete or TestExecute execution files, Jenkins hangs once it reaches that point and never finishes and I have to end up aborting the test all together. I understand that there is a TestComplete plugin and it is available to me and the suite works perfectly fine with that plugin, but the purpose of my project requires an execution through command line. I have also tried running the long and extensive command line argument: ("C:\Program Files (x86)\SmartBear\TestExecute 12\bin\TestCompleteService12.exe" //LogonAndExecute //lDomain: "" //lName: "jenkins" //lPassword: ******** //lTimeout: "-1"....) and that also fails to work. I have verified the service is running on that slave machine and that the license server is available. Thank you.3KViews0likes5Comments[Integrate with Jenkins] 'can not find log file' error and failed the build
Hi, I just upgraded TestComplete to the lastest version 10.6. And had integrated with Jenkins succefully. Buti always failedto build on jenkins torun TestComplete on slave node. TestComplete can be started and the project suite can also be ran when the build is started , but while TestComplete is still running, the build stopped and failed with the following console log, anyone knows why and how to fix this? Thanks, Joanna Console output: [TestComplete] The test execution started (InfusionManagement/InfusionManagement). [TestComplete] Found TestComplete/TestExecute installations: Type: TC, Version: 10.60.3387.7, Path: "C:\Program Files (x86)\SmartBear\TestComplete 10\bin\TestComplete.exe" Type: TC, Version: 9.31.3889.7, Path: "C:\Program Files (x86)\SmartBear\TestComplete 9\bin\TestComplete.exe" Type: TE, Version: 9.30.3373.11, Path: "C:\Program Files (x86)\SmartBear\TestExecute 9\bin\TestExecute.exe" [TestComplete] Selected TestComplete/TestExecute installation: Type: TC, Version: 10.60.3387.7, Path: "C:\Program Files (x86)\SmartBear\TestComplete 10\bin\TestComplete.exe" [TestComplete] Launching the test runner. $ '"C:\Program Files (x86)\SmartBear\TestComplete 10\bin\TestCompleteService10.exe"' //LogonAndExecute //lDomain: "qajoannajr" //lName: "admin" //lPassword: ******** //lTimeout: "1980000" //lUseActiveSession: "true" //lCommandLine: '""C:\Program Files (x86)\SmartBear\TestComplete 10\bin\TestComplete.exe" C:\Users\xxxx\Documents\TC10_20150421\InfusionManagement\InfusionManagement.pjs /run /SilentMode /ForceConversion /ns /exit /ExportLog:C:\Jenkins\workspace\TestComplete\3173021.tclogx /ExportLog:C:\Jenkins\workspace\TestComplete\3173021.htmlx /ErrorLog:C:\Jenkins\workspace\TestComplete\3173021.txt /ExportLog:C:\Jenkins\workspace\TestComplete\3173021.mht /Timeout:1800 /project:InfusionManagement"' [TestComplete] Test runner exit code: -8 (An internal error occurred. Please contact SmartBear's Support Team). [TestComplete] [WARNING] Unable to find the log file "3173021.tclogx". [TestComplete] [WARNING] Unable to find the log file "3173021.htmlx". [TestComplete] [WARNING] Unable to find the log file "3173021.mht". [TestComplete] [WARNING] Errors occurred during the test execution. [TestComplete] Marking the build as FAILED. [TestComplete] [WARNING] Unable to publish test results (xml data is empty). [TestComplete] The test execution finished (InfusionManagement/InfusionManagement). Build step 'TestComplete Test' changed build result to FAILURE Finished: FAILURE3KViews0likes4CommentsThe operation cannot be performed, because the user session is disconnected.
I'm running Test Complete tests using Jenkins from master to slave node. When i RDP to the slave machine and run the job test will succeeds. But if the RDP is closed and when i try to exectute tests it shows an error in every test cases: The operation cannot be performed, because the user session is disconnected. I need to run Test Complete test from master node unattended. I configure slave node as Java web start. Jenkins runs as User in slave. I configured Test complete job to run an interactive session and i specified username and password for the interactive session. Is there anything i'm missing or is it must to have a slave RDP connection opened during the tests.Solved2.8KViews0likes6CommentsJenkins test failure on test execute 14.40.1658.11
Hello, Since the installation of Test Execute 14.40.1658.11 I can no longer launch tests via Jenkins. I have the following log message : [TestComplete] The test execution started (mhp-tests-gui/mhp-tests-gui/AUTO_PE_000997_932/AUTO_PE_000997_932). [TestComplete] Found TestComplete/TestExecute installations: Type: TE, Version: 12.60.5545.11, Path: "C:\Program Files (x86)\SmartBear\TestExecute 12\bin\TestExecute.exe" Type: TE, Version: 14.40.1658.11, Path: "C:\Program Files (x86)\SmartBear\TestExecute 14\x64\bin\TestExecute.exe" [TestComplete] Selected TestComplete/TestExecute installation: Type: TE, Version: 14.40.1658.11, Path: "C:\Program Files (x86)\SmartBear\TestExecute 14\x64\bin\TestExecute.exe" [TestComplete] Launching the test runner. $ "null\SessionCreator.exe" ExecuteProcess '/c:""C:\Program Files (x86)\SmartBear\TestExecute 14\x64\bin\TestExecute.exe"" "C:\Jenkins\workspace\STAGO\Lancement_Test_Unitaire_PCFixe\mhp-tests-gui\mhp-tests-gui\mhp-tests-gui.pjs" /run /SilentMode /ForceConversion /ns /exit "/ExportLog:C:\Jenkins\workspace\STAGO\Lancement_Test_Unitaire_PCFixe\1592322644023.tclogx" "/ExportLog:C:\Jenkins\workspace\STAGO\Lancement_Test_Unitaire_PCFixe\1592322644023.htmlx" "/ErrorLog:C:\Jenkins\workspace\STAGO\Lancement_Test_Unitaire_PCFixe\1592322644023.txt" "/ExportLog:C:\Jenkins\workspace\STAGO\Lancement_Test_Unitaire_PCFixe\1592322644023.mht" "/project:mhp-tests-gui" "/unit:AUTO_PE_000997_932" "/routine:AUTO_PE_000997_932" /DoNotShowLog /JenkinsTCPluginVersion:2.4' [TestComplete] [ERROR] An exception occurred: java.io.IOException: CreateProcess error=2, Le fichier spécifié est introuvable. [TestComplete] Marking the build as FAILED. [TestComplete] [WARNING] Unable to publish test results (xml data is empty). [TestComplete] The test execution finished (mhp-tests-gui/mhp-tests-gui/AUTO_PE_000997_932/AUTO_PE_000997_932). Build step 'TestComplete Test' changed build result to FAILURE Finished: FAILURE Can you help me please ? it's pretty urgent ! thank you in advance cordially SalimSolved2.4KViews0likes5CommentsTest Complete12.50 doesn't recognize windows objects Windows10
While running a test via jenkins TestComplete reads random generated Object name as below Sys.Process("DBInstall").Window("WindowsForms10.Window.8.app.0.141b42a_r40_ad1", "Eze PMA - TradarBE Setup", 1).Window("WindowsForms10.Window.8.app.0.141b42a_r40_ad1", "", 2).Window("WindowsForms10.BUTTON.app.0.141b42a_r40_ad1", "&Next >", 2).Name But if I open TestComplete manually, it works fine and reads the same objects as below: Sys.Process("DBInstall").WinFormsObject("TradarDatabaseInstallWizard").WinFormsObject("buttonPanel").WinFormsObject("nextButton") This is happening on Windows10 while works fine on Windows7 Has anyone encountered similar issue? What could be the reason and solution?2.3KViews0likes4Comments