Ask a Question

TestExecute Integration With Jenkins

nisgupta
Valued Contributor

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

 

 

 

52 REPLIES 52
nisgupta
Valued Contributor

I am using remote desktop Connection to connect to VMs.

Have you done the below setup? if not please do 

 

Launching Jenkins Slave Agent via Java Web Start

To connect to a node via Java Web Start, launch the Jenkins agent on the slave machine:

  1. Log on to your slave computer.

  2. On the slave computer, open the http://<Master_Name>:8080/computer/<Node_Name>/ web page in the browser:

  3. Click Launch, or launch the slave agent using the command line provided by Jenkins.

To automate the launch via Java Web start, you can install Jenkins as a service from the Jenkins slave agent:

  1. On your slave computer, launch the Jenkins slave agent as described above and click File > Install as a service:

    TestComplete integration with Jenkins: Installing Jenkins slave agent as Windows service
  2. If your tests interact with the GUI, configure your TestComplete Test build steps in your Jenkins projects to open an interactive user session in which they will run. To learn how to do that, see the description of the Run interactive user session property of the TestComplete Test build step or the description of the useTCServiceparameter of the step (for Pipeline script). If no interactive user session is open, your tests will fail.

Under Windows 8 and later Windows versions, TestComplete needs elevated permissions by default. The Java Web Start agent application cannot start it with needed permissions, but the service can. You can also disable support for testing Windows Store applications and launch TestComplete with user level permissions.

Another option is to add the downloaded .jnlp file to startup (you will need to add the slave agent's certificate to trusted certificates) and enable auto-login following the MSDN instructions. In this case, Jenkins will connect to the user session, so you will not have to open an interactive user session from your TestComplete Test step.


Thanks
Shankar R

LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com

“You must expect great things from you, before you can do them”

Extension Available

DUPLICATE


Thanks
Shankar R

LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com

“You must expect great things from you, before you can do them”

Extension Available

cancel
Showing results for 
Search instead for 
Did you mean: