Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Jun 2001
    Redwood City,Ca.,US

    Main advantage of JTest?

    Can antone tell me any advantages to using JTest and has anyone been used it on jsp generated pages?


  2. #2
    Junior Member
    Join Date
    Sep 2001
    Monrovia, CA, USA

    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.

    - d.

  3. #3
    Junior Member
    Join Date
    Jun 2002

    Re: Main advantage of JTest?

    Hi Drea

    Thanks for the info on JTest.
    Can you share how JTest Design by Contract,
    found useful for EJB's JSP, servlets...




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 06:00 PM.

Copyright BetaSoft Inc.