<?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: Organizing source code for Unit Tests of a function group in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/organizing-source-code-for-unit-tests-of-a-function-group/m-p/6140204#M1366866</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the top include of a function group must contain definition only! It is highly recommended not to put there any executable code as forms, methods whatever.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just add an include to the function group and put test class definition and test class implementation into this new include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;  Klaus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One can add an include by  the following procdure.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;double click on the function group in SE80 =&amp;gt; a popup will appear&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;confirm the popup =&amp;gt; the function group main include will be opended in the edior&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;there should be some include statetments and some standard comments for adding includes with a certain naming pattern&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;uncomment such a line and complete the pattern (adding 2 digits)&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;save, double click on the new line =&amp;gt; a warning (see bottom line) will be raised&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;confirm the warning by pressing RETURN =&amp;gt; new include gets created and opened in editor&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 10 Oct 2009 15:25:16 GMT</pubDate>
    <dc:creator>former_member183804</dc:creator>
    <dc:date>2009-10-10T15:25:16Z</dc:date>
    <item>
      <title>Organizing source code for Unit Tests of a function group</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/organizing-source-code-for-unit-tests-of-a-function-group/m-p/6140203#M1366865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use abap unit to test a group of function modules contained in a fucntion group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually I do add the local class definition and implementation to the top include of the function group, because I do have problems in creating a new include containing the test classes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the recommendation for organihzing unit test for a function module. How can I name the include correctly ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2009 12:33:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/organizing-source-code-for-unit-tests-of-a-function-group/m-p/6140203#M1366865</guid>
      <dc:creator>michael_habermueller</dc:creator>
      <dc:date>2009-08-31T12:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Organizing source code for Unit Tests of a function group</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/organizing-source-code-for-unit-tests-of-a-function-group/m-p/6140204#M1366866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the top include of a function group must contain definition only! It is highly recommended not to put there any executable code as forms, methods whatever.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just add an include to the function group and put test class definition and test class implementation into this new include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;  Klaus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One can add an include by  the following procdure.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;double click on the function group in SE80 =&amp;gt; a popup will appear&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;confirm the popup =&amp;gt; the function group main include will be opended in the edior&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;there should be some include statetments and some standard comments for adding includes with a certain naming pattern&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;uncomment such a line and complete the pattern (adding 2 digits)&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;save, double click on the new line =&amp;gt; a warning (see bottom line) will be raised&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;confirm the warning by pressing RETURN =&amp;gt; new include gets created and opened in editor&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Oct 2009 15:25:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/organizing-source-code-for-unit-tests-of-a-function-group/m-p/6140204#M1366866</guid>
      <dc:creator>former_member183804</dc:creator>
      <dc:date>2009-10-10T15:25:16Z</dc:date>
    </item>
  </channel>
</rss>

