<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Is there a tabular representation for code metric tests? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-tabular-representation-for-code-metric-tests/m-p/9622253#M1760930</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rüdiger,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are several metrics in the Code Inspector and some of them are able to produce a tabular output - unfortunately not all of them.&lt;/P&gt;&lt;P&gt;If you take the 'Procedural Metrics' (CL_CI_TEST_METRIC_PROC), this one will give you one single entry in the Code Inspector result tree if you have selected 'Show metrics' as parameter for the check. When double-clicking the entry, a list as you wished will be displayed. &lt;/P&gt;&lt;P&gt;The same holds true for &lt;/P&gt;&lt;P&gt;* Comment Language Metrics&lt;/P&gt;&lt;P&gt;* OO Size Metrics&lt;/P&gt;&lt;P&gt;* ABAP webdynpro Metrics&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The mentioned 'Number of Executable Statements Metrics' (CL_CI_TEST_METRIC_NOES) on the other hand, has no tabular display. With a trick you could achieve it: switch to 'Results table' of the Code Inspector result and then change the layout to display all results parameters. Two of these parameters contain the check's KPIs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards, Randolf &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jul 2013 09:28:23 GMT</pubDate>
    <dc:creator>former_member184455</dc:creator>
    <dc:date>2013-07-11T09:28:23Z</dc:date>
    <item>
      <title>Is there a tabular representation for code metric tests?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-tabular-representation-for-code-metric-tests/m-p/9622251#M1760928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing some tests with all those nice code quality metrics built in in the code inspector. By design of the code inspector, I get a hierarchical (or tabular) list of messages for code objects differing somehow from an expected "norm". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This makes it difficult to evaluate if I do an evaluation over all custom code, since the log will contain thousands of messages. If this is the only way of getting an output from the code metric classes, a tedious post processing is required: Either I'll have to extract the numbers I am interested in with pattern search from the textual output, or I have to look for the database tables containing the results, extracting the right message variables which contain the metric. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am looking for is not messages but a tabular result representation, which for each code object simply lists the code quality numbers - in an ALV grid or something similar: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ex. stmts&amp;nbsp;&amp;nbsp; Halstead metric&amp;nbsp; cyclometric complexity&amp;nbsp;&amp;nbsp; nesting depth&amp;nbsp;&amp;nbsp; Halstead's volume&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Method ZCL_TEST-&amp;gt;DO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 53&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 102&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2'011&lt;/P&gt;&lt;P&gt;Method ZCL_TEST-&amp;gt;PUT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2'012&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know of such a tool? I have sen that for each test there is a class, like CL_CI_TEST_METRIC_NOES, which actually computes the metric. Is there some other framework making use of these classes? Or is SCI the only way to access them? (Meaning that I am damned to eat the "message-style" output of SCI).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rüdiger&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: Switching the radiobutton from "Show Messages" to "Show Metric" is no solution. I still get messages as result (1000s of info messages, instead of warnings for only those code objects which pass the thresholds).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.P.S.: I only see the way to write a report extracting the data from database table SCIREST_PS and putting them into the desired form. But maybe somebody has a solution for this already.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 08:36:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-tabular-representation-for-code-metric-tests/m-p/9622251#M1760928</guid>
      <dc:creator>Ruediger_Plantiko</dc:creator>
      <dc:date>2013-07-11T08:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a tabular representation for code metric tests?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-tabular-representation-for-code-metric-tests/m-p/9622252#M1760929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;About your thoughts on writing a report, a user was able to use &lt;A _jive_internal="true" href="https://answers.sap.com/message/14173307#14173307"&gt;FM SCI_INSPECT_LIST&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 09:27:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-tabular-representation-for-code-metric-tests/m-p/9622252#M1760929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-11T09:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a tabular representation for code metric tests?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-tabular-representation-for-code-metric-tests/m-p/9622253#M1760930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rüdiger,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are several metrics in the Code Inspector and some of them are able to produce a tabular output - unfortunately not all of them.&lt;/P&gt;&lt;P&gt;If you take the 'Procedural Metrics' (CL_CI_TEST_METRIC_PROC), this one will give you one single entry in the Code Inspector result tree if you have selected 'Show metrics' as parameter for the check. When double-clicking the entry, a list as you wished will be displayed. &lt;/P&gt;&lt;P&gt;The same holds true for &lt;/P&gt;&lt;P&gt;* Comment Language Metrics&lt;/P&gt;&lt;P&gt;* OO Size Metrics&lt;/P&gt;&lt;P&gt;* ABAP webdynpro Metrics&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The mentioned 'Number of Executable Statements Metrics' (CL_CI_TEST_METRIC_NOES) on the other hand, has no tabular display. With a trick you could achieve it: switch to 'Results table' of the Code Inspector result and then change the layout to display all results parameters. Two of these parameters contain the check's KPIs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards, Randolf &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 09:28:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-there-a-tabular-representation-for-code-metric-tests/m-p/9622253#M1760930</guid>
      <dc:creator>former_member184455</dc:creator>
      <dc:date>2013-07-11T09:28:23Z</dc:date>
    </item>
  </channel>
</rss>

