View previous topic :: View next topic |
Author |
Message |
thomasschmeidl
Joined: 15 Apr 2006 Posts: 166 Location: Germany, Bavaria
|
Posted: Sun Jan 07, 2007 7:23 am Post subject: Report showing tests less than 99% OK |
|
|
Hi everybody,
which is the easiest way to define a report (in style of standard html report) that shows only tests with an %AliveRatio% <99%?
Cheers
Thomas |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Mon Jan 08, 2007 3:19 am Post subject: Re: Report showing tests less than 99% OK |
|
|
thomasschmeidl wrote: | which is the easiest way to define a report (in style of standard html report) that shows only tests with an %AliveRatio% <99%? |
You may use Custom HTML Reports: http://www.ks-soft.net/hostmon.eng/mframe.htm#profiles.htm#CustomHTML
You just should specify JavaScript inside the body of report that checks %AliveRatio% variable.
Test Items section should be like this:
Code: | <SCRIPT type="text/javascript">
var test_alive_ratio = '%AliveRatio%';
if (test_alive_ratio < '99 %')
document.write('%TestName%, %Reply%, etc.<BR>');
</script> |
Regards,
Max |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Mon Jan 08, 2007 12:12 pm Post subject: |
|
|
I am sorry, probably, would be better to use following script:
Code: | <SCRIPT type="text/javascript">
var test_alive_ratio_str = '%AliveRatio%';
var test_alive_ratio = parseInt(test_alive_ratio_str.replace(' %',''));
if (test_alive_ratio < 99)
document.write('%TestName%, %Reply%, etc.<BR>');
</script> |
Regards,
Max |
|
Back to top |
|
|
thomasschmeidl
Joined: 15 Apr 2006 Posts: 166 Location: Germany, Bavaria
|
Posted: Thu Jan 18, 2007 1:02 am Post subject: |
|
|
THanx
Thomas |
|
Back to top |
|
|
thomasschmeidl
Joined: 15 Apr 2006 Posts: 166 Location: Germany, Bavaria
|
Posted: Wed Mar 21, 2007 6:20 pm Post subject: |
|
|
I see, it's much easier now using the views introduced in 6.70
Great feature! |
|
Back to top |
|
|
johnm
Joined: 01 Apr 2005 Posts: 117
|
Posted: Wed Apr 04, 2007 1:00 pm Post subject: |
|
|
thomasschmeidl, not sure I follow. Why do you say it is easier, can you expand on this? |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
|
Back to top |
|
|
johnm
Joined: 01 Apr 2005 Posts: 117
|
Posted: Wed Apr 04, 2007 2:49 pm Post subject: |
|
|
ah, good point. I didn't see the "Generate" button. If it was any larger it would be a window.
Thanks :) |
|
Back to top |
|
|
|