SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Member
    Join Date
    Jun 2002
    Location
    uk
    Posts
    30
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    code coverage for automated tests?

    I'm new to code coverage, and have been asked to investigate the idea of using a code coverage tool for automated tests (currently written in VBa, using TestPartner).
    Is this possible to do?
    If not, is a tool available for code coverage against manual tests - or is it only suitable for unit tests written by developers?

    (Any help would be appreciated)...
    Thanks in advance.

  2. #2
    Member
    Join Date
    Jul 2005
    Location
    Chicago
    Posts
    37
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: code coverage for automated tests?

    Compuware's website has information on DevPartner Studio, which includes code coverage. There's a .Net flavor and a Java flavor. Many of my TestPartner customers use DevPartner during script execution to get coverage information.

    (In a build process you could also try ncover, an open source tool)

    Caveat - I'm a salesperson for Compuware.
    you can't talk yourself out of problems you behave yourself into

  3. #3
    Junior Member
    Join Date
    Mar 2006
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: code coverage for automated tests?

    You can use any open source code coverage tool. Check out :
    http://java-source.net/open-source/code-coverage
    for open source code coverage tools for applications built using Java technology.
    You can use these coverage tools to generate code coverage for either unit tests or manual tests.

  4. #4
    Junior Member
    Join Date
    Apr 2006
    Location
    Hyderabad
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: code coverage for automated tests?

    Hi,

    There is a tool called EMMA which is a very good Java code coverage tool.It is open source as well.
    Just need to download.That is all.
    And the set up time is very less too.
    Regards,
    Prashanti

  5. #5
    Member
    Join Date
    Jun 2004
    Posts
    74
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: code coverage for automated tests?

    I think code coverage analysis is mainly in unit test, when developers write some unit test cases to test their programs, it means that you can use some tools to analysis code coverage, I don't konw how to effectively do code coverage during IT or ST phase, I have used this tool - clever to analysis code coverage for java program, it also has other versions for .net or other languages, but it isn't free.

  6. #6
    Senior Member
    Join Date
    Apr 2003
    Location
    Wisconsin, USA
    Posts
    5,338
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: code coverage for automated tests?

    Originally posted by F1nut:
    ...have been asked to investigate the idea of using a code coverage tool for automated tests (currently written in VBa, using TestPartner).
    <font size="2" face="Verdana, Arial, Helvetica">Code coverage is not a QA test, per se. It is a development test. Code coverage does nothing to tell you if functional requirements are being implemented correctly. It simply tells you if you have dead code or if all the paths of the code have been exercised. Useless in and of itself.

    The real question in my mind is why would anyone ask you to automate a code coverage test? Automation implies exercising the GUI, which is usually a black box exercise. Code coverage is by definition a white box exercise. Automation is probably not the best tool to use for this test.

  7. #7
    Member
    Join Date
    Jun 2002
    Location
    uk
    Posts
    30
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: code coverage for automated tests?

    Thanks for all your replies.
    I believe the idea was not to automate code coverage, but to actually find out how much of the functionality in the product (written by developers) is actually covered by our automated testing.

    From reading your answers, it would seem this is pretty much impossible - so I guess I'll have to write some kind of spreadsheet listing the functional areas + a 'covered by an automated test: yes/no'.

  8. #8
    Senior Member
    Join Date
    Apr 2003
    Location
    Wisconsin, USA
    Posts
    5,338
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: code coverage for automated tests?

    I think you are on the right path. There are tracking tools that will do this for you in a more fancy way than a spreadsheet, but the process is generally the same.

  9. #9
    Junior Member
    Join Date
    Feb 2005
    Location
    coimbatore
    Posts
    21
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: code coverage for automated tests?

    here is my suggestion
    code coverage is the analysis method that determines which part of the code has been executed correctly and which part have not been executed by using test case suite is the phenomena is called code coverage.
    here is basic checklist for code coverage

    check the following
    1. statement
    2. decision
    3. condition
    4. loop
    5. path
    Regards,
    Pugalzhenthi.

  10. #10
    Moderator Joe Strazzere's Avatar
    Join Date
    May 2000
    Location
    USA
    Posts
    13,170
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: code coverage for automated tests?

    Originally posted by QA_Pugal:
    code coverage is the analysis method that determines which part of the code has been executed correctly
    <font size="2" face="Verdana, Arial, Helvetica">???

    Code Coverage has nothing to do with "correctly".
    Joe Strazzere
    Visit my website: AllThingsQuality.com to learn more about quality, testing, and QA!

 

 
Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 5.56%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 12:48 AM.

Copyright BetaSoft Inc.