# Code coverage

**URL:** <https://techcommunity.softwareag.com/t/code-coverage/60140>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Linux\
**Created:** [September 5, 2005, 5:42pm UTC](https://techcommunity.softwareag.com/t/code-coverage/60140 "2005-09-05T17:42:32Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![TLis](https://avatars.discourse-cdn.com/v4/letter/t/49beb7/32.png) [@TLis](https://techcommunity.softwareag.com/u/TLis)\
**Post date:** [September 5, 2005, 5:42pm UTC](https://techcommunity.softwareag.com/t/code-coverage/60140/1 "2005-09-05T17:42:32Z")

</div>

I am new to Natural. Are there any code coverage analysis tools available for Natural language?

TLis

---

<div class="post-metadata">

**Author:** ![TLis](https://avatars.discourse-cdn.com/v4/letter/t/49beb7/32.png) [@TLis](https://techcommunity.softwareag.com/u/TLis)\
**Post date:** [September 13, 2005, 1:28pm UTC](https://techcommunity.softwareag.com/t/code-coverage/60140/2 "2005-09-13T13:28:14Z")

</div>

Hmm … still nothing ☹

I can perform the code coverage analysis in C, C++, or Java, but now I need something similar in Natural. Does anybody know about some tools, that would help me to do it?

Or … maybe you don’t know, what the code coverage analysis is? :twisted:

TLis

---

<div class="post-metadata">

**Author:** ![Karlheinz\_Kronauer](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/karlheinz_kronauer/32/134_2.png) [@Karlheinz\_Kronauer](https://techcommunity.softwareag.com/u/Karlheinz_Kronauer)\
**Post date:** [September 13, 2005, 4:45pm UTC](https://techcommunity.softwareag.com/t/code-coverage/60140/3 "2005-09-13T16:45:08Z")

</div>

We provide a product called Natural Engineer that you can use to  
calculate the code coverage on source code (!) base, not on run time.  
For example, you have statistics, how many times Natural statements  
appear in the source code, or you can search for certain statement usage on object or on application level.  
I addition, you have McCabe and Halstead complexity metrics available, based on number of decision points, operands and operators in the programs.  
best regards Karlheinz

---

<div class="post-metadata">

**Author:** ![TLis](https://avatars.discourse-cdn.com/v4/letter/t/49beb7/32.png) [@TLis](https://techcommunity.softwareag.com/u/TLis)\
**Post date:** [September 13, 2005, 7:58pm UTC](https://techcommunity.softwareag.com/t/code-coverage/60140/4 "2005-09-13T19:58:35Z")

</div>

Dear Karlheinz,

Thank you very much for your reply.

If I understand you corectly, Natural Engineer measures the statistics based on the overall source code base, so for example, I cannot just run a test program, and obtain the statistics only of the program, subprograms, subroutines, etc., THAT HAVE BEEN USED to execute the test? I get the statistics over ALL source files, not necessarily those, that are required for the given functionality currently under testing. Right?

Since we are doing the analysing on a module basis, it is important to us to be able to restrict the statistics to the given test program and all dependant items, as described above.

Moreover, I would need the statistics of the source code lines (excluding define data blocks and comments), that were executed during the test. It is not the same, as having the statistics of the given Natural statements.

It is nice to have the McCabe complexity metrics available. On what level such metrics is evaluated? On the program level, subprogram level, subroutine … ?

One more information: I need this tool to be able to run on Windows XP …

Best regards,  
TLis

---

<div class="post-metadata">

**Author:** ![Karlheinz\_Kronauer](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/karlheinz_kronauer/32/134_2.png) [@Karlheinz\_Kronauer](https://techcommunity.softwareag.com/u/Karlheinz_Kronauer)\
**Post date:** [September 16, 2005, 2:26pm UTC](https://techcommunity.softwareag.com/t/code-coverage/60140/5 "2005-09-16T14:26:08Z")

</div>

Hi TLis,  
With Natural Engineer, you can run the analysis on object level or for  
the complete application. Even you can build groups of source objects, selections regarding the object types or a selection with wild card notation  
on the object name.  
But, as I told, its a source code analysis and not a runtime analysis.  
The McCabe metrics, you will get on object level, subroutine, program, etc level .  
And , Natural Engineer is available on windows XP. You have either to  
download/systrans) the source code or if you are usingg SPoD you can access the code directly from the systemfile.  
best regards Karlheinz

---

<div class="post-metadata">

**Author:** ![TLis](https://avatars.discourse-cdn.com/v4/letter/t/49beb7/32.png) [@TLis](https://techcommunity.softwareag.com/u/TLis)\
**Post date:** [September 19, 2005, 1:20pm UTC](https://techcommunity.softwareag.com/t/code-coverage/60140/6 "2005-09-19T13:20:11Z")

</div>

Hi again,

Thanks for the information. Probably I should take a closer look at Natural Enginneer … 🙂

Best regards,  
TLis

---

<div class="post-metadata">

**Author:** ![Karlheinz\_Kronauer](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/karlheinz_kronauer/32/134_2.png) [@Karlheinz\_Kronauer](https://techcommunity.softwareag.com/u/Karlheinz_Kronauer)\
**Post date:** [September 22, 2005, 6:59pm UTC](https://techcommunity.softwareag.com/t/code-coverage/60140/7 "2005-09-22T18:59:03Z")

</div>

Hi Tlis,  
Good idea, that i would recommend as well.  
BTW - you can order a free trial copy of Natural Engineer as  
part of the Natural Productivity Package through the Software AG -  
Products - Natural webside.  
best regards Karlheinz

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [September 22, 2005, 9:54pm UTC](https://techcommunity.softwareag.com/t/code-coverage/60140/8 "2005-09-22T21:54:08Z")

</div>

You can order the trial copy here 😉

[url][http://www1.softwareag.com/Corporate/Solutions/ets/Dev\_Prod/npp\_order.asp[/url]](http://www1.softwareag.com/Corporate/Solutions/ets/Dev_Prod/npp_order.asp%5B/url%5D)

---

<div class="post-metadata">

**Author:** ![TLis](https://avatars.discourse-cdn.com/v4/letter/t/49beb7/32.png) [@TLis](https://techcommunity.softwareag.com/u/TLis)\
**Post date:** [September 26, 2005, 1:25pm UTC](https://techcommunity.softwareag.com/t/code-coverage/60140/9 "2005-09-26T13:25:37Z")

</div>

Thanks!

Best regards,  
TLis

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:40pm UTC](https://techcommunity.softwareag.com/t/code-coverage/60140/10 "2021-04-02T14:40:15Z")

</div>


