Main advantage of JTest?
Can antone tell me any advantages to using JTest and has anyone been used it on jsp generated pages?
Re: Main advantage of JTest?
Since no-one else has weighed in, I can give you some features of Jtest that other tools don't offer in one package --
1) Static analysis -- Jtest comes with 240+ built-in coding standards from sources such as Scott Ambler and and SUN's recommended good coding practices. Jtest also includes a feature where you can build your own coding standards or modify the existing ones to meet your needs. The rules are weighted by severity and suppressable by type or severity, so you can customize your rule base on a company- or department-wide basis as well as individually.
2) Automatic white box (construction) and black box (functionality) testing. For white box testing, Jtest will automatically create test cases based on your code to check its boundaries. For black-box testing, Jtest builds a virtual environment around your test class and creates the test harness to run your test cases through. As far as test cases (this is where Junit and Jtest have similarities), you can write your own test cases manually or modify the test cases created during the white-box testing phase to your own needs. (See below for how Jcontract & Jtest can work together to fully automate -- meaning, write black-box test cases for you -- this portion of testing).
3) Automatic regression testing -- the standard 'build a test suite of previous test cases run' on the fly.
Jcontract is a new(ish) product from ParaSoft that tests Design by Contract (DbC) contracts at runtime. DbC, originally from Eiffel programming, is the concept of adding specifications to your code, in the form of Javadoc comments, to specify your method conditions, etc. When used in conjunction with Jtest, and in addition to the runtime testing, Jcontract and Jtest can also read those Javadoc comments and create test cases based on the specifications outlined therein.
More information can be found at http://www.parasoft.com/products/jtest and http://www.parasoft.com/products/jtract
A couple of comparisons, in brief:
Jtest vs. Jprobe -- apples and caramel (think, complementary ). Jtest is an automatic unit testing tool while Jprobe is a profiler. Best to use both together if you're interested in each of the products' features.
Jtest vs. Junit -- share/freeware (??) vs. commercial software, so Jtest obviously costs more. That aside, Jtest offers the static analysis, white box testing, regression testing, and the automatic test harness building for black-box testing. Jtest + Jcontract, as stated above, fully automate the black-box testing too, so where Junit and Jtest by itself requires you to write your own test cases, Jtest + Jcontract won't.
Sorry for the long diatribe! If you have any other questions, just say the word.
Re: Main advantage of JTest?
Thanks for the info on JTest.
Can you share how JTest Design by Contract,
found useful for EJB's JSP, servlets...