Reports based on "comment" field of tests

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
AntonyP
Posts: 159
Joined: Mon Jan 02, 2006 9:40 am
Location: Athens Greece

Reports based on "comment" field of tests

Post by AntonyP »

Can i create reports that will contain all tests that have a specific word in their "comment" field? E.g., i have 50 tests of various alarms methods, that relate to a specific machine (ping of eth, ping of ser01 etc). I have added the word CISCO in their comment field. I would like to get a report about that machine, without having to put all those tests in a specific folder named CISCO.
Added to this, can the produced report mention somewhere the comment field of each test?

Thanks in advance :wink:
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Can i create reports that will contain all tests that have a specific word in their "comment" field?
Its not very easy but I think its possible. You may create "Custom HTML" report profile and use some Java script (specified inside body of the report) to check %TaskComment% variable and write different records for different tests.
Something like

Code: Select all

<SCRIPT type="text/javascript"> 
  if ("%CommentLine1%"=="CISCO") document.write("<tr><td>%TestName%</td><td>%Status%</td><td>%Reply%</td></tr>"); 
--></script>
Added to this, can the produced report mention somewhere the comment field of each test?
Sure, Report Manager allows you to select list of fields. If you use "Custom HTML" report, you don't need this option becase you define report using template.

Regards
Alex
Post Reply