I have installed sql plugin and my query runs fine. (I'm using sql query macro) How do I integrate this with chart macro to make better reporting? My query contains test case results and I want them to create pie/bar chart using that to show overall results and pass/fail history.
Insert a SQL Query macro and make sure the output format is html. You should see a table with the results of your query. Then create a chart macro and put the SQL Query macro in the body of the chart macro. It will create the chart based on the table output from the SQL Query. Within the chart macro adjust the properties of it to make the chart display as a pie chart ... specifically it is the "Type" parameter of the chart macro.
This is what your wiki page will look like.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks a lot! This works. My SQL export has 6 columns, and last column is result (pass/fail). Rest of the columns describe testsuite and testcase id etc. How do I create a bar/pie chart indicating testsuite-wise results?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could you post an example or mockup of your data? Or maybe even a screen cap of the table output or a mockup of the table output?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here is the mockup of the final table that I have -
productName, testID, testcaseID, testName, testCaseName,Result
abc,1,100,a,b,pass
abc,1,101,a,f,fail
xyz,2,101,c,d,fail
and i want to create a chart that tells how many of abc/xyz were pass/fail etc.
I have been learning about charts here - https://confluence.atlassian.com/display/CONF50/Chart+Macro
and seems like the input tables have to be very basic or explicit for confluence to create a chart. This one chart that I want to see would require a count of productName-wise pass/fail, which I don't think is supported by current feature set. Is it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah! This will give me the requisite chart. But then again, I will have to modify my query to display requisite table, right?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok disclaimer I'm no reporting guru. But would the below format get you what you want?
Resulting in ...
Like I said, I'm no reporting master, so I'm kinda groping in the dark a bit here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yup. There may be a different way to get it, but like I said I'm no reporting master and whenever I have to use the chart macro it is trial and error for me. :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks a lot! This works. My SQL export has 6 columns, and last column is result (pass/fail). Rest of the columns describe testsuite and testcase id etc. How do I create a bar/pie chart indicating testsuite-wise results?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You might want to look at the free Plugin PocketQuery. It has has the Google Chart API embedded and it's very easy to visualize data from a SQL database as chart. You can find detailed documentation here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.