cancel
Showing results for 
Search instead for 
Did you mean: 

Post log to Jira automatically

Occasional Contributor

Post log to Jira automatically

How I can post log to Jira automatically? 
8 REPLIES 8
Community Expert

RE: Post log to Jira automatically

Hi Denis, from where do you want to post the log? from a Script after a test run? or somewhere else?



Regards,

Phil Baird
Contributor

RE: Post log to Jira automatically

You can do this by using JIRA cli
Community Manager

RE: Post log to Jira automatically

Hi Denis,

 


Currently, it's possible to post the test results to Jira only from TestComplete's GUI. We have a suggestion in our DB to implement the possibility of the automatic export - I've increased its rating based on your question. 


 


In the meantime, you can try to implement this by using Adrian's suggestion.


 

---------
Tanya Gorbunova
SmartBear Community Manager

Join the September Hub-bub to show off, learn and win
Community Hero

RE: Post log to Jira automatically

Hi Denis,




In addition to the replies by Tanya and Adrian, the functionality mentioned by Tanya is implemented via Script Extension that can be found in the <TestComplete>\Bin\Extensions\ScriptExtensions\JiraSupport.tcx file. This is a Zip archive with the .tcx extension. Go through the script extensions section in TestComplete help and use the mentioned extension as a code sample. I hope that you'll be able to implement what you need.



(Well, maybe this script extension is implemented on the base of the Jira Cli mentioned by Adrian, I just don't know...)

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
Community Expert

RE: Post log to Jira automatically

Hi, the Script Extension Alexei refers to uses the (now marked for deprecation) Jira SOAP/RPC Web Service API.

 


The other caveat to it is that it also uses functions such as WebServices::CreateWebServiceInfo() which requires the Web Service Testing Plug-Ins be installed, as detailed here.



The new Jira REST Web Service API offer the resource /rest/api/2/issue/{issueIdOrKey}/attachments as documented here.




The only issue around it is the following:


 


"This resource expects a multipart post. The media-type multipart/form-data is defined in RFC 1867. Most client libraries have classes that make dealing with multipart posts simple. For instance, in Java the Apache HTTP Components library provides a MultiPartEntity that makes it simple to submit a multipart POST."


 


and the example provided isn't that useful.


 


It should be possible to write a small .Net or Java library that can be accessed via the CLR or Java Bridge that can POST to this resource.


 


Having never tried it, I am not sure if the multipart POST can be done using the XMLHttpRequest object provided by the Test Complete Scripting interface.


 


Regards,


Phil Baird




Occasional Contributor

Re: RE: Post log to Jira automatically

Hi Tanya,

 

Just wondering if the feature to automatically post to Jira has been implemented in the latest TestComplete (10.5)?  If not, I would like to request this feature as well.

 

Thanks!

Contributor

Re: RE: Post log to Jira automatically

 

Good Morning:

Just wondering if the feature/update for automatically sending a bug report via a Log File has been added to Test Complete 11?  Any progress update on this would be great!

 

Thanks.

Super Contributor

Re: RE: Post log to Jira automatically

@TanyaGorbunova 

Any idea when it can be done ?

 

Thanks

Nishchal

New Here?
Join us and watch the welcome video:
Watch the New Interview
7Mistakes
Join the September Hub-bub to show off, learn and win