Hi Shyamal,
welcome at the Ranch!
I would advice you to not put the
word "urgent" into the subject of your posts; not doing so will probably give you *more* answers, as many feel about it like cheating (after all, we *all* want our questions to be answered, and we all do so voluntarily; if you want to hurry someone,
you should think about paying for it).
Regarding your question - well, how should JTest know that you *want* to close the connection (a
JDBC connection, I guess)?
Actually, any automatically generated suite of tests can only be rudimentary. There is no magic in testing - a comprehensive suite of tests simply requires some investement of work (such investment typically pays back manyfold, though).
You should probably look into using
JUnit to define test cases (as far as I know, JTest can execute JUnit tests). Testing for closing connections is a little bit more tricky than the average test, but certainly doable (using mock objects, for example).