This is a discussion on Re: test scripts for subagent within the SNMP Users forums, part of the Networking and Network Related category; On 11/04/2008, Pranesh Kulkarni <praneshvk@gmail.com> wrote: > My Question was can i use the ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On 11/04/2008, Pranesh Kulkarni <praneshvk@gmail.com> wrote:
> My Question was can i use the scripts which are in > $installdir/testing/RUNTESTS to test my subagent , RUNTESTS is simply the top-level driving script. The tests themselves are under 'testing/tests' Most of these are generate specific queries, and compare the results received with the expected values. The only standard test that would potentially touch your subagent would be T200snmpv2cwalkall which walks the full tree. Though you might need to tweak the agent config to have it load your subagent. See the CONFIGAGENT token. For more focused testing of your subagent, you would definitely need to write your own tests. > if any tutorial is there to writing test scripts to > test the subagents will be helpful to me. Nope - sorry. Have a look at the existing tests under 'testing/tests' The structure is pretty straightforward - particularly if you start with the earlier tests. Dave ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757...un.com/javaone _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users |