README revision ada1678a4262b208a7b87391f520a7767d25287c
418N/AAuthor: Kedar (km@dev.java.net)
418N/AAdded: 29 Aug 2008.
605N/A
418N/AHere is a simple recipe to add a new asadmin command test to this test suite.
605N/APlease let me know if you like it. Adding a new test should not take
761N/Amore than 2 minutes, if you know what to test.
418N/A
418N/A0- This suite is meant *exclusively* for asadmin tests. It uses TestNG.
418N/A1- Extend BaseAsAdminTest which has got bunch of utility routines.
418N/A The design of this tests is done with this in mind. You have to
418N/A extend BaseAsAdminTest. Don't reinvent the wheel.
418N/A2- Start with *CAREFUL* copy + paste.
418N/A3- Look at any of the existing subclasses of BaseAsadminTest. Add
418N/A the command of your choice and annotate it with @Test.
418N/A Most of the time what you want is the "Manifest" object from an
418N/A asadmin command invocation. Utilities are provided for the same.
418N/A4- Add the command class in ../testng.xml.
418N/A5- That's it.
418N/A
418N/ALimitations:
418N/A1- Does not use Maven. (That is not a real limitation :))
418N/A Pom.xml is provided only for IDE. It's imperative that
418N/A you use IDE. Just point NetBeans to this pom.xml and your test development
418N/A will be easier. Pom.xml is not used for building.
418N/A2- As of now, tests can't be run from this folder. You have to run them from
418N/A the parent folder (../)
418N/A3- Assumes a standard setup (default domain.xml etc.).
418N/A4- If the suite fails then you'll need to modify domain.xml by hand before
418N/A re-running it.
418N/A
418N/ANote:
418N/A1- ../testng.xml
418N/A <parameter name="admin.url" value="http://localhost:4848/__asadmin"/>
418N/A <parameter name="admin.user" value="admin"/>
418N/A <parameter name="admin.password" value=""/>
493N/A are the real parameters available to every test. You don't have to worry
418N/A about this.
418N/A
857N/ATBD:
418N/A1- Make the suite runnable with a domain that has password protection.
418N/A