11/10/2023 0 Comments ExtjsThe controller in the ExtJS binds to the different UI events like click, selection etc. Jasmine can be integrated easily to test ExtJS applications behavior because the controller/store/model of ExtJS are functional pieces of code with minimal reference to the UI. Jasmine library can be used to test the functionality of any JavaScript code without any interactions with DOM. Jasmine is an independent framework which doesn't depend on any other JavaScript library. Jasmine is a JavaScript framework which enables Behavior driven testing of Similarly the ExtJS store is also independent of the View and can be tested independently. JavaScript functions in the Controller, so they can be called independently. This approach doesn't require to fire events from the View, since all the events occurring on the View are bound to event-handlers which are The MVC architecture, as detailed above, facilitates writing unit tests for the controller and store. Controller mediates between Model and view by handling events occurring on the model/view and updates the model/view in response to events.View deals with the presentation logic of the entity and.Model represents the state of the Entity.ExtJS architecture necessitates creation of model, view and controller, preferably as separate files. The architecture of ExtJS enforces keeping the model/view/controller in different files to develop desktop like applications. BackgroundĮxtJS is a Model-View-Controller (MVC) based Javascript framework used to develop Rich Internet Applications. ![]() The MVC approach of ExtJS along with the ‘Behavior Driven Testing’ approach of Jasmine Framework enables independent testing of ExtJS model, store and controller. This article is a Step by Step guide on how to do Unit testing of ExtJS application using Jasmine Framework. ![]() Download source code with tests - 719 KB.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |