View previous topic :: View next topic |
Author |
Message |
Flashback
Joined: 27 Oct 2002 Posts: 37
|
Posted: Fri Apr 23, 2004 9:25 am Post subject: Custom Report - Folder Summary Macros |
|
|
I know I must be missing something here.
I have the following listed as the folder summary for my custom report.
%Folder% - %FolderCurrent_TotalTests% / %FolderCurrent_GoodTests% / %FolderTotal_FailedTests% </br>
When the report displays, I get a response l get something like this:
Site - 1 / 0 / 154
How could I have 1 total test, and 154 failed tests in the same folder? |
|
Back to top |
|
|
Flashback
Joined: 27 Oct 2002 Posts: 37
|
Posted: Fri Apr 23, 2004 9:32 am Post subject: |
|
|
By the way, I'm using HM 4.45 on Win2K Server SP4 |
|
Back to top |
|
|
Marcus
Joined: 18 Nov 2002 Posts: 367
|
Posted: Fri Apr 23, 2004 9:35 am Post subject: |
|
|
Make a little java / vbscript, which uses these values to assign them to variables. Then you can use it to make calculations. Otherwise it will be seen as plain text.
We use it like: var ActiveTests=%GoodTests%+%UnknownTests%+%BadTests%;
Which results in: var ActiveTests=108+0+0+0;
In this case we can use the variable ActiveTests to display the calculated number. Just remember that variables taken from HostMonitor are plain text in html and java / vb |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12800 Location: USA
|
Posted: Fri Apr 23, 2004 9:42 pm Post subject: |
|
|
You mixed up FolderCurrent and FolderTotal
%FolderCurrent_BadTests% - Number of the test items (in the folder) those have "Bad" status at the report generation time
%FolderTotal_FailedTests% - Total number of failed probes for all test items in the folder. It means that if you have just one test that failed 100 times, counter will be = 100.
So, use %FolderCurrent_BadTests% instead
Regards
Alex |
|
Back to top |
|
|
|