How to dynamically log bug into JIRA using script or code - jira

I am using XStudio- a test management application and it currently contains my testcase resulst(pass/fail). I am planning to dynamically log bug into JIRA using XStudio. Kindly let me know if any plugins are available to do the same or should I write script to log defects. If writing script is a good option, please help me to write the script to log bug and invoke the script from XStudio. Any help would be greatly appreciated.

You could use the Jira JIRA Remote API. You should choose between REST, SOAP, XML-RPC of JSON-RPC according to your Jira version and the desired scripting language.
To do something similar, I've used python and XML-RPC, you can find a very good example here. If you need any help please supply the Jira's version number, which API, and which language.
Good luck!

Related

Generate report and integrate it with jenkins

I am new in Karate but know almost all the basics. I want to generate a report for my test cases which will be kept in the folder for history purposes. currently, I am using the HTML report which overrides or updates every time I run my test cases.
If you can recommend me a step-by-step tutorial or a link, or simply give me a hint on how to approach this.
I have tried to use the allure framework and I am struggling to set it up.
Thought it would be the best approach to solve my problem.
Attached is my HTML report I am talking about. Thanks in advance
The JUnit HTML report which you have referred to as an image is designed for easy development, so when working on a test, you re-run and re-fresh the browser.
What we recommend is to use the parallel runner reports. Most of the time, 3rd party frameworks will solve this problem for you - especially if you use them integrated with CI. See this for example.
But finally, Karate will output the industry-standard Cucumber JSON report format, so you can always write a reporting solution yourself. Note that others have had success integrating Allure - so please refer this answer: https://stackoverflow.com/a/54527955/143475

SonarQube Analysis for Erlang

I am trying to run sonar analysis for Erlang. I have downloaded the plug-ins and with 60+ rules, it is able to tell me which part of the source code is not compliant.
However, I cannot get the SQALE rating to work correctly, in particular, the technical debt always shows 0.0 days. How do I configure this?
It is not configurable, basically the plug-in does not support this SQALE feature. In fact, the most recent version of SonarQube does not use SQALE anymore.

How to change the language displayed in the report of FindBugs

I am using FindBugs to generate a report for my application by using Ant target. In the report, it is mixed with french and english. Does anybody know to generate a report only with english?
Thanks in advance!
Ikeforward
If you use the downloaded version of findbugs, you can just invoke it with
LANG="C" ./findbugs
Or however you start it, the LANG="C" has to be in the environment. This should work on most (all?) operating systems. There is some documentation about the i18n environment variables at the Open Group. An example how to do this with Ant is available here:
http://findbugs.sourceforge.net/manual/datamining.html#antexample
(asking Google for "ant findbugs language" had this at it's first result, I hope it works)
According to http://findbugs.sourceforge.net/manual/running.html
I think that you should use the following
-Duser.language=en
to have the whole thing in English.
Waldheinz's answer may work for you. The more general answer is that you probably need to change the locale that FindBugs is running in. The way to do this depends on how you're running it (command line, or from eclipse, or from ant...) and what operating system you're using. This page may provide you with the rest of the info you need - but probably not. If not, provide specifics.

Embed Jira Issue Details in Connfluence page

I am currently looking for a way to integrate detail views of selected Jira Issues into a Conflluennce page. It seems it is not a problem at all to embed a list of Issues into confluence, but I am looking for a way to integrate the detail-view of a single Jira Issue into a Conflluence page.
The reason I need this, is that I am currently defining a workflow for formmally planning a Project. Currently I export the Issues of a Project version to Word and then update the resulting document to become a formal specification document. I would now like to do this in Confuence.
Any help greatly appreciated.
Chris
This is available in the latest Confluence version, 3.5. Here's the documentation.
Well I solved my problem by creating my own confluence macro that accesses Jira using the REST interface. Works like a charm. If I find the time, I'll try to make it generally available (currently It's extremely tied to our configuration (hard-coded urls and credentials) Will be looking forward to utilizing the trusted communication features in the future.

Resources for setting up Flex projects with Hudson

I'm looking into setting up a CI environment for our flex projects. I have very little experience in setting up an environment like this, but have read a lot about it and think we could benefit a lot from this in our projects. I do have experience with ANT and we're currently using it for our building. I've been looking at Hudson for a while and it looks really nice and simple while still having the power to support a proper CI environment.
So basically, my question is if anyone has experience in setting up Flex projects with Hudson? If so, please do share some info on issues, cost/benefit as well what kind of effort is required per project to get up and running with Hudson. I've googled for a while and can proudly say that I know more about both the Fast lexical analyzer and the Hudson River, but little more about the topic of this post =)
Just about anything that can be executed from a command line can be executed via hudson. If your flex app can be built via ant from the command line; it will work just fine in hudson.
This might be helpful:
http://www.subotnik.com/blog/?p=100

Resources