Silicon Forks » Forum

It is currently 2019-11-12 6:03 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2012-01-10 7:44 am 
Offline

Joined: 2012-01-10 7:40 am
Posts: 1
I want to test the code coverage for one of the website. I have instrumented the javascripts and able to get the code coverage information using jscoverage.html. We have 100s of automated scripts (QTP scripts) to test the functionality and wanted to run all of them and get the code coverage at the end.
How can i integrate the jscoverage into these scripts ?


Top
 Profile  
Reply with quote  
PostPosted: 2012-06-07 10:46 pm 
Offline

Joined: 2012-06-07 10:24 pm
Posts: 3
I adapted the approach from http://mercenary-code.blogspot.com/2010 ... enium.html .

The basic idea is to load run a HTML page and its scripts in a browser with Selenium WebDriver. Then a small script (the one used in that blog post is overly complicated, JSON.stringify() rules) hands the coverage information to the driver code, which can output in a well-known format (for CI integration), or just do whatever it likes to do.

There also is the jscoverage-server - I have not tried it, but you perhaps should take a look.

HTH,

Jens


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group