You can extend ServerStartupBaseTest from Clarity-framework to check the errors on server startup. In order to guarantee that the test runs immediately after server startup, you need to put the test case into new test package and create new test suite xml by setting preserve-order="true" option. Then you need to update the pom file and put the new suite at the beginning of the list.
e.g <suiteXmlFiles> <suiteXmlFile>src/test/resources/testng-server-mgt.xml</suiteXmlFile> <suiteXmlFile>src/test/resources/testng.xml</suiteXmlFile> </suiteXmlFiles> I have applied the test cases to G-Reg [1]. Please update other products (ESB, DSS, CEP and SS) which uses Clarity framework for integration tests. Sample test suite xml is attached here with. Thanks, Krishantha. [1] https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.0.0/products/greg/4.5.1/modules/integration/registry/tests-new/src/test/java/org/wso2/carbon/registry/server/mgt/test/ServerStartupTestCase.java
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" > <suite name="Greg-suite-initializer"> <parameter name="useDefaultListeners" value="false"/> <listeners> <listener class-name="org.wso2.carbon.automation.core.PlatformTestManager"/> <listener class-name="org.wso2.carbon.automation.core.PlatformReportManager"/> <listener class-name="org.wso2.carbon.automation.core.PlatformExecutionManager"/> <listener class-name="org.wso2.carbon.automation.core.PlatformSuiteManager"/> </listeners> <test name="InitializedAndSetupServer" preserve-order="true"> <classes> <class name="org.wso2.carbon.registry.server.mgt.test.ServerStartupTestCase"/> <class name="org.wso2.carbon.registry.server.mgt.test.RegistryConfiguratorTestCase"/> </classes> </test> </suite>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
