Posts

Showing posts from May, 2010

Enterprise Architecture and TOGAF 9

An Enterprise is any collection of organizations having same goal and purpose. These organizations are linked together and being owned and maintained by common owners across the enterprise. It encompasses its information and technology services, processes, and infrastructure - and a specific domain within that enterprise. The architecture may have multiple systems or multiple functional or business groups sharing the common goal. In an extended scenario, an Enterprise comprises of the partners, suppliers, and customers, as well as internal business units. Main purpose of Enterprise Architecture is to ensure an integrated, optimized, non redundant and efficient environment which responds to change and supports the business strategy. It is a strategic context for the evolution of the IT system in response to the constantly changing needs of the business environment. It balances the corporate IT Strategy and Business Innovation and makes sure that IT Strategies are met and permits closest

Database Testing With DBUnit

Image
DBUnit is an Open Source Database Testing Framework which was created by Manuel Laflamme. DBUnit is a Database Unit Testing Framework to Test Database Driven Classes, Procedures or Functions. NUnit, MVC .NET/Visual Studio testing platforms can be used to build a standard unit test suite. Developer should create a dataset, defined within an XML file, and then extends one of a number of parent classes to inherit pre-defined functionality in order to use the framework. An IDbConnection implementation to connect to the database, then DbUnit.NET can be used to test the data access code. Following Operations can be performed using DBUnit: UPDATE TRUNCATE INSERT REFRESH DELETE CLEAN_INSERT DELETE_ALL NONE Other Operations: Composite Operation Transaction Operation Identity Insert Operation DBUnit Support Databases: OracleDatabase MsSQL MySQL IbmDB2 IbmInformix H2 HypersonicSQL PostgreSQL SybaseSQL InterBase OpenBase8 SapDB/MaxDB Derby FrontBase HOW TO WRITE A DBUnit TEST CASE ? To create a

What is TDD?

Image
TDD has been around since NASA’s Project, Mercury in 1960s. But, when Kent Beck and Ward Cunningham introduced TDD as an eXtreme Programming (XP) practice, it started gaining popularity.   Test Driven Development is a Technique through which Test Cases are being written to fail and then produces test cases to pass followed by refactoring the code to achieve the acceptable standard. Which eventually means: the mind set for TFD together with a Test First Design Technique and Refactoring the tested functions yields to Test Driven Development.                                   TDD = TFD + Refactoring   While implementing TDD, Developers write software codes through small iterations to implement following tasks:   ü   Create Automated Unite Tests ü   Execute the tests to make sure they fails ü   Update the tests to make sure they passes ü   Re-run the new unit test cases to ensure they pass ü   Refractor the codes as needed ü   Periodically re-run all the test ca