Hi,
we want to check the coverage of our test cases but not the junit tests but the functional tests being used from QTP.
If there it is possible then please provide the links for tutorial for the same.
In general, in order to record a per-test coverage the only thing which Clover needs to know is when given test starts and ends. So usually by writing a some helper script or app you can integrate Clover with any test framework or tool. Please check this "Hacking Clover" article:
Measuring+per-test+coverage+for+manual+tests
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, it can!!! The trick is that you have to create an artificial JUnit test class in which every single 'empty' test method will correspond to the single test from QTP. When QTP test starts, it shall start also test method from JUnit. Similarly, just before QTP test finishes it shall end the JUnit test method. Thanks to this trick, Clover will be able to track per-test coverage, even for external test frameworks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
One more thing is that if you don't need per test coverage information then it will simply work and no additional integration is required.
Just compile your business code with clover and start your QTP tests. After that you will be able to generate report with business code coverage (but without "per test coverage" information).
Cheers,
Jacek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.