cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 automated testing error the server responded with a status of 404 (Not Found)

Former Member
0 Kudos

Hi all !

I wan't automate my tests by following the sap tutorial, but i have 404 error the server reponded with a status of 404.


Someone could help me please?

Thanks.


testsuite.qunit.html


<!DOCTYPE html>
<html>
<head>
<title>QUnit TestSuite for Bulletin Board</title>
<script type="text/javascript" src="/resources/sap/ui/qunit/qunit-redirect.js"></script>
    <script>
        /**
         * Add test pages to this test suite function.
         *
         */
        function suite() {
        var oSuite = new parent.jsUnitTestSuite(),
        sContextPath = window.location.pathname.substring(0, window.location.pathname.lastIndexOf("/") + 1);
        oSuite.addTestPage(sContextPath + "unit/unitTests.qunit.html");
        oSuite.addTestPage(sContextPath + "integration/opaTests.qunit.html");
            return oSuite;
        }
</script>
</head>
<body>
</body>
</html>

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

qunit.html also has to include a bootstrap configuration something similar to this:

<script id="sap-ui-bootstrap" 
    src="/resources/sap-ui-core.js"
    data-sap-ui-resourceroots='{
            "sap.ui.demo.walkthrough": "../../",
            "test.unit": "./" 
    }'
>

For details please visit the "Unit Test with QUnit tutorial".

You can also check the run configuration for the "testsuite.qunit.html".

Right-click on the "testsuite.qunit.html" in WebIDE and Run -> Run Configuration, check if the File name path is valid or not.


Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks miklos 🙂