我們有一個QUINIT測試的OpenUI5應用程序。我們試圖用咕嚕-的contrib-qunit測試自動化,但是當咕嚕-的contrib-qunit開始在phantomjs我們qunittests.html文件,它提供了以下錯誤:我如何使用qunit和phantomjs自動測試openui5應用程序? (錯誤:在負緩存中找到)
>> Error: found in negative cache: 'sap/ui/core/Core.js' from TODO???/sap/ui/core/Core: Error: found in negative cache: 'sap/ui/core/Component.js' from TODO???/sap/ui/core/Component: Error: found in nega...
同樣的文件, QUnit測試在Chrome中正常工作。
爲了理清我們的環境造成的問題,我做了以下內容:
我創建了一個Gruntfile.js沒有別的然後咕嚕的PHP和咕嚕-的contrib-qunit。然後我從OpenUI5 Walkthrough Step 35下載了代碼。我開始演練程序和設置咕嚕-的contrib-qunit這樣的:
qunit: {
all: {
options: {
urls: [
'http://localhost:1337/test/integration/opaTests.qunit.html'
]
}
}
},
同樣的問題。 「負緩存」。
我們用qunit的其他grunt實現,用karma-qunit,CasperJS和其他來測試它。