Posts

Showing posts from 2010

DoDAF 2.0 - A Popular EA Framework

DoDAF 2.0 was released in May, 2009 and was prescribed framework for US Department of Defense. It works as the comprehensive framework and conceptual model enabling the Architecture Department facilitating the ability to DoD managers at all levels to make key decisions more efficiently and effectively. It was hoped to provide organized information sharing across departments, Joint Capabilities Areas or JCAs, Mission, Component, and Program boundaries. DoD Managers are the process owners, specify the requirements and control the development of architectures within respective areas. DoDAF emphasizes on architectural data rather than developing individual products. The visualization of architectural data is being accomplished by models which can be documents, spreadsheets, dashboards etc. When data is being collected and presented, the presentation is being called Views and organized collections of these views are referred to as ViewPoints in DoDAF 2.0. DoDAF Architecture Development Meth

PARAMETERIZED UNIT TEST (PUT)

Parameterized unit tests (PUTs) is a new methodology where parameters can be passed to the open unit tests by which the behavior of the test can be tested under certain scenario as well as by instantiating the parameterized test methods with given argument sets. Instantiations should be chosen so that they exercise different code paths of the methods-under-test. UNIT TESTING AT A GLANCE [i] : Three sections of Unit Tests: Data Method Sequence Assertions void Add() { int item = 3; var list = new List(); list.Add(item); var Count = list.Count(); Assert.AreEqual(1, Count); } INCOMPLETE CODE COVERAGE WITH TEST DATA: list.Add(3); Bad data may result in redundant, or worse, incomplete test suites. Fixed data values become invalid when product changes Why choose a value which may not make sense? WHAT IS PARAMETERIZED UNIT TEST? Parameterized Unit Test is a Unit Test with Parameters. Separation of concerns: Data is generat

MICROSOFT PEX and TDD

PEX stands for Program Exploration which is a white box test generation tool developed at Microsoft Research that helps developers to write PUTs in .NET platform and thus generate automated test cases. For each PUT, Pex uses dynamic test-generation techniques to compute a set of input values that exercise all the statements and assertions in the analyzed program which eventually cover all reachable branches [i] . PEX generates test inputs for parameterized unit tests (PUTs). In the context of a web service, a PUT is simply a method that takes parameters, invokes a sequence of web service operations, and asserts properties of the expected behavior of the operations [ii] . HOW TO CREATE A PEX PROJECT AND START TETSING? To work with PEX, we have to download and install Microsoft PEX white box testing framework and must have Visual Studio installed as well. Then create a test project and write a method to Test. Then right click on the method and select PEX exploration to start creating Tes

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