<?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>Question Re: Unit Testing with XSJS. Correct approach? in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/unit-testing-with-xsjs-correct-approach/qaa-p/12238217#M4581899</link>
    <description>&lt;P&gt;Hi &lt;BR /&gt;&lt;BR /&gt;This is my experience in XSJS.. Keep your filename column in a table and then call the select statement in javascript function to check.  so with this less dependency and lines of code.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Aug 2020 19:14:17 GMT</pubDate>
    <dc:creator>Yogananda</dc:creator>
    <dc:date>2020-08-19T19:14:17Z</dc:date>
    <item>
      <title>Unit Testing with XSJS. Correct approach?</title>
      <link>https://community.sap.com/t5/technology-q-a/unit-testing-with-xsjs-correct-approach/qaq-p/12238216</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Scenario:&lt;/STRONG&gt; We’re trying to test our files with the integrated unit testing provided by the WebIDE.&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;doesFileExist.xsjs:&lt;/STRONG&gt; This file is called to check if a file exists (/doesFileExist.xsjs?file=FILENAME.PDF).&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1835556-sap-1.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;doesFileExist.xsjslib:&lt;/STRONG&gt; Provides the functionality for doesFileExist.xsjs (library).&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1835557-sap-2.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;doesFileExistTest.xsjslib:&lt;/STRONG&gt; Test function for doesFileExist.xsjslib&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1835558-sap-3.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;Question: &lt;/STRONG&gt;Unfortunately we don’t know if our approach is correct, nor if it’s best practice. Is it really necessary to create this many files? Are there any improvements we could take?&lt;BR /&gt; &lt;BR /&gt; Many thanks in advance!&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 15:32:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/unit-testing-with-xsjs-correct-approach/qaq-p/12238216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-08-19T15:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unit Testing with XSJS. Correct approach?</title>
      <link>https://community.sap.com/t5/technology-q-a/unit-testing-with-xsjs-correct-approach/qaa-p/12238217#M4581899</link>
      <description>&lt;P&gt;Hi &lt;BR /&gt;&lt;BR /&gt;This is my experience in XSJS.. Keep your filename column in a table and then call the select statement in javascript function to check.  so with this less dependency and lines of code.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 19:14:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/unit-testing-with-xsjs-correct-approach/qaa-p/12238217#M4581899</guid>
      <dc:creator>Yogananda</dc:creator>
      <dc:date>2020-08-19T19:14:17Z</dc:date>
    </item>
  </channel>
</rss>

