<?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: abap unit how to?? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-how-to/m-p/8902203#M1689934</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;allthough this might be off topic,&lt;/P&gt;&lt;P&gt;I am dying to know, how you applied these nice CODE tags to your reply.&lt;/P&gt;&lt;P&gt;I already tried the old way ( using {code} ), but did not manage to get anything working.&lt;/P&gt;&lt;P&gt;The style combobox in this editor does not show a code-style, so I assume you need to do some html tricks ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would really appreciate a hint on how you managed that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Volker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jul 2012 17:54:19 GMT</pubDate>
    <dc:creator>volker_borowski2</dc:creator>
    <dc:date>2012-07-31T17:54:19Z</dc:date>
    <item>
      <title>abap unit how to??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-how-to/m-p/8902199#M1689930</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 would like to know how to create ABAP unit for the developed ABAP objects?i saw in couple of sites but unable to understand the root that is if anyone have any real time specific example or any idea on this can u throw some light on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i was asked to prepare couple of test cases for some objects and need some inputs on this regard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 07:24:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-how-to/m-p/8902199#M1689930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-31T07:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: abap unit how to??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-how-to/m-p/8902200#M1689931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Moorthy, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I once wrote a Wiki for ABAP Units&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/display/ABAP/ABAP+Unit+Best+Practices"&gt;http://wiki.sdn.sap.com/wiki/display/ABAP/ABAP+Unit+Best+Practices&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check it. The code template therein will help you to quickly start with ABAP unit test in your own code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;Rüdiger&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 07:45:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-how-to/m-p/8902200#M1689931</guid>
      <dc:creator>Ruediger_Plantiko</dc:creator>
      <dc:date>2012-07-31T07:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: abap unit how to??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-how-to/m-p/8902201#M1689932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Hi Rüdiger&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;I have gone through the link. can u give me some code on how u have checked the subroutine call and other tests that u have done.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;i need a scenario -so that i can start developing the same for my scenario.what and how u have checked the subroutine or other fm calls.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;thanks&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 07:59:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-how-to/m-p/8902201#M1689932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-31T07:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: abap unit how to??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-how-to/m-p/8902202#M1689933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Moorthy, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here comes a kind of hello world version, which already shows you&amp;nbsp; some important things.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I don't test the report, I don't emulate input, I don't call the code at start-of-selection, I don't test the spool output (WRITE). I only test the functionality&lt;/LI&gt;&lt;LI&gt;For this, I have separated the functionality in a &lt;EM&gt;parametrized &lt;/EM&gt;subroutine add (or method, or function module)&lt;/LI&gt;&lt;LI&gt;Run the unit test in SE38 with "Program -&amp;gt; Test -&amp;gt; Unit Test". There is also the option of a background run (with the code inspector), and as obstacle for release of a transport order (very useful!)&lt;/LI&gt;&lt;LI&gt;The more code you have, the more tests you will have. You have two players playing against each others: Your code portfolio and your test suites testing this code. Both are equally important (in earlier times, I neglected the test part and worked with throw-away tests. This was bad.)&lt;/LI&gt;&lt;LI&gt;Usually, each test has three parts: 1.) &lt;STRONG&gt;Setup&lt;/STRONG&gt;: Prepare the data for a call. 2.) &lt;STRONG&gt;Execution&lt;/STRONG&gt;: Call the module (routine/method...) 3.) &lt;STRONG&gt;Verification&lt;/STRONG&gt;: The result data are as expected.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's all. Easy, but very useful!&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;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;*&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt;*&amp;amp; Report&amp;nbsp; ZZ_ADD_TWO_NUMBERS&lt;BR /&gt;*&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt;report&amp;nbsp; zz_add_two_numbers.&lt;/P&gt;&lt;P&gt;parameters: p_first type i,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p_second type i.&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp; perform start.&lt;/P&gt;&lt;P&gt;* --- Delegates the computational part to routine "add"&lt;BR /&gt;form start.&lt;BR /&gt;&amp;nbsp; data: lv_result type i.&lt;BR /&gt;&amp;nbsp; perform add using p_first p_second&lt;BR /&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; changing lv_result.&lt;BR /&gt;&amp;nbsp; write: / p_first, '+', p_second, '=', lv_result.&lt;BR /&gt;endform.&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; "start&lt;/P&gt;&lt;P&gt;* --- Separate the computational part&lt;BR /&gt;form add using iv_first type i&lt;BR /&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; iv_second type i&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; changing ev_result type i.&lt;BR /&gt;&amp;nbsp; ev_result = iv_first + iv_second.&lt;BR /&gt;endform.&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; "add&lt;/P&gt;&lt;P&gt;*&lt;BR /&gt;class lcl_test definition for testing&amp;nbsp; " #AU Risk_Level Harmless&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inheriting from cl_aunit_assert. " #AU Duration Short&lt;/P&gt;&lt;P&gt;&amp;nbsp; private section.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; methods test_1_plus_1 for testing.&lt;/P&gt;&lt;P&gt;endclass.&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; "lcl_test DEFINITION&lt;/P&gt;&lt;P&gt;*&lt;BR /&gt;class lcl_test implementation.&lt;BR /&gt;*&lt;BR /&gt;&amp;nbsp; method test_1_plus_1.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; data: lv_result type i.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; perform add using 1 1 changing lv_result.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; assert_equals( act = lv_result&lt;BR /&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; exp = 2 ).&lt;BR /&gt;&amp;nbsp; endmethod.&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; "test_1_plus_1&lt;BR /&gt;endclass.&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; "lcl_test IMPLEMENTATION&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 08:32:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-how-to/m-p/8902202#M1689933</guid>
      <dc:creator>Ruediger_Plantiko</dc:creator>
      <dc:date>2012-07-31T08:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: abap unit how to??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-how-to/m-p/8902203#M1689934</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;allthough this might be off topic,&lt;/P&gt;&lt;P&gt;I am dying to know, how you applied these nice CODE tags to your reply.&lt;/P&gt;&lt;P&gt;I already tried the old way ( using {code} ), but did not manage to get anything working.&lt;/P&gt;&lt;P&gt;The style combobox in this editor does not show a code-style, so I assume you need to do some html tricks ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would really appreciate a hint on how you managed that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Volker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 17:54:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-how-to/m-p/8902203#M1689934</guid>
      <dc:creator>volker_borowski2</dc:creator>
      <dc:date>2012-07-31T17:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: abap unit how to??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-how-to/m-p/8902204#M1689935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Volker, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I learned this from Suhas. The "syntax highlighting"&amp;nbsp; is available only in the "advanced editor". Above the text editor for notes, you'll find the link "use advanced editor". Follow it and continue writing in the advanced editor. There you find a button with "&amp;gt;&amp;gt;" on it. When you click it, you find out that it is a multi-select buton. Choose "Syntax highlighting", and then "plain", since there is no syntax highlighting for ABAP yet. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the {code} tag still exists, but you can only use it in other areas of the SCN, like e.g. wiki's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I am not happy with the current state:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;Every &lt;/EM&gt;coder should know that code feels comfortable only when written in a non-proportional font. &lt;/LI&gt;&lt;LI&gt;There is no ABAP syntax highlighting. What a pity for an ABAP forum.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it continues to look non-professional.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2012 18:56:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-how-to/m-p/8902204#M1689935</guid>
      <dc:creator>Ruediger_Plantiko</dc:creator>
      <dc:date>2012-08-02T18:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: abap unit how to??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-how-to/m-p/8902205#M1689936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;... oh, I forgot: And the&lt;EM&gt; line numbering &lt;/EM&gt;is ****, too: &lt;SPAN __jive_emoticon_name="angry" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/843/images/emoticons/angry.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/125941" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2012 19:05:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-how-to/m-p/8902205#M1689936</guid>
      <dc:creator>Ruediger_Plantiko</dc:creator>
      <dc:date>2012-08-02T19:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: abap unit how to??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-how-to/m-p/8902206#M1689937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How bad is that. I already checked the advanced editor, but when &lt;/P&gt;&lt;P&gt;"hovering" above "&amp;gt;&amp;gt;" it only said "INSERT", SO I NEVER PRESSED IT!&lt;/P&gt;&lt;P&gt;Guess it would be helpfull if there would be a combobox arrow like near to the "Style" button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have to try that ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gotta check that out :-)&lt;BR /&gt; &lt;BR /&gt; Well, linenumbering seems to work&lt;BR /&gt; &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just duplicating lines for no reason. But I'll work on that later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Volker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2012 12:55:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-how-to/m-p/8902206#M1689937</guid>
      <dc:creator>volker_borowski2</dc:creator>
      <dc:date>2012-08-03T12:55:04Z</dc:date>
    </item>
  </channel>
</rss>

