<?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: ReferenceError: sap is not defined in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/referenceerror-sap-is-not-defined/qaa-p/14263885#M4931291</link>
    <description>&lt;P&gt;Let me check and get back to you&lt;BR /&gt;&lt;BR /&gt;I have checked it not it is failing with script error&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;any idea that we can resolve this as well&lt;BR /&gt;&lt;BR /&gt;below is the error message&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Chrome Headless 139.0.0.0 (Linux 0.0.0) ERROR &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;info karmaExecuteTests - Script error. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;info karmaExecuteTests - at :0:0&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;let me know if you need any more info&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Nov 2025 06:48:55 GMT</pubDate>
    <dc:creator>saibhanu</dc:creator>
    <dc:date>2025-11-11T06:48:55Z</dc:date>
    <item>
      <title>ReferenceError: sap is not defined</title>
      <link>https://community.sap.com/t5/technology-q-a/referenceerror-sap-is-not-defined/qaq-p/14262906</link>
      <description>&lt;P&gt;Hello Experts,&lt;BR /&gt;&lt;BR /&gt;our pipeline is failing with below error in the karma step&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;as we are using piper template to run our pipeline we are using KarmaExecutetests step&lt;BR /&gt;&lt;BR /&gt;when we are the tests in local it is running fine but when we run in the pipeline it failing with below error&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Chrome Headless 139.0.0.0 (Linux 0.0.0) ERROR &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;info karmaExecuteTests - Uncaught ReferenceError: sap is not defined &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;info karmaExecuteTests - at webapp/test/unit/unitTests.qunit.js:1:1 &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;info karmaExecuteTests - &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;info karmaExecuteTests - ReferenceError: sap is not defined &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;info karmaExecuteTests - at webapp/test/unit/unitTests.qunit.js:1:1&lt;BR /&gt;&lt;BR /&gt;please find the logs for better understanding attached&lt;BR /&gt;below is unittest.qunit.html file&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;

&amp;lt;head&amp;gt;
	&amp;lt;title&amp;gt;Unit tests&amp;lt;/title&amp;gt;
	&amp;lt;meta http-equiv='X-UA-Compatible' content='IE=edge'&amp;gt;
	&amp;lt;meta charset="utf-8"&amp;gt;

	&amp;lt;script 
		id="sap-ui-bootstrap"
		src="../../../../resources/sap-ui-core.js"
		data-sap-ui-libs="sap.m"
		data-sap-ui-resourceroots='{
			"exemptiontool.exemptiontool": "../../",
			"test/unit": "./"
		}'&amp;gt;
		&amp;lt;/script&amp;gt;

	&amp;lt;script src="../../../../resources/sap/ui/qunit/qunit-css.js"&amp;gt;&amp;lt;/script&amp;gt;
	&amp;lt;script src="../../../../resources/sap/ui/thirdparty/qunit.js"&amp;gt;&amp;lt;/script&amp;gt;
	&amp;lt;script src="../../../../resources/sap/ui/qunit/qunit-junit.js"&amp;gt;&amp;lt;/script&amp;gt;
	&amp;lt;script src="../../../../resources/sap/ui/qunit/qunit-coverage.js"&amp;gt;&amp;lt;/script&amp;gt;

	&amp;lt;script&amp;gt;
		QUnit.config.autostart = false;

		sap.ui.require(
			["test/unit/allTests"],
			function () {
				QUnit.start();
			}
		);
	&amp;lt;/script&amp;gt;

&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;
	&amp;lt;ol id="qunit-tests"&amp;gt;&amp;lt;/ol&amp;gt;
	&amp;lt;div id="qunit-fixture"&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;

&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;below is opa5.qunit.html&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;Integration tests&amp;lt;/title&amp;gt;
    &amp;lt;meta charset="utf-8"&amp;gt;

    &amp;lt;script id="sap-ui-bootstrap"
            src="../../../../resources/sap-ui-core.js"
            data-sap-ui-theme='sap_fiori_3'
            data-sap-ui-resourceroots='{
                "exemptiontool.exemptiontool": "../../"
            }'
            data-sap-ui-animation="false"
            data-sap-ui-compatVersion="edge"
            data-sap-ui-async="true"&amp;gt;
    &amp;lt;/script&amp;gt;

    &amp;lt;link rel="stylesheet" type="text/css" href="../../../../resources/sap/ui/thirdparty/qunit-2.css"&amp;gt;

    &amp;lt;script src="../../../../resources/sap/ui/thirdparty/qunit-2.js"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script src="../../../../resources/sap/ui/qunit/qunit-junit.js"&amp;gt;&amp;lt;/script&amp;gt;

    &amp;lt;script src="opaTests.qunit.js"&amp;gt;&amp;lt;/script&amp;gt;

&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;div id="qunit"&amp;gt;&amp;lt;/div&amp;gt;
    &amp;lt;div id="qunit-fixture"&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;BR /&gt;could you please help me here&lt;BR /&gt;Best Regards,&lt;BR /&gt;Bhanu.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2025 10:02:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/referenceerror-sap-is-not-defined/qaq-p/14262906</guid>
      <dc:creator>saibhanu</dc:creator>
      <dc:date>2025-11-07T10:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: ReferenceError: sap is not defined</title>
      <link>https://community.sap.com/t5/technology-q-a/referenceerror-sap-is-not-defined/qaa-p/14263453#M4931242</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;This error means the SAPUI5 framework is not found&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;../../../../resources/sap-ui-core.js&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I suppose it is working fine in your test environment, but from your pipeline, it won't be the same environment.&lt;/P&gt;&lt;P&gt;To test, please replace the relative path with the following one:&lt;/P&gt;&lt;P&gt;&lt;A href="https://ui5.sap.com/xx/resources/sap-ui-core.js" target="_blank" rel="noopener"&gt;https://ui5.sap.com/xx/resources/sap-ui-core.js&lt;/A&gt;&lt;/P&gt;&lt;P&gt;xx would be the version you want (or nothing to use the last one)&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Sat, 08 Nov 2025 15:09:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/referenceerror-sap-is-not-defined/qaa-p/14263453#M4931242</guid>
      <dc:creator>Julien-Gagnier</dc:creator>
      <dc:date>2025-11-08T15:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: ReferenceError: sap is not defined</title>
      <link>https://community.sap.com/t5/technology-q-a/referenceerror-sap-is-not-defined/qaa-p/14263885#M4931291</link>
      <description>&lt;P&gt;Let me check and get back to you&lt;BR /&gt;&lt;BR /&gt;I have checked it not it is failing with script error&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;any idea that we can resolve this as well&lt;BR /&gt;&lt;BR /&gt;below is the error message&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Chrome Headless 139.0.0.0 (Linux 0.0.0) ERROR &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;info karmaExecuteTests - Script error. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;info karmaExecuteTests - at :0:0&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;let me know if you need any more info&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2025 06:48:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/referenceerror-sap-is-not-defined/qaa-p/14263885#M4931291</guid>
      <dc:creator>saibhanu</dc:creator>
      <dc:date>2025-11-11T06:48:55Z</dc:date>
    </item>
  </channel>
</rss>

