Test run status on confluence pie chart is showing last execution
Asked by Maria Ciugurean:

Hi,

I'm using pie chart on confluence to show the testrun results of a given test plan (we do reuse the tests almost each version)

On confluence pie chart when I display my list of tests of a test plan and I display it by test run status, it displays the last known status.

I need to display the status on the execution in a particular version.

How can I do this?

Thank youo


Answers:
author: Maria Ciugurean
body: I find the solution : the gadget I was looking for is called Overall test results.

I just had to add it to confluence.

Gadget's url: <https://jira.wiztivi.com/rest/gadgets/1.0/g/com.xpandit.plugins.xray:overall-test-results-gadget/gadgets/overall-test-results-gadget/overall-test-results-gadget.xml>

How to add gadget:

<https://confluence.atlassian.com/doc/registering-external-gadgets-204050482.html>


author: Katerina Kovriga {Stiltsoft}
body: Hi [@Maria Ciugurean](/t5/user/viewprofilepage/user-id/3787714) ,

Couldn't fully get the question - what macro or app do you use to embed your test results onto your Confluence page? Is it a standard Jira Issues macros with some additional fields or something else?

Maybe you could attach any screenshots or smth.

As I understand, you need to group your data by versions and visualize the results. For table data (and dynamic tables such as the Jira Issues macro as well) we can suggest using the [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=server&tab=overview) app: it provides a bundle of macros (filter, pivot and chart) to work with your information like in Excel.

comments: author: Maria Ciugurean
body: ![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/131486iE6FC315DFEA85BD9/image-size/large?v=v2&px=999 "image.png")![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/131487iC018A91693D312C2/image-size/large?v=v2&px=999 "image.png")


author: Maria Ciugurean
body: Hi [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746) thanks for you answer.

I'm attaching the screenshot that might help, I would like to display the test run status of my test plan, but it displays the last known execution of these particular tests, I need to display the testrun on a parcicular version.

Is this possible to give this parameter? here I can only see to chose the test run status or project, or issue type...

Thank you


author: Katerina Kovriga {Stiltsoft}
body: So you use the Jira Charts macro and it doesn't allow you to choose fix versions.

Don't you use the Table Filter and Charts for Confluence in your company? Please check if there is the Table Filter macro listed in the macro browser.

Then, I suppose, there can be a workaround by using the Jira Issues macro subsequently wrapped into the Table Filter, Pivot and Chart from Table macros. You'll be able to filter by fix versions and create charts in the page view mode for each fix version you need on the fly. [Here are some examples](https://docs.stiltsoft.com/display/public/TFAC/Using+Table+Filter+and+Charts+in+Combination+with+the+Jira+Issues+Macro) about our app and the visualization of the Jira Issues macro.

What concerns standard out-of-the-box tools to solve your case, nothing comes into my head besides filtering by fix versions in the Jira Charts macro JQL. Maybe it is not very convenient, but still it may help.


author: Maria Ciugurean
body: Hi [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746) I appreciate your answer, but that's not exaclty what I'm looking for.

Fix version is not the issue, let's say I have 2 test campaigns.

First test execution : affected version : 2.1. I already run the tests and I have the results.

Second test exeuction : affected version : 2.2 --\> The test exection is not yet launched, when I display the pie chart with my testrun status, I get the results from execution N?1.

Is there any chance I can display test run status by version and not the latest one?

I know I can do it on the jira dashboard (gadget: overall test results) , but not on confluence, does this exist on confluence?

Thank you

Maria.


author: Maria Ciugurean
body: here's the gadget on jira dashboard that's able to do it![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/131587i9FD109733B9ED0CC/image-size/large?v=v2&px=999 "image.png")![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/131589iB2D2C9A9EFBAFA53/image-size/large?v=v2&px=999 "image.png")


author: Katerina Kovriga {Stiltsoft}
body: As far as I know, Confluence provides only two macros to get information from Jira: Jira Issues and Jira Charts macros.

Maybe it really doesn't suit your case.


author: Maria Ciugurean
body: Thank you


Tags: confluence-server

server

test