I have few questions on Unit testing.
1. Can a tool generate all the test cases needed for unit testing (complete coverage).
I tried with few tools,but they all provide test cases for methods which accepts only primitive types.
If I have a method which checks for a conditions based on a value got from a variable from another class, the tools are not able to provide it for me.
2. Is it possible for a tool to provide a solution of the above problem.
3. Is there any tool, which gives me the line number of all the conditions(if, case,...) loops (for, while, do..while, etc) and provide me a matrix of possible test conditions.
You might want to check out DTT (Direct to Test) which is aimed at 100% coverage of the requirements. The software ties into the TMX scripting tool that will generate the ready to run WinRunner, QA Run or SilkTest executable scripts.