Post will give basic structure and data flow in Jasmine, In I am looking jasmine 1.3.0 in here First I will remove the report part (HTML) from jasmine to see the flow much clear. Just comment those lines firstly in 'SpecRunner.html' var htmlReporter = new jasmine.HtmlReporter(); jasmineEnv.addReporter(htmlReporter); jasmineEnv.specFilter = function(spec) { return htmlReporter.specFilter(spec); }; Here is sample gist (Sources)of the ...
Here I am just try to Jasmine2.0.0-rc2[1] In here I will listing down the flow of jasmine 1. Getting Jasmine Environment variable Env variable firstly such as before, after, eachbefore etc... You can try all in there from 'jasmine.Env' Env {clock: Clock, currentSpec: null, reporter: ReportDispatcher, lastUpdate: 0, specFilter: function…} jasmine.getGlobal(); // contain windows deatils 2. In Jasmine 2.0.0 calling ...
When you are coding in Open Source better to know on 'licenses' It will be help to understand the whole Open Source philosophy to some basic level but very important. This is a short post about license but will be value to know. “Proprietary Software linking” is linking or closed sourced applications/libraries “Distribution of 'the Work'”, combination of a software ...
This post will be like re bushing some ideas and things, 2 years ago I have read on "23 Design Patterns mentioned by the GoF". In there I was mainly concern with java and C#. But now I will looking to those with JavaScript perspective since design pattern is independent for programming languages. A design pattern is reusable software solution ...
I was spending some time with ‘jasmine’, testing framework. Here is list tips that developer or test writer should know before writing test on top of it.(Basic level requirement will be illustrating in here) Suites: describe Your Tests test suite begins with a call to the global Jasmine function 'describe'@params name :: title for a spec suite function :: implementation ...
I was looking for JS testing frame work and firstly I found mocha and my last three post was about mocha. In there I was looking sample and design of it plus pons and cons of it. Now I am going to looking on 'Jasmine'[1] which is a behavior-driven development framework for testing JavaScript code.It do not have depend on ...
Asynchronous code done();Simply invoke the callback when your test is complete. By adding a callback (usually named done) to it() Mocha will know that it should wait for completion.before(), after(), beforeEach(), afterEach() for sync or asyncmocha is behaving much like a regular test-case (TestNG). For examplemmy data for testing before each test:NOTEAdd beforeEach() outside of describe()s then the callback will ...
Previous post was written for to test external js file. Now here will be testing REST API (POST and GET calls ) with mocha. dependences for this sample npm install expect.jsnpm install superagentnpm install expressIn here I will be testing simple jaggery app (page) that will be action differently for GET and POST (Simple rest call app) Here is jaggery ...
mocha, is JavaScript test framework running on node.js, will be illustrating in here with explaining basic step to write mocha test on node.js. Firstly, You have to download and install nodejs and Mocha 1. Installing nodejs from nodejs setup2. To install Mocha simply run 'npm install -g mocha', and you’re set go [NOTE]In windows you will need to have install ...
A framework defines the organization's way of doing things. A test framework is a set of assumptions, concepts and tools that provide support for software/application testing. Such framework will allow easy to maintenance in software development. It is support project management with continuous delivery. This post will explain basic things that are to be in test framework, different scopes for ...
Some time we need to customize windows as we need it. It is true it is not easy as ‘Linux’. But you can do some stuff as you needed. Go to start and enter ‘regedit.exe’ and open it. Now do some play with registry in windows Change Right Click menu of Folder 1. go to ‘HKEY_CLASSES_ROOT\Folder\shell’ 2. Add a new ...
Although some debates have taken place regard to 'is JavaScript object-oriented programming?' due to the differences in object-oriented JavaScript compared to other languages. JavaScript has strong object-oriented programming capabilities. This post will contain some sample for those. Classes in JavaScript As JavaScript does not really have the construct of "class"; a more correct term is "data type". JavaScript objects inherit ...
We used different lightweight textEditor, IDEs, in software development phase depending on programming language as some IDEs best for some and not. According to Oliver Steele article[1], The programmers are divided two categories IDE-only programmers and editor-only programmers. But there are programmer who try both depending on the case. Some normally preferred testEditor as they try new language so after ...
This post will give some SQL Quires that support subject. Here is my human task and I need to get role for connected to those task process. Need user name for each task instances in wso2 BPS. SELECT ORG_ENTITY_NAME "User Name", TASK_ID "Task ID" FROM HT_GENERIC_HUMAN_ROLE ghr, HT_HUMANROLE_ORGENTITY map, HT_ORG_ENTITY org WHERE ghr.GHR_ID = map.HUMANROLE_ID AND map.ORGENTITY_ID = org.ORG_ENTITY_ID AND ...
WSO2 products can switch to a different RDBMS such as MySQL, PostgreSQL or Oracle. This post will be forcusing on BPS (Business Process Server) and it will go through setup that need to follow to switch to MYSQL ( or any other RDBMS). 1. Open “datasources.properties” in “\wso2bps-3.0.0\repository\conf” 2. Change it for matching to your mysql database. synapse.datasources=bpsds synapse.datasources.icFactory=com.sun.jndi.rmi.registry.RegistryContextFactory synapse.datasources.providerPort=2199 ...
Here I am using wso2 UES and I need to have RXT view in management console where I can see all the Gadget and Sites in store (Enterprise Store) WSO2 UES 1.0.0 [1] was release with carbon 4.1.0. So firstly you need to add repo "http://dist.wso2.org/p2/carbon/releases/4.1.0" with name repo-410 org.wso2.carbon.governance.list is unsatisfied so make governance.list active it need task and ...
1. Download WSO2 User Engagement Server (UES) http://wso2.com/products/user-engagement-server 2. Unzip it and start UES from wso2server.bat\.sh in "\wso2ues-1.0.0\bin" 3. After server is started, you can browser to http://localhost:9763/portal 4. Then click "Sign In" and then you will get registration from then fill it, 5. Then you will be logged in to “portal/dashboard.jag”6. Then go to “Create—>Dashboard”7. Pick the layout that ...
I had missed one of the post that I was planning to post some weeks ago, It is about HL7 simple use case with WSO2 ESB. This post will explain a simple HL7 message passing through a WSO2 ESB proxy. In Here I am using - WSO2 ESB 4.6.0 - hl7browser[1] to send HL7 messages. 1. Firstly you have to ...
WSO2 User Engagement Server (UES), unlocks enterprise data for business intelligence, monitoring and other enterprise requirements. "It give your data a whole new meaning" and WSO2 User Engagement Server is the ultimate open-source solution for dynamic web content creation as well. WSO2 UES helps to rapidly create visually appealing and engaging web components such as dashboards, microsites and gadgets. ...