As noted before, Guidewire packages a JUnit-like framework called GUnit in Studio. (See [GUID2011]) GUnit has a number of features and can be very useful in testing customizations.
The Unit Test Framework has features that make it useful in addition to GUnit.
•Unit Test Framework is simpler than GUnit. It is easier to learn and use than GUnit. The emphasis in the Unit Test Framework is to provide the minimal set of features to support JUnit style testing.
•Unit Test Framework functions in any of the Guidewire environments with any of the supported database (Oracle, SQL Server, H2). Typically, GUnit test cases cannot be run in quality assurance environments, limiting the ability to use these test cases for regression testing and smoke testing.
•Unit Test Framework tests can be executed outside of Studio. They can be initiated from a command line or test management program like Hudson. This feature supports regression testing in shared quality assurance environments. GUnit tests can also be executed outside of Studio, but it requires an additional set of software from Guidewire..
•Unit Test Framework is provided with all its source code, so you can modify and enhance it to support your testing requirements.
•Unit Test Framework supports behavior driven development (BDD) and test reporting.
•Unit Test Framework supports FIT-like testing.
The Unit Test Framework and GUnit are not compatible: tests written with one framework cannot be run under the other.