Anyone want my mainPageMetrics code?

The release related discussions, plans and questions.
Locked
abasque
TestLink user
Posts: 7
Joined: Wed May 02, 2007 1:51 pm
Location: Chicago IL

Anyone want my mainPageMetrics code?

Post by abasque »

I hacked up my install a bit to put some metrics on the main screen. I basically just used the display for resultsAllBuilds but changed it around some to show for all active test plans across all projects. Not the neatest solution, but it's nice to get a quick overall view of testing progress without needing to switch between projects/plans (which was requested by my boss - we're still in evaluation mode right now).

Is anyone interested in using this for their install? I know the "offical" main page metrics is still in progress but this might be useful for you in the meantime.

Let me know and I'll post the files up here.
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Post by fman »

Please open an issue on mantis (subject : Contribute ....) and upload there your code

Thanks
abasque
TestLink user
Posts: 7
Joined: Wed May 02, 2007 1:51 pm
Location: Chicago IL

Post by abasque »

ok cool, sounds good. i also have another tiny change that will show a linked Jira issue's state along with the ID and Summary - i'll upload that in a separate issue.

thanks
abasque
TestLink user
Posts: 7
Joined: Wed May 02, 2007 1:51 pm
Location: Chicago IL

Post by abasque »

just to tie these together: http://testlink.org/mantis/view.php?id=825 for the Main Page Metrics hack
svanuitert
Advanced user
Posts: 16
Joined: Fri Mar 16, 2007 3:32 pm

Post by svanuitert »

Sweet work. I love it!. One question, are the metrics supposed to display down at the bottom of the page? my metrics are in the center way down low.

Scot
abasque
TestLink user
Posts: 7
Joined: Wed May 02, 2007 1:51 pm
Location: Chicago IL

Post by abasque »

Thanks! Glad to hear it's useful. I am having some layout problems with it though. On IE it's centered all the way down, but on Firefox all the areas that are displayed below the bottom of the left-side menus (Test Spec, Keywords, etc) are all shifted to the left. I'm not sure what the problem is there.

Is that sort of what you are seeing? Or are your metrics starting much lower on the screen?
svanuitert
Advanced user
Posts: 16
Joined: Fri Mar 16, 2007 3:32 pm

Post by svanuitert »

That's exactly what I am seeing on IE. On my linux Firefox it actually displays perfectly.
abasque
TestLink user
Posts: 7
Joined: Wed May 02, 2007 1:51 pm
Location: Chicago IL

Post by abasque »

That's interesting that we're seeing opposite behavior... I just tried Firefox on Linux and I'm seeing the same layout problem that I see on Firefox on XP. I don't have IE on Linux though so I can't try that configuration out, but IE on Windows seems to display well (although the left and right .

Since we haven't officially decided on TL as our test management tool I probably can't devote a ton of time to debugging it yet, but I'm expecting that decision this week sometime hopefully. I'm hoping this layout problem wouldn't take long to sort out though so I'm hoping to fix it regardless. I don't really know much about the layout for TL yet, but I'll try and take a look sometime this week.
Locked