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

Have you followed below steps to activate your slave?

  1. New Node --> Enter Node Name.
  2. Select Dumb Slave --> Press OK.
  3. Fill out the following:
    1. Set a number of executors (one or more) as needed.
    2. Set a Remote FS Root, a home directory for the master on the slave machine.
      1. For a Windows slave, use something like: "C:\Jenkins\"
      2. TODO: add details.
    3. Select the appropriate Usage setting:
      1. For an additional worker: Utilize this slave as much as possible 
      2. For specialized jobs: Leave this machine for tied jobs only
    4. Launch Method:
      1. An easy way to control a Windows slave is by using Launch slave agents via Java Web Start  (Recommended for Windows)
      2. TODO: add steps for other methods.
    5. Availability --> Keep this slave online as much as possible
      1. TODO: add details for each option.
    6. Press OK.
  4. Now you need to connect your slave machine to the master using the following steps.
    1. On you slave machine go to the Jenkins server url.
    2. Go to Manage Jenkins > Manage Nodes, Click on the newly created slave machine.
    3. Click on the Launch button to launch agent from browser on slave.
    4. Run the program.
    5. Now you should see the Slave machine connected under Nodes.
  5. If you want the service to run on start-up of the slave machine do the following (Windows only directions):
    1. In the Slave agent program running on your slave machine, click File --> Install as Windows Service.
    2. Start, type Services and Select the Services program.
    3. Find Jenkins Slave in the list, Double click to open.
    4. Select Startup type --> Automatic.
    5. Go to the Log On tab, change the Log on as to a user of your choice (Special user account Jenkins recommended).
    6. Make sure that auto login is set for the slave machine for the user account, then the VM (or physical computer) should connect and be available when needed.

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

nisgupta
Valued Contributor

@cunderw

 

Here is the update 

we launched the agent from the commandline and it get connected .   and it ran successfully.After connection I set up the Jenkins Project to run the TestComplete Project Suite . So it run the Project Suite located on testexecute machine.

 

 

But Here is one thing I was looking at the command line which is being used for connection to Jenkins master and get the following exception when I press Build Now

 

Oct 08, 2018 10:06:34 AM hudson.Util getWin32ErrorMessage

WARNING: Failed to find resource bundle

java.util.MissingResourceException: Can't find bundle for base name /hudson/win3

2errors, locale en_US

        at java.util.ResourceBundle.throwMissingResourceException(Unknown Source

)

        at java.util.ResourceBundle.getBundleImpl(Unknown Source)

        at java.util.ResourceBundle.getBundle(Unknown Source)

        at hudson.Util.getWin32ErrorMessage(Util.java:662)

        at hudson.util.jna.JnaException.<init>(JnaException.java:37)

        at hudson.util.jna.RegistryKey.check(RegistryKey.java:124)

        at hudson.util.jna.RegistryKey.open(RegistryKey.java:223)

        at com.smartbear.jenkins.plugins.testcomplete.TcInstallationsScanner$Sca

nnerCallable.scanForInstallations(TcInstallationsScanner.java:82)

        at com.smartbear.jenkins.plugins.testcomplete.TcInstallationsScanner$Sca

nnerCallable.call(TcInstallationsScanner.java:69)

        at com.smartbear.jenkins.plugins.testcomplete.TcInstallationsScanner$Sca

nnerCallable.call(TcInstallationsScanner.java:58)

        at hudson.remoting.UserRequest.perform(UserRequest.java:212)

        at hudson.remoting.UserRequest.perform(UserRequest.java:54)

        at hudson.remoting.Request$2.run(Request.java:369)

        at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecut

orService.java:72)

        at java.util.concurrent.FutureTask.run(Unknown Source)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

        at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93)

        at java.lang.Thread.run(Unknown Source)

 

Any idea what is causing this ?

 

Thanks

NG

 

 

 

Looks like the same proble someone else had:

 

https://community.smartbear.com/t5/TestComplete-Desktop-Testing/TestComplete-Jenkins-Plugin-GUI-test...

 

Solved by running jenkins as a local account. 


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
nisgupta
Valued Contributor

@cunderw

@shankar_r

we still have this warning but our testcomplete projects are running fine on testexecute machines. At this time I am not sure what will be the long term impact of those warnings.

I have attached the screenshots for slave agent configurations 

jenkins job configurations 

 

Now oour goal is to export the mht file after the TestComplete tests get finished . Right now I have mentioned in the script itself . is there a way that we can put in Jenkins after post build ?

 

Thanks

NG

 

 

The jenkins plugin provides a Test Complete Results on the build page, is this not what you are looking for?


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
nisgupta
Valued Contributor

@cunderw

 

*.mht report and I need to push this report to our Confluence as you can see in the screenshot which we have set up in PostBuild . But In order to make this work we have to write thiss code at the end

Log.SaveResultsAs("C:\\ ...\\...\\...\\ScholarshipTrackingSystemStatusHSC.mht",lsMHT)

 

Thanks

NG

nisgupta
Valued Contributor

@cunderw

 

@shankar_r

 

As Jenkins plugin provide the testComplete Result on the build page and we also got the MHT report but how can we export the MHT report from jenkins to wiki ?

 

Any idea ?

 

Thanks

NG

It is not the actual MHT report, it is the UI rendered data with help of .htmlx and .tclogx files. 

 

For each build,  .htmlx and .tclogx files will be in below path. you can upload these files into Wiki, whenever you want you can open it via TestComplete. 

{Jenkins_Home}\jobs\{job_name}\builds\{build_number}\tcreports

As of now option to export as MHT format from the build view


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

nisgupta
Valued Contributor

@shankar_r

We want to do it through programming . Doing it manually will be difficult as we have so many applications .

 

Thanks

NG


@nisgupta wrote:

@shankar_r

We want to do it through programming . Doing it manually will be difficult as we have so many applications .

 

Thanks

NG


Do you want to upload the MHT file into the Confluence on each 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”

Extension Available

cancel
Showing results for 
Search instead for 
Did you mean: