<?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 Units test environment class CL_FUNCTION_TEST_ENVIRONMENT/If_FUNCTION_TEST_ENVIRONMENT does in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-units-test-environment-class-cl-function-test-environment-if-function/m-p/13917407#M2037647</link>
    <description>&lt;P&gt;I don't get it. This BAPI call is wrapped in a method. And I am testing this method in my LTC. How can I remove BAPI. So let's put it simple. I want to test 1 method that has BAPI call. Can I test this method without doubles&lt;/P&gt;</description>
    <pubDate>Wed, 23 Oct 2024 16:42:15 GMT</pubDate>
    <dc:creator>abhishek_nag</dc:creator>
    <dc:date>2024-10-23T16:42:15Z</dc:date>
    <item>
      <title>ABAP Units test environment class CL_FUNCTION_TEST_ENVIRONMENT/If_FUNCTION_TEST_ENVIRONMENT does not</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-units-test-environment-class-cl-function-test-environment-if-function/m-p/13916094#M2037566</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;We are in S4 HANA Private 2020. And I am working on Aunits. And I see all environment classes except&amp;nbsp;CL_FUNCTION_TEST_ENVIRONMENT/If_FUNCTION_TEST_ENVIRONMENT. This does not exist&lt;/P&gt;&lt;P&gt;What could be the reason and what should we do.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 20:33:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-units-test-environment-class-cl-function-test-environment-if-function/m-p/13916094#M2037566</guid>
      <dc:creator>abhishek_nag</dc:creator>
      <dc:date>2024-10-22T20:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Units test environment class CL_FUNCTION_TEST_ENVIRONMENT/If_FUNCTION_TEST_ENVIRONMENT does</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-units-test-environment-class-cl-function-test-environment-if-function/m-p/13916385#M2037627</link>
      <description>&lt;P&gt;Either upgrade to a more recent version, or mock CALL FUNCTION '...' as usual (dao-&amp;gt;call_function-&amp;gt;name or whatever, DAO productive by default, switch to test when running ABAP Unit, via dependency lookup or whatever).&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 04:54:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-units-test-environment-class-cl-function-test-environment-if-function/m-p/13916385#M2037627</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2024-10-23T04:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Units test environment class CL_FUNCTION_TEST_ENVIRONMENT/If_FUNCTION_TEST_ENVIRONMENT does</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-units-test-environment-class-cl-function-test-environment-if-function/m-p/13917210#M2037640</link>
      <description>&lt;P&gt;The Function Module is to update the Bank Master. If I do not do double, then it will create Bank in SAP in Local test environment. Secondly what is DAO &amp;amp; Via dependency look up&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 13:53:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-units-test-environment-class-cl-function-test-environment-if-function/m-p/13917210#M2037640</guid>
      <dc:creator>abhishek_nag</dc:creator>
      <dc:date>2024-10-23T13:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Units test environment class CL_FUNCTION_TEST_ENVIRONMENT/If_FUNCTION_TEST_ENVIRONMENT does</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-units-test-environment-class-cl-function-test-environment-if-function/m-p/13917322#M2037642</link>
      <description>&lt;P&gt;In short, it's a mock, by default it's the productive mode (calls the function module), but with ABAP Unit you inject another behavior. Your DAO instance is based on an interface with two implementations, one for productive use and one for test. DAO and dependency lookup are part of automatic unit tests and are explained anywhere in the Web (not limited to SAP).&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 15:14:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-units-test-environment-class-cl-function-test-environment-if-function/m-p/13917322#M2037642</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2024-10-23T15:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Units test environment class CL_FUNCTION_TEST_ENVIRONMENT/If_FUNCTION_TEST_ENVIRONMENT does</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-units-test-environment-class-cl-function-test-environment-if-function/m-p/13917332#M2037643</link>
      <description>&lt;P&gt;ok. Let me call the FM in test class and see&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 15:18:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-units-test-environment-class-cl-function-test-environment-if-function/m-p/13917332#M2037643</guid>
      <dc:creator>abhishek_nag</dc:creator>
      <dc:date>2024-10-23T15:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Units test environment class CL_FUNCTION_TEST_ENVIRONMENT/If_FUNCTION_TEST_ENVIRONMENT does</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-units-test-environment-class-cl-function-test-environment-if-function/m-p/13917351#M2037644</link>
      <description>&lt;P&gt;If I just call the BAPI with doubles , its creating data in SAP . I do not want any update in Local test class&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 15:32:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-units-test-environment-class-cl-function-test-environment-if-function/m-p/13917351#M2037644</guid>
      <dc:creator>abhishek_nag</dc:creator>
      <dc:date>2024-10-23T15:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Units test environment class CL_FUNCTION_TEST_ENVIRONMENT/If_FUNCTION_TEST_ENVIRONMENT does</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-units-test-environment-class-cl-function-test-environment-if-function/m-p/13917353#M2037645</link>
      <description>&lt;P&gt;I am sorry. One correction.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I just call the BAPI without doubles , its creating data in SAP . I do not want any update in Local test class&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 15:34:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-units-test-environment-class-cl-function-test-environment-if-function/m-p/13917353#M2037645</guid>
      <dc:creator>abhishek_nag</dc:creator>
      <dc:date>2024-10-23T15:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Units test environment class CL_FUNCTION_TEST_ENVIRONMENT/If_FUNCTION_TEST_ENVIRONMENT does</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-units-test-environment-class-cl-function-test-environment-if-function/m-p/13917380#M2037646</link>
      <description>&lt;P&gt;No. For the test mode, don't call the FM.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 16:00:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-units-test-environment-class-cl-function-test-environment-if-function/m-p/13917380#M2037646</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2024-10-23T16:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Units test environment class CL_FUNCTION_TEST_ENVIRONMENT/If_FUNCTION_TEST_ENVIRONMENT does</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-units-test-environment-class-cl-function-test-environment-if-function/m-p/13917407#M2037647</link>
      <description>&lt;P&gt;I don't get it. This BAPI call is wrapped in a method. And I am testing this method in my LTC. How can I remove BAPI. So let's put it simple. I want to test 1 method that has BAPI call. Can I test this method without doubles&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 16:42:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-units-test-environment-class-cl-function-test-environment-if-function/m-p/13917407#M2037647</guid>
      <dc:creator>abhishek_nag</dc:creator>
      <dc:date>2024-10-23T16:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Units test environment class CL_FUNCTION_TEST_ENVIRONMENT/If_FUNCTION_TEST_ENVIRONMENT does</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-units-test-environment-class-cl-function-test-environment-if-function/m-p/13939329#M2037893</link>
      <description>&lt;P&gt;The basic idea is to replace all external calls like the call of a Function module by mocks. So the productive code will call a class which implements the BAPI call in a method via an interface and the unit test calls a mock class sharing the same interface, does nothing, but returning the expected / desired value. Maybe a bit old but in my opinion still worth.&amp;nbsp;&lt;BR /&gt;Especially if you do not have the testdoubles in your system.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://learning.sap.com/courses/writing-testable-code-for-abap?url_id=text-former-openSAP-course" target="_blank"&gt;Writing Testable Code for ABAP (sap.com)&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 14:00:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-units-test-environment-class-cl-function-test-environment-if-function/m-p/13939329#M2037893</guid>
      <dc:creator>ChristianFi</dc:creator>
      <dc:date>2024-11-15T14:00:16Z</dc:date>
    </item>
  </channel>
</rss>

