<?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: How Unit Test works on Open SQL? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-unit-test-works-on-open-sql/m-p/479379#M15725</link>
    <description>&lt;P&gt;I thought the test seam / injection thing was only a workaround to make legacy code testable without rewriting it.&lt;/P&gt;&lt;P&gt;In the example above I would have abstracted the functionality to an interface and implemented it twice, having a productive implementation that uses opensql and a (possibly local) test implementation with dummy data / return values (maybe even using cl_abap_testdouble). Is that not the recommended approach?&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jun 2017 18:20:44 GMT</pubDate>
    <dc:creator>fabianlupa</dc:creator>
    <dc:date>2017-06-13T18:20:44Z</dc:date>
    <item>
      <title>How Unit Test works on Open SQL?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-unit-test-works-on-open-sql/m-p/479371#M15717</link>
      <description>&lt;P&gt;Hi experts, &lt;/P&gt;&lt;P&gt;Say I want a DB handler class as below, in which method is pure Open SQL statement.&lt;/P&gt;&lt;P&gt;CLASS lcl_mara_db_handler IMPLEMETATION.&lt;/P&gt;&lt;P&gt;METHOD update_mara.&lt;/P&gt;&lt;P&gt;  MODIFY mara FROM is_mara.&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;METHOD insert_mara.&lt;/P&gt;&lt;P&gt;  INSERT.........&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;ENDCLASS. &lt;/P&gt;&lt;P&gt;How can I write Unit Test first, as the decency is DB, do I need to consider that a different DB could return a different result? Or not necessary to consider the Unit Test on this leave?&lt;/P&gt;&lt;P&gt;BRs,&lt;/P&gt;&lt;P&gt;Archer&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 03:06:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-unit-test-works-on-open-sql/m-p/479371#M15717</guid>
      <dc:creator>ArcherZhang</dc:creator>
      <dc:date>2017-06-13T03:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: How Unit Test works on Open SQL?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-unit-test-works-on-open-sql/m-p/479372#M15718</link>
      <description>&lt;P&gt;For that, we have test seams and injections.&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sap.com/2015/10/23/abap-news-for-750-test-seams-and-injections" target="test_blank"&gt;https://blogs.sap.com/2015/10/23/abap-news-for-750-test-seams-and-injections&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Since you are with SAP, you might also check the 7.52 documentation for another new possibility.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 04:13:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-unit-test-works-on-open-sql/m-p/479372#M15718</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-06-13T04:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: How Unit Test works on Open SQL?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-unit-test-works-on-open-sql/m-p/479373#M15719</link>
      <description>&lt;P&gt;OpenSQL gives the same result whatever the database is, that's the reason of being of OpenSQL (in answer to "do I need to consider that a different DB could return a different result?") I probably didn't get your point, sorry.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 05:41:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-unit-test-works-on-open-sql/m-p/479373#M15719</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-06-13T05:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: How Unit Test works on Open SQL?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-unit-test-works-on-open-sql/m-p/479374#M15720</link>
      <description>&lt;P&gt;hmm can you tell more about that ("another new possibility"), Horst? &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 05:56:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-unit-test-works-on-open-sql/m-p/479374#M15720</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-06-13T05:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: How Unit Test works on Open SQL?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-unit-test-works-on-open-sql/m-p/479375#M15721</link>
      <description>&lt;P&gt;Nope. I'm not allowed to do so before 7.52 is available outside SAP.&lt;/P&gt;&lt;P&gt;But why not some teasing &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 06:09:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-unit-test-works-on-open-sql/m-p/479375#M15721</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-06-13T06:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: How Unit Test works on Open SQL?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-unit-test-works-on-open-sql/m-p/479376#M15722</link>
      <description>&lt;P&gt;oh yes please please &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 06:22:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-unit-test-works-on-open-sql/m-p/479376#M15722</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-06-13T06:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: How Unit Test works on Open SQL?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-unit-test-works-on-open-sql/m-p/479377#M15723</link>
      <description>&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=vstNm5xzuKM"&gt;Don't Let Me Be Misunderstood ...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The teasing already happened by mentioning 7.52 at all ...&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 06:43:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-unit-test-works-on-open-sql/m-p/479377#M15723</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-06-13T06:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: How Unit Test works on Open SQL?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-unit-test-works-on-open-sql/m-p/479378#M15724</link>
      <description>&lt;P&gt;Hi Sandra,&lt;/P&gt;&lt;P&gt;how to enable (integration) testing with OpenSQL? I would presume the ABAP Unit framework will be enhanced to&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;enable writing a fixture in the DB table 
&lt;/LI&gt;&lt;LI&gt;run the tests&lt;/LI&gt;&lt;LI&gt;delete the test data after LUW.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;What do you think? Horst can vote me down to stop fake news &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;JNN&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 17:27:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-unit-test-works-on-open-sql/m-p/479378#M15724</guid>
      <dc:creator>nomssi</dc:creator>
      <dc:date>2017-06-13T17:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: How Unit Test works on Open SQL?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-unit-test-works-on-open-sql/m-p/479379#M15725</link>
      <description>&lt;P&gt;I thought the test seam / injection thing was only a workaround to make legacy code testable without rewriting it.&lt;/P&gt;&lt;P&gt;In the example above I would have abstracted the functionality to an interface and implemented it twice, having a productive implementation that uses opensql and a (possibly local) test implementation with dummy data / return values (maybe even using cl_abap_testdouble). Is that not the recommended approach?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 18:20:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-unit-test-works-on-open-sql/m-p/479379#M15725</guid>
      <dc:creator>fabianlupa</dc:creator>
      <dc:date>2017-06-13T18:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: How Unit Test works on Open SQL?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-unit-test-works-on-open-sql/m-p/479380#M15726</link>
      <description>&lt;P&gt;I would never have guessed that SAP would be working on another version &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 18:22:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-unit-test-works-on-open-sql/m-p/479380#M15726</guid>
      <dc:creator>pokrakam</dc:creator>
      <dc:date>2017-06-13T18:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: How Unit Test works on Open SQL?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-unit-test-works-on-open-sql/m-p/479381#M15727</link>
      <description>&lt;P&gt;One can "like" a comment, but one can only downvote an answer. One of the many peculiarities of the new SCN platform.&lt;/P&gt;&lt;P&gt;I like your thinking though, perhaps something like DB table overloading?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 18:25:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-unit-test-works-on-open-sql/m-p/479381#M15727</guid>
      <dc:creator>pokrakam</dc:creator>
      <dc:date>2017-06-13T18:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: How Unit Test works on Open SQL?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-unit-test-works-on-open-sql/m-p/479382#M15728</link>
      <description>&lt;P&gt;Yeah, of course, but &lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 18:46:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-unit-test-works-on-open-sql/m-p/479382#M15728</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-06-13T18:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: How Unit Test works on Open SQL?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-unit-test-works-on-open-sql/m-p/479383#M15729</link>
      <description>&lt;P&gt;You're probably right.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 18:54:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-unit-test-works-on-open-sql/m-p/479383#M15729</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-06-13T18:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: How Unit Test works on Open SQL?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-unit-test-works-on-open-sql/m-p/479384#M15730</link>
      <description>&lt;P&gt;Well &lt;SPAN class="mention-scrubbed"&gt;horst.keller&lt;/SPAN&gt; it is official now:&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;ABAP - Keyword Documentation → ABAP - Reference → Processing External Data → ABAP Database Accesses → Open SQL →Open SQL - System Classes → &lt;STRONG&gt;CL_OSQL_REPLACE&lt;/STRONG&gt; - Replacement Service&lt;/P&gt;
  &lt;P&gt;I have found the class in Netweaver 7.51. Is it the same functionality?&lt;/P&gt;
  &lt;P&gt;JNN&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 13:49:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-unit-test-works-on-open-sql/m-p/479384#M15730</guid>
      <dc:creator>nomssi</dc:creator>
      <dc:date>2018-02-09T13:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: How Unit Test works on Open SQL?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-unit-test-works-on-open-sql/m-p/479385#M15731</link>
      <description>&lt;P&gt;&lt;A href="https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abencl_osql_replace.htm" target="test_blank"&gt;https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abencl_osql_replace.htm&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;Point 11 under &lt;A href="https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abennews-752-open_sql.htm" target="test_blank"&gt;https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abennews-752-open_sql.htm&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;So, officially available with 7.52.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 17:44:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-unit-test-works-on-open-sql/m-p/479385#M15731</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2018-02-09T17:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: How Unit Test works on Open SQL?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-unit-test-works-on-open-sql/m-p/479386#M15732</link>
      <description>&lt;P&gt;maybe you can 'select' again after 'ins/del/upd' of D, and then compare the ACT and EXP in your test method. to verify if the update openSQL actually works.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 02:49:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-unit-test-works-on-open-sql/m-p/479386#M15732</guid>
      <dc:creator>former_member269539</dc:creator>
      <dc:date>2019-12-17T02:49:59Z</dc:date>
    </item>
  </channel>
</rss>

