on 05-07-2018 10:13 AM
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>
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks miklos 🙂
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.