HP UFT integration with SonarQube

493 views
Skip to first unread message

singnamoni...@gmail.com

unread,
Apr 27, 2016, 8:57:37 AM4/27/16
to SonarQube
Hi Guys,

Is there any option to get the Test coverage using Sonar Qube while running automated tests from HP UFT.

Thanks & regards
Tulasi Kumar S

Nicolas Peru

unread,
Apr 27, 2016, 9:02:20 AM4/27/16
to singnamoni...@gmail.com, SonarQube
Hi, 

You may want to have a look at the generic test coverage plugin : http://docs.sonarqube.org/display/PLUG/Generic+Test+Coverage 
Idea is to transform your coverage data from your tool (which I do know nothing about) in this generic format to import them in SonarQube. 

Cheers, 




--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/6c5574b5-e577-40e4-abdb-8f064024ddbc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Nicolas PERU | SonarSource
Senior Developer
http://sonarsource.com

tulasi singnamoni

unread,
Apr 27, 2016, 9:21:28 AM4/27/16
to SonarQube
Actually I mean getting Code coverage using HP UFT....

Michel Pawlak

unread,
Apr 27, 2016, 11:33:20 AM4/27/16
to SonarQube
Hi tulasi, what is really blocking you, what have you tried ? Do you want to use UFT to run functional tests towards your deployed application, and capture IT coverage ?

To do this, if your application is written in java, you need to be able to trace what parts of your code have been reached by your functional tests. You can do this by using Jacoco (agent, real time instrumentation) or by using Cobertura (offline instrumentation) then deploy your application. When running UFT tests the instrumentation will generate a report (jacoco is directly usable by SonarQube, cobertura report needs to be modified in order to make it readable as IT coverage report by SonarQube's Generic coverage plugin.)

While this is easily doable using Maven and Jacoco, with Cobertura you can't do it out of the box. I have written a small example explaining how to do it with Jetty. Note that it uses qualinsight-mojo-cobertura maven plugin to capture IT coverage and generate the reports in the correct format.

If you're not using Java, well the only thing I can tell you is to contact HP support. They argue that their tool integrates perfectly with various CI servers and test frameworks, I'm pretty sure they'll help you :-)

Michel

tulasi singnamoni

unread,
May 7, 2016, 2:24:41 PM5/7/16
to SonarQube
Hi Micheal,

Where does we need to setup Jacoco and sonar, Is that on JVM server?
What about the UFT Scripts, where do we need to execute them? We generally execute UFT scripts on our local machines, is that fine? Or do we need to run the UFT scripts also on the JVM?
Please let me know the information on above questions please.
Will be very thankful to you.

Thanks & Regards
Tulasi Kumar S

tulasi singnamoni

unread,
Jun 21, 2016, 8:50:30 AM6/21/16
to SonarQube
Hi Michel,

Can you please help me on the Functional test code coverage using HP UFT(VB Script is which we use) scripts with Sonar. This is really high priority for me. Any help from you would be very thankful.

Thanks & Regards,
Tulasi Kumar Singnamoni(Tulasikuma...@ymail.com)


On Wednesday, 27 April 2016 21:03:20 UTC+5:30, Michel Pawlak wrote:
Reply all
Reply to author
Forward
0 new messages