lundi 23 mars 2015

Sapui5 QUnit testing errors through class not found exceptions

I am going through this (http://ift.tt/1OqsUm2) guide.


The problems are:



sap.ui.test.qunit.triggerKeydown()


is undefined. The documentation is available here (http://ift.tt/1xU5ECE), but not on (http://ift.tt/1OqsQCO).



And next point:



sap.ui.core.routing.HashChanger()


is undefined. How can I load the proper resources (http://ift.tt/1OqsUma)?


What I know so far:



sap.ui.core.routing //is defined but only contains the HistoryDirection Object
Object {HistoryDirection: Object}


And to the second point:



jQuery.sap.require("sap.ui.test.library"); //retuns the Uncaught Error
Uncaught Error: failed to load 'sap/ui/test/library.js' from http://ift.tt/1xU5ESU: 404 - Not Found


How ca I get my test to work?


Aucun commentaire:

Enregistrer un commentaire