TestExecute Integration With Jenkins
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
TestExecute Integration With Jenkins
We are looking for the ways - how Jenkins can run the projects located in TestExecute machines. Here is our case.
At this now now Source code management and so no git.
Jenkins is set up on my machine which is local to my machine.
We have installed the TestExecute on 3 Virtual machines which have window OS. We have projects located on these machines.
Now When Jenkins run those projects I got the following errors
Started by user Nishchal Gupta Building remotely on pretty.ttu.edu in workspace C:\Jenkins\workspace\Scholarship [TestComplete] The test execution started (/\\pretty.ttu.edu\Users\nisgupta\Documents\TestComplete\IS\Student\FASBS\Financial Aid SBS\Scholarship Application\Scholarship Application.pj). [TestComplete] Found TestComplete/TestExecute installations: Type: TC, Version: 12.50.4142.7, Path: "C:\Program Files (x86)\SmartBear\TestComplete 12\bin\TestComplete.exe" [TestComplete] [ERROR] Unable to find the specified TestComplete/TestExecute installation. [TestComplete] Marking the build as FAILED. Build step 'TestComplete Test' changed build result to FAILURE Build step 'TestComplete Test' marked build as failure Finished: FAILURE
Also attached the screenshot that I have set up on Jenkins. Let me know if You all need more information.
Thanks
Nishchal
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We do have 6 tests in one project. If I split those 6 tests in 6 projects without sacrificing the log ? then does it work ?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can't say for sure because I don't know the size of your tests nor the logs that export for each one. But I would say it would definitely be worth a shot.
Thanks,
Carson
Click the Accept as Solution button if my answer has helped
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Finally we turn off images and the result get published to confluence.
I am looking for the options in jenkins where we can clean up the logs or reports before starting new builds
any idea ?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can use the workspace clean up potion as like below to clean the workspace before you start new build
Thanks
Shankar R
LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com
“You must expect great things from you, before you can do them”- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We have 3 testExecute VM machines . We want to run the same project in all 3 testexeute VM machines but with different datas . Using jenkins to run the project.
Do we need to maximize the Window of VM machines ? I am seeing some issue when the VM machine window is minimized and the test do not run even though we have jenkins slave agent is connected.
Please update
Thanks
NG
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you are using VMs then you can run your tests headless. You do not need to have VM opened.
Thanks
Shankar R
LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com
“You must expect great things from you, before you can do them”- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Hope you did the configuration mentioned in this link
- Close the VM
- Check the Use active session checkbox in the Advanced setting of TestComplete build step then you are all set. Let me know if you find issues with this.
From Doc:
Run interactive user session - Specifies whether your TestComplete test will run in an interactive session.
This option is effective only if you use TestComplete or TestExecute 10.60 or later.
If this option is disabled and Jenkins is running as a service, your TestComplete tests will fail.
For information on when you need to use this option, see Requirements.
-
User - The user profile that will be used to run the test.
-
Password - The password used to log in to the user account.
-
Use active session - Specifies whether an existing user session will be used to run a TestComplete test. If it is selected, TestComplete will run in the current session. Otherwise, Jenkins will close all the applications, terminate the currently active session, start a new session under the specified user account and then start the test.
Note: Jenkins will not stop the user session if another user is logged on. -
Session screen resolution - Select a screen resolution for the user session in which your TestComplete test will run. The default value is 1280×1024.
If you use a TestComplete version earlier than 12.30, the specified screen resolution will be ignored and the default screen resolution (1280×1024) will be used.
If the Use active session option is enabled, the specified screen resolution will be ignored and the actual screen resolution of the corresponding user session will be used.
Note: The maximum resolution that can be set for a user session depends on the operating system version and on the Remote Desktop Protocol version installed on the target computer. To learn more, see Remote Desktop Protocol Maximum Supported Resolutions.
Thanks
Shankar R
LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com
“You must expect great things from you, before you can do them”- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I look at the configuration link.
I am seeing the difference in launch method which is "Launch agent via java Web Start"
Thanks
Nishchal
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using the java Web Start launch Agent. As it has been mentioned when using the Launch Method "Let jenkins conrol this windwn slave as a window service has some other issues.
Also when I minimize the VM window I got the error - Mozilla Firefox is invisible and thus cannot be activated.
Started by user Nishchal Gupta [EnvInject] - Loading node environment variables. Building remotely on slave_plaza in workspace C:\Users\nisgupta\Documents\TestComplete\workspace\TC_UDEV_BannerFiscalGateway [TestComplete] The test execution started (Banner Fiscal Gateway/Home). [TestComplete] Found TestComplete/TestExecute installations: Type: TE, Version: 12.60.5545.11, Path: "C:\Program Files (x86)\SmartBear\TestExecute 12\bin\TestExecute.exe" [TestComplete] Selected TestComplete/TestExecute installation: Type: TE, Version: 12.60.5545.11, Path: "C:\Program Files (x86)\SmartBear\TestExecute 12\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 12\bin\TestExecute.exe" "C:\Users\nisgupta\Documents\TestComplete\workspace\TC_UDEV_BannerFiscalGateway\Banner Fiscal gateway\Banner Fiscal Gateway.pjs" /run /SilentMode /ForceConversion /ns /exit /ExportLog:C:\Users\nisgupta\Documents\TestComplete\workspace\TC_UDEV_BannerFiscalGateway\7634674.tclogx /ExportLog:C:\Users\nisgupta\Documents\TestComplete\workspace\TC_UDEV_BannerFiscalGateway\7634674.htmlx /ErrorLog:C:\Users\nisgupta\Documents\TestComplete\workspace\TC_UDEV_BannerFiscalGateway\7634674.txt /ExportLog:C:\Users\nisgupta\Documents\TestComplete\workspace\TC_UDEV_BannerFiscalGateway\7634674.mht /project:Home /DoNotShowLog [TestComplete] Test runner exit code: 2. [TestComplete] [WARNING] Error: The window 'Mozilla Firefox' is invisible and thus cannot be activated.. [TestComplete] [WARNING] Errors occurred during the test execution. [TestComplete] Marking the build as UNSTABLE. [TestComplete] The test execution finished (Banner Fiscal Gateway/Home). Build step 'TestComplete Test' changed build result to UNSTABLE Started calculate disk usage of build Finished Calculation of disk usage of build in 0 seconds Started calculate disk usage of workspace Finished Calculation of disk usage of workspace in 0 seconds Finished: UNSTABLE
