Leo Wang's Notepad

[SAPUI5 Tutorial Trouble Shooting] Test Suite and Automated Testing Step10

如果你在进行[SAPUI5 Tutorial] Test Suite and Automated Testing Step10 时遇到过 SAPUI5 QUnit 404 not found 问题,

/resources/sap/ui/qunit/qunit-redirect.js 404 not found

这篇文章将帮你找到解决方法。

正如Tutorial一开始写的那样

If you are running the tutorial in SAP Web IDE, you will have to configure the project descriptor neo-app.json. In this descriptor file, the path to the resources is already configured. Other development environments might need the resources to be copied to the server. Alternatively, you can use the CDN version of https://sapui5.hana.ondemand.com/resources/sap-ui-core.js.

也就是说,如果你使用的是Web IDE,而你又是copy的Tutorial中给出的code,你还需要配置项目的neo-app.json文件让项目找到resources系列的文件。

If you are using web IDE and copied the code from the sample, you may aslo need to set up the neo-app.json file to let the project find the resource folder.

具体配置如下所示,其实就是简单复制一下从头开始新建的项目中的neo-app.json文件。

 

Tagged on: ,

发表评论

电子邮件地址不会被公开。 必填项已用*标注