Exclude a Folder from HTML reports
Exclude a Folder from HTML reports
Dear KS-Soft-Team,
I use the global settings for report generation.
And I'm very happy with that.
- It's easy to add a new field to all test
- or to change colors
- ..... <many other things>
Therefore I wouldn't like to use special settings for each folder.
The only thing I'm looking for is:
How to exclude a Folder (and maybe all its subfolders) from the Global reports.
Reason:
- In productive environment I need a folder for playing with new tests until they work as desired - without alerting the people that watch the reports.
- I'd like to group some tests/linked tests and draw conclusions from their results, without having the tests directly in the report. (looking forward to the new variable %::FolderName::BadTests%)
I use the global settings for report generation.
And I'm very happy with that.
- It's easy to add a new field to all test
- or to change colors
- ..... <many other things>
Therefore I wouldn't like to use special settings for each folder.
The only thing I'm looking for is:
How to exclude a Folder (and maybe all its subfolders) from the Global reports.
Reason:
- In productive environment I need a folder for playing with new tests until they work as desired - without alerting the people that watch the reports.
- I'd like to group some tests/linked tests and draw conclusions from their results, without having the tests directly in the report. (looking forward to the new variable %::FolderName::BadTests%)
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
I think, you may use Custom HTML report with Java Script (specified inside body of the report) that checks %Folder%variable.
http://www.ks-soft.net/hostmon.eng/mfra ... CustomHTML
Test Items section should be like this:
Instead of 'Filter_Folder_Name' you should specify name of the folder, you want to exclude from the report.
Regards,
Max
http://www.ks-soft.net/hostmon.eng/mfra ... CustomHTML
Test Items section should be like this:
Code: Select all
<SCRIPT type="text/javascript">
var folder_name = '%Folder%';
if (folder_name.indexOf('Filter_Folder_Name') == -1)
document.write('%TestName%, %Reply%, etc.<BR>');
--></script>
Regards,
Max
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Take it easy
It is pretty simple.
You have to specify such code into the Test items area in "HTML Report Template" window (Invoked from "Report Profiles" window, the button next to "Report type" Combo box. Button is enabled when "Custom HTML" is selected).
Quote from the manual:
http://www.ks-soft.net/hostmon.eng/mfra ... CustomHTML
================
Test items
Provide HTML code for each test status. Here you may use test related macro variables (in addition to regular, user defined and date variables).
================
Actually, you do not have to exactly the same piece of code. You should adjuts HTML code to suit your needs. For instance, you may use another parameters, for Document.Write function, like
It is really the most flexible report type. I think, you should try to generate similar report by yourself to understand how it works.
Regards,
Max

You have to specify such code into the Test items area in "HTML Report Template" window (Invoked from "Report Profiles" window, the button next to "Report type" Combo box. Button is enabled when "Custom HTML" is selected).
Quote from the manual:
http://www.ks-soft.net/hostmon.eng/mfra ... CustomHTML
================
Test items
Provide HTML code for each test status. Here you may use test related macro variables (in addition to regular, user defined and date variables).
================
Actually, you do not have to exactly the same piece of code. You should adjuts HTML code to suit your needs. For instance, you may use another parameters, for Document.Write function, like
Code: Select all
Document.Write('<table><tr><td>%TestName%</td><td>%Reply%</td><td>%Status%</td></tr></table><BR>')
Regards,
Max
I've already tried that - and just a second time using a linked and a copied test.Simply choose "Use folder's own report settings" option (Folder Properties dialog)
But both tests are shown in the HTML report.
Can you explain in more detail.
I set for the Sub-Folder "Use folder's own report settings" but no other values
- NOT ckecked "Generate reports every" (1 min is set)
- NO Reports selected
- NO Execute action profile when complete
Last edited by JuergenF on Sat Dec 09, 2006 1:54 pm, edited 1 time in total.
PS How exactly you are creating reports? Manually? Using timer in the Options dialog (Reports page)? Built-in Scheduler? "Generate reports" action?
If you are using "Generate reports" action with "Recursive mode = Folder & all subfolders", HostMonitor will include all subfolders into the report. You should use "Folder & subfolder with inherited settings" recursive mode
Regards
Alex
If you are using "Generate reports" action with "Recursive mode = Folder & all subfolders", HostMonitor will include all subfolders into the report. You should use "Folder & subfolder with inherited settings" recursive mode
Regards
Alex
"Normal" report shows
Folder: Root\
- Test11
- Test12
- Test13
Folder: Root\Sub1
- Test11 (LINK)
- Test22
- Test23
I would like to exclude from the report
Folder: Root\Sub1
- Test11 (LINK)
- Test22
- Test23
So the "new" report should only include
Folder: Root\
- Test11
- Test12
- Test13
How to exclude the folder "Sub1" with all its tests (and maybe its subfolders) from the HTML report
If it's not clear now, I can send screenshot or what files do you need ?
Many thanks for your help
Folder: Root\
- Test11
- Test12
- Test13
Folder: Root\Sub1
- Test11 (LINK)
- Test22
- Test23
I would like to exclude from the report
Folder: Root\Sub1
- Test11 (LINK)
- Test22
- Test23
So the "new" report should only include
Folder: Root\
- Test11
- Test12
- Test13
How to exclude the folder "Sub1" with all its tests (and maybe its subfolders) from the HTML report
If it's not clear now, I can send screenshot or what files do you need ?
Many thanks for your help
Options | Reports | "Generate reports every 1 min"KS-Soft wrote:PS How exactly you are creating reports? Manually? Using timer in the Options dialog (Reports page)? Built-in Scheduler? "Generate reports" action?
If you are using "Generate reports" action with "Recursive mode = Folder & all subfolders", HostMonitor will include all subfolders into the report. You should use "Folder & subfolder with inherited settings" recursive mode
Regards
Alex
That's why HM includes all folders into report.Options | Reports | "Generate reports every 1 min"
You may use the same option for Root folder (Folder Properties dialog) instead of "global" report generator. Also you may use built-in Sheduler and "Generate reports" action with "Folder & subfolder with inherited settings" recursive mode
Regards
Alex
That does the trickKS-Soft wrote:That's why HM includes all folders into report.Options | Reports | "Generate reports every 1 min"
You may use the same option for Root folder (Folder Properties dialog) instead of "global" report generator.

I wasn't aware of the difference to create the reports from the global settings vs. doing that from the Toplevel folder.
Are there any hints in the manual ?
Many thanks
Juergen
I'd like to ask for a new feature:KS-Soft wrote:That's why HM includes all folders into report.Options | Reports | "Generate reports every 1 min"
You may use the same option for Root folder (Folder Properties dialog) instead of "global" report generator.
Even when I use "global" report generator (that setting has some advantages for me) I'd like to have an option to exclude a specific folder and subfolders from all (global) reports.
What I need is a place where I can store some tests that should not be shown in any reports (i.e. while I'm working on that tests). Maybe a folder that is called "NoReports" or something like that.
Many thanks
Juergen
HostMonitor provides such option. Use Reports settings of the Root folder (Folder Properties dialog)Even when I use "global" report generator (that setting has some advantages for me) I'd like to have an option to exclude a specific folder and subfolders from all (global) reports.
"Noreports" report? H'm... almost impossible. HostMonitor should analyze all folders, all profiles, check report settings. How it should check custom HTML reports when you are using your own java script to filter test items? Then new feature "dynamic views" that will be implemented in new version, will bring new problems for such "noreports" report.What I need is a place where I can store some tests that should not be shown in any reports (i.e. while I'm working on that tests). Maybe a folder that is called "NoReports" or something like that
No, we will not do that
Regards
Alex