Code coverage for automation scripts


Published on

Challenge: As the product is a vast product that provides so regression suite of this was very big. It was taking about 14 days to execute and with every release it was increasing. The main challenge was to keep regression suite comprehensive as well small so that it can be executed many time. Solution Emma was used to find code coverage of product code then redesign the regression suite.

Published in: Technology
1 Comment
  • hi Aakash Tyagi , i liked your PPT. I am also want to used this CC tool thing in my project. can you please explain this using any video.Thanks Nancy
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Code coverage for automation scripts

  1. 1. Presented By: Aakash Tyagi
  2. 2.  Background Challenge Proposed Solution Reporting Benefits Conclusion 2
  3. 3. The product was big product that provide a lot of functionality.The Product was developed in Java language.QA Team was using Rational Function Tool(RFT) for automation ofregression suite. 3
  4. 4. As the product is a vast product that provides a lot of functionality soregression suite of this was very big.It was taking about 14 days to execute and with every release it wasincreasing.Regression suite was not so efficient as it was not catching bug sofrequently.Team was unaware of the amount of code coverage achieved withautomation test suite execution and what parts of application wereexecuted and what parts were not.The main challenge was to keep regression suite comprehensive sothat it is likely to catch all the bugs introduced as well small so that itcan economically be executed many times. 4
  5. 5. EMMA tool was to be used to find out the coverage of Java basedapplications.EMMA was to be used on the server machine where the source codeof the application was executing.RFT scripts were to be executed and got the source code coveragedetails from EMMA tool.
  6. 6. InstrumentationApplication Emma Meta Data By Emma Emma API Instrumented Application Web Browser Web Server RFT Test Report Emma session data Reporting By Coverage ReportEmma Meta Data Emma 6
  7. 7. DEMO
  8. 8.  Emma produce report in HTML format that contain what % of classes, blocks and lines were Emma also provide help to identify the code which were executed and which were not by showing these in different for unexecuted code: 8
  9. 9. Benefits Depending on the coverage results, The selected test cases can be approach provide a added to increase good input to modify code coverage and test script as we can be eliminated know what code we that are not are executing and necessary. what not. It provide input to development team to find if there is code that is no more associated with any requirement (Dead code).This code can be eliminated to reduce effort spend in management this of code.
  10. 10. Conclusion Emma can be used to know the coverage of both Manual and Automation test suite. Emma can be used with both windows and web base applications. We can use Emma with any Functional Testing Tool to find the coverage of . the automation test suite
  11. 11. Thank You