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

@shakar_r

 

Yes

Just now got remembered, We have option to generate MHT file from the job.

 

Generate MHT log file - If this option is enabled, TestComplete exports test results to a .mht file after the build is over. You can download this file from the Jenkins page displaying test results.

If this option is disabled, TestComplete does not export test results in the MHT format, but you can still examine results in Jenkins. See Viewing TestComplete Test Results in Jenkins.

 

https://support.smartbear.com/testcomplete/docs/working-with/integration/jenkins/running-tests.html#...

MHT file will be available in the master.
{Jenkins_Home}\jobs\{job_name}\builds\{build_number}\tcreports
Now you have MHT file you can do your pulgins to upload the MHT file into Confulense page

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

 

yes we have the check box option to gnerate the MHT file. I always check this check box as we need to publish this report to confluence which is wiki .

 

I have attached the Post build actions from jenkins I am looking whether we have the option in Jenkins that can push this MHT report automatically to Confluence Wiki ?

 

Thanks

NG

 

No, We have to use the external plug-in (like you are using currently) to do the upload or other kinds of stuff.


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

ok

 

I am concerned about the path of the MHT file on master jenkins. Attached the screenshot with the path.

 

Thanks

NG

Things to note here,

MHT file always generates in the Jenkins master node whereas job runs on the Slave node. Post-build will be triggered in the slave. 

Before triggering the upload results to Confluence, MHT needs to be placed in the workspace of Slave from Master node. No plug-ins found to copy the file from Master node to salve workspace after a build. 

 

Me too having the same kind of problem, I'm trying to solve it. Hope will find a solution soon.


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

 

Thank you 

Yes you are right till now we have not find the way to copy the MHT file from master node to slave node.

 

So what I did is Through testcomplete script I am exporting the MHT log . But there is issue jenkins build willl not post the  MHT file to confluence or wiki if there are errors in the script. If there are no errors then it will post the MHT file to confluence 

 

 

I have just attached the Post build actions - where I am using plugin Publish to confluence . Other attachment is related to console log showing the script has errors and jenkins detects it as unstable due to which MHT file do not get published to confluence.

 

I am not sure do we have any limitation in jenkins confluence publisher plugin ?

 

Thanks

NG

It is not the Jenkins confluence publisher plugin limitation.

 

The default rule for Jenkins is, each build step checks the previous step status if it is not SUCCESS then it won't go to next build/post build step and it stops where an error occurs. Some plug-ins might have override options so that irrespective of previous step status it will run.

 

From Document:

  • Action on warnings - Specifies whether Jenkins should mark the entire build as failed or unstable when the TestComplete test log contains warnings.

  • Action on errors - Specifies whether Jenkins should mark the entire build as failed or unstable when the TestComplete test log contains errors.

Answer to question is,

Make the two drop-down boxes in the TestComplete build step advanced options to None as like below image then you are all set.

2018-10-26 19_40_24-cip-runner Config [Jenkins].png

 

 


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 are getting when uploading the testcomplete result - MHT to confluence like wiki 

Attach the log file.

 

 

 

nisgupta
Valued Contributor

@shankar_r

 

We are getting when uploading the testcomplete result - MHT to confluence like wiki 

Attach the log file.

 

 

 

cancel
Showing results for 
Search instead for 
Did you mean: