REG:: Code Coverage Tool

tejateja Member Posts: 78
Hi experts,

I have a small doubt in code coverage Tool .. recently i used this one for one of the transactions , As said in training materials code in black colour is executed and code in red colour is not executed.

But my doubt , If the functions executes more than one time , How to identify that ,this function has executed more than one time.. I din't find any clues..

please suggest me..

Thanks in Advance
Teja

Comments

  • AdministratorAdministrator Member, Moderator, Administrator Posts: 2,499
    [Topic moved from Navision Tips & Tricks to Navision forum]
  • ara3nara3n Member Posts: 9,256
    There is a column in code coverage called No of Hits. Zoom in on the line to see it.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • tejateja Member Posts: 78
    Rashed Thanks for u r reply

    It is very useful for me
    Thanks again

    I have another doubt regarding code coverage tool . When I am seeing the executed code , I found an option that from view menu there is marked only is there .. actually what happens if we select this

    It means it shows only the executed code or is there any reason for that

    Thanks in Advance
    Teja
  • ara3nara3n Member Posts: 9,256
    Codecoverage is not 100 correct. To let the user know which lines it is 100 correct, it marks them. So marked lines have the correct info if it ran or not.
    So if you have



    * If MyCode = '' then begin
    * MyCode :- 'testing';
    Mycode :- 'testing2';
    * end;



    If you look at the example above line one and two are marked. The third line is unmarked. So you can deduce that third line code ran as well..
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • DaveTDaveT Member Posts: 1,039
    ara3n wrote:
    There is a column in code coverage called No of Hits. Zoom in on the line to see it.

    8) Cool tip

    just designed this onto the form

    @Teja
    There is also two hidden column on the code coverage form (565) to show the number of line and the number of line covered.
    Dave Treanor

    Dynamics Nav Add-ons
    http://www.simplydynamics.ie/Addons.html
  • tejateja Member Posts: 78
    ara3n wrote:
    Codecoverage is not 100 correct. To let the user know which lines it is 100 correct, it marks them. So marked lines have the correct info if it ran or not.
    So if you have



    * If MyCode = '' then begin
    * MyCode :- 'testing';
    Mycode :- 'testing2';
    * end;



    If you look at the example above line one and two are marked. The third line is unmarked. So you can deduce that third line code ran as well..

    Hi Rashed ,

    Thanks for Reply.. It is very useful to me....
  • ara3nara3n Member Posts: 9,256
    You are welcome.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.