Can clover be used with QTP (Quick Test Pro)?

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.

3 answers

1 accepted

This widget could not be displayed.

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

This widget could not be displayed.

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

This widget could not be displayed.
I think that clover can't be used in the way we want it. Our requirement was that when QTP test suite runs the at the end we get the analysis of code coverage for suite. I think that clover would work with JUnits or other unit test frameworks which are run from inside the code but it won't work with Functional testing tools which are triggerred separately. Thanks for the support. Cheers.

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.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

121 views 2 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you