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?
Custom Report - Folder Summary Macros
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
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
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
%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