<?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 testing for smartforms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-testing-for-smartforms/m-p/12192042#M1980859</link>
    <description>&lt;P&gt;My answer is the same as previous one.&lt;/P&gt;&lt;P&gt;Otherwise, doing it manually is the cheapest solution.&lt;/P&gt;&lt;P&gt;There is another (non SAP) solution, to do a comparison by image, but I don't know what tools exist, how they work and how they can be integrated with SAP.&lt;/P&gt;</description>
    <pubDate>Wed, 20 May 2020 12:27:36 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2020-05-20T12:27:36Z</dc:date>
    <item>
      <title>ABAP unit testing for smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-testing-for-smartforms/m-p/12192036#M1980853</link>
      <description>&lt;P&gt;For a smartform driver program, I am implementing unit test class. It is working till the point the data is passed to the smartform function module.&lt;/P&gt;
  &lt;P&gt;I wanted to know is there any way to check the smartform elements, like for eg: &lt;/P&gt;
  &lt;UL&gt;
   &lt;LI&gt;programmatically can we check if two windows are overlapping? &lt;/LI&gt;
   &lt;LI&gt;Or any element missing to populate? &lt;/LI&gt;
   &lt;LI&gt;Or any window is not at the position as per requirement?&lt;/LI&gt;
  &lt;/UL&gt;</description>
      <pubDate>Tue, 19 May 2020 11:23:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-testing-for-smartforms/m-p/12192036#M1980853</guid>
      <dc:creator>vinitha_raj3</dc:creator>
      <dc:date>2020-05-19T11:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP unit testing for smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-testing-for-smartforms/m-p/12192037#M1980854</link>
      <description>&lt;P&gt;That would be an interesting tool but I've never heard of it.&lt;/P&gt;&lt;P&gt;Moreover, it depends on what you really want to test. Is it (1) the driver or (2) the smart form itself?&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;You just need to check the values of parameters sent to the smart form&lt;/LI&gt;&lt;LI&gt;You may execute the smart form, retrieve the result as OTF format and check more or less easily the field positions, texts, etc.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Tue, 19 May 2020 11:57:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-testing-for-smartforms/m-p/12192037#M1980854</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-05-19T11:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP unit testing for smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-testing-for-smartforms/m-p/12192038#M1980855</link>
      <description>&lt;P&gt;Thanks for replying.&lt;/P&gt;&lt;P&gt;I want to test the smartform.  &lt;/P&gt;&lt;P&gt;Imagine some one else has created the smartform and I don't want to go and check it manually.&lt;/P&gt;&lt;P&gt;I want a tool to do it and give me results, saying all are as per requirement.&lt;/P&gt;&lt;P&gt;For other types of programs, I can do it with ABAP test class.  But smartform, seems like somebody has to manually verify it.&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 09:53:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-testing-for-smartforms/m-p/12192038#M1980855</guid>
      <dc:creator>vinitha_raj3</dc:creator>
      <dc:date>2020-05-20T09:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP unit testing for smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-testing-for-smartforms/m-p/12192039#M1980856</link>
      <description>&lt;P&gt;Thanks for replying.&lt;/P&gt;&lt;P&gt;Actually I think you didn't get my query.&lt;/P&gt;&lt;P&gt;Imagine some one else has created the smartform and I don't want to go and check it manually.&lt;/P&gt;&lt;P&gt;I want a tool to do it and give me results, saying all are as per requirement.&lt;/P&gt;&lt;P&gt;For other types of programs, I can do it with ABAP test class. But smartform, seems like somebody has to manually verify it.&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 09:54:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-testing-for-smartforms/m-p/12192039#M1980856</guid>
      <dc:creator>vinitha_raj3</dc:creator>
      <dc:date>2020-05-20T09:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP unit testing for smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-testing-for-smartforms/m-p/12192040#M1980857</link>
      <description>&lt;P&gt;I saw formulaire test tool, but it was outside from SAP. &lt;/P&gt;&lt;P&gt;I think ABAP Unit could not really used in Smartforms, because smartforms are not real ABAP &amp;amp; are definitively not Clean Coded. &lt;/P&gt;&lt;P&gt;What you could test, is the XML output of the form. But it is only a test about CHAR. &lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 11:37:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-testing-for-smartforms/m-p/12192040#M1980857</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2020-05-20T11:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP unit testing for smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-testing-for-smartforms/m-p/12192041#M1980858</link>
      <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;vinitha.raj3&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;There is a class called CL_SSF_FB_SMART_FORM which allows for some basic operations on a Smart Form. I have not used it, but it seems that it's possible to execute a CHECK on the loaded form and return its XML structure. This could be a good start for Smart Form tests.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ATA:
  lo_ixml         TYPE REF TO if_ixml,
  lo_xml_document TYPE REF TO if_ixml_document.

lo_ixml = cl_ixml=&amp;gt;create( ).
lo_xml_document = lo_ixml-&amp;gt;create_document( ).

DATA(lo_sf) = NEW cl_ssf_fb_smart_form( ).
TRY.
    CALL METHOD lo_sf-&amp;gt;load
      EXPORTING
*       im_active      = SPACE
        im_formname    = 'THE_NAME_OF_THE_SMART_FORM'
*       im_language    = SY-LANGU
      IMPORTING
        ex_fmnumb      = DATA(lv_fmnumb)
        ex_fmnumb_test = DATA(lv_fmnumb_test).
  CATCH cx_ssf_fb .
    RETURN.
ENDTRY.

" lo_sf-&amp;gt;check( ). &amp;lt;-- method to check the Smart Form

CALL METHOD lo_sf-&amp;gt;xml_download
  EXPORTING
    parent   = lo_xml_document
  CHANGING
    document = lo_xml_document.&lt;/CODE&gt;&lt;/PRE&gt;
Regards,&lt;BR /&gt;Mateusz</description>
      <pubDate>Wed, 20 May 2020 12:05:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-testing-for-smartforms/m-p/12192041#M1980858</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2020-05-20T12:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP unit testing for smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-testing-for-smartforms/m-p/12192042#M1980859</link>
      <description>&lt;P&gt;My answer is the same as previous one.&lt;/P&gt;&lt;P&gt;Otherwise, doing it manually is the cheapest solution.&lt;/P&gt;&lt;P&gt;There is another (non SAP) solution, to do a comparison by image, but I don't know what tools exist, how they work and how they can be integrated with SAP.&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 12:27:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-testing-for-smartforms/m-p/12192042#M1980859</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-05-20T12:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP unit testing for smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-testing-for-smartforms/m-p/12192043#M1980860</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;frdric.girod&lt;/SPAN&gt; The OTF output also shows the positions, not only the texts. And also frames, colors, fonts and so on (but it may still differ from the final rendering...) OTF is a very simple format, it's easy to analyze.&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 12:33:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-testing-for-smartforms/m-p/12192043#M1980860</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-05-20T12:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP unit testing for smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-testing-for-smartforms/m-p/12192044#M1980861</link>
      <description>&lt;P&gt;With the code above, you'll get the definition of the Smart Form (in format "SFXML"), I think the question is more about testing the form output with some input data.&lt;/P&gt;&lt;P&gt;I think that testing the Smart Form description is as useless as testing the existence of methods A and B of a given class...&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 13:01:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-testing-for-smartforms/m-p/12192044#M1980861</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-05-20T13:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP unit testing for smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-testing-for-smartforms/m-p/12192045#M1980862</link>
      <description>&lt;P&gt;Hi Sandra,&lt;/P&gt;&lt;P&gt;I know it's a definition. But definition should be a start in this case.&lt;/P&gt;&lt;P&gt;If the definition is incorrect, e.g.: one of the windows is in the wrong place, then the test has already failed. Hasn't it?&lt;/P&gt;Regards,&lt;BR /&gt;Mateusz</description>
      <pubDate>Wed, 20 May 2020 13:12:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-testing-for-smartforms/m-p/12192045#M1980862</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2020-05-20T13:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP unit testing for smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-testing-for-smartforms/m-p/12192046#M1980863</link>
      <description>&lt;P&gt;I think it's just a useless test, as I said. But anyway, no tool exists (except the one mentioned by Frederic), so I think the only valid answer for this question is currently that it would cost too much to do this kind of test compared to the gain.&lt;/P&gt;&lt;P&gt;My two cents is that the only affordable test is the invoking of the smart form with given input parameters and verify portions of the OTF output. That's quite easy to do (but of course, the smart form should be written such a way to not contain ABAP code with dependencies, all external data used by the smart form should be passed via parameters, otherwise the cost increases).&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 17:18:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-unit-testing-for-smartforms/m-p/12192046#M1980863</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-05-20T17:18:05Z</dc:date>
    </item>
  </channel>
</rss>

