From: Harish P. <hpr...@co...> - 2005-05-17 10:18:29
|
hi, We are trying to do a code coverage analysis for an application deployed under Weblogic 8.1 server. The application is been tested using Junit as well as HttpUnit Test Cases. While doing the code coverage analysis we found that the code coverage is been reported for those classes which has been called through Junit. Code coverage for those Classes which are run under Weblogic environment or under HttpUnit environment is not shown as covered. For E.g. Let us say that we have got a Delegate class which calls a service. This service is an EJB which is been deployed in the Weblogic server. This Ejb in turns calls some VOAssembler classes and in turn calls the DAO classes. The test case calls the SiteDelegate which internally finds the service and executes the service. The build.xml does exactly as mentioned in the documentation. set the classpath for the cobertura.jar. compile the java files. Create instrumented classes over the compilation classes set the classpath for the instrumented classes run the testcase create the report. On analysis of the report, we could find code coverage only for delegate class and there no coverage is been reported for other classes such as EJB, VOAssembler and DAO. Kindly can you help in resolving this problem. Thanks and Regards Harish |