Re: Automated tests in SmartFrog
KUMARAVEL GANESAN <[email protected]>
| Newsgroups | gmane.comp.java.smartfrog.devel |
|---|---|
| Organization | HP |
| Message-ID | <[email protected]> |
Hi Gustavo , You can get the automated tests from cvs (core - head). All the tests are placed under core\testharness directory, same can be executed by calling "ant" command in core\testharness directory. An HTML page will be generated in the end of the test execution , in which the results can be viewed. For automated way to test all the lifecycle of a component , We have Trace component to do the deployment tests and you can use the lifecycle hooks to test all the lifecycle methods. And example is provided with the Trace component. We could register hooks and make some evaluations in the hook call. Here is the sample trace output: (DEPLOYING ,STARTING, TERMINATED): ________________________________________ sfTrace: ROOT[3800]>HOST eb96138.india.hp.com:rootProcess:exam:exc7, DEPLOYING i n rootProcess at eb96138/15.76.96.138:3800, [18:16:35.964 GMT+05:30, 2005/02/17] sfTrace: ROOT[3800]>HOST eb96138.india.hp.com:rootProcess:exam, STARTING in root Process at eb96138/15.76.96.138:3800, [18:16:39.011 GMT+05:30, 2005/02/17] sfTrace: ROOT[3800]>HOST eb96138.india.hp.com:rootProcess:exam, TERMINATED (Term ination Record: HOST eb96138.india.hp.com:rootProcess, type: normal, descripti on: External Management Action) in rootProcess at eb96138/15.76.96.138:3800, [18 :18:07.042 GMT+05:30, 2005/02/17] ________________________________________ Thanks and Regards, Kumar Gustavo Wagner wrote: > Hello all. > > I've sent an e-mail on January, 2003 about the automated tests in > SmartFrog environment. First I would like to know if the automated > tests of SmartFrog can be stored on the SmartFrog site. Second, are > there an automated way to test all the lifecycle of a component(using > JUnit, for example)? > > Thanks a lot, > > Gustavo > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click