Posts

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 a...

How to Create a Deployable Solution Package for SharePoint Feature/WorkFlow

Creating a Manifest.xml File You must create a Manifest.xml file for your solution package. Open the Visual Studio 2008 project you created in the previous Visual How To: Building an Expense Report Approval Workflow for SharePoint Server 2007 Using Visual Studio 2008. To create a Manifest.xml file Add a solution folder to the project. Select the solution in Solution Explorer. Right-click the solution, point to Add, and then click New Solution Folder. Rename the folder Solution. Select the new solution folder. Right-click the new solution folder, point to Add, click New Item, and then select XML File in the dialog box. Rename the XML file to Manifest.xml. Click Add. Add the following to the blank XML file. Xml Copy Code <?xml version="1.0" encoding="utf-8"?> <Solution xmlns="http://schemas.microsoft.com/sharepoint/" SolutionId="B90C9FD7-29F3-477f-A038-B4BA51FE219F"> <FeatureManifests> <FeatureManifest Loc...

How to Copy/Upload Files into SharePoint Document Library

We may have to add a service reference to SharePoint Copy Web Service [ http://SharePointSite/_vti_bin/copy.asmx ] before coding this. Here are two functions to copy/upload files into SharePoint Document Library. To call the functions, we may have to use following syntaxes: CopyFromFileToSP("ASLog.txt", "C:\\ASLog.txt", " http://dcftsd1/Policy/ASLog.txt "); CopyFromSPtoSP(" http://dcftsd1/Policy/Book1.xls ", " http://dcftsd1/Policy/Book3.xls "); //Function to Copy a File from One Document Library to Another Document Library private void copyFromSPtoSP(string _SourceFile,string _DestFile) { try { SPCopyService.FieldInformation myFieldInfo = new SPCopyService.FieldInformation(); SPCopyService.FieldInformation[] myFieldInfoArray = { myFieldInfo }; SPCopyService.CopyResult myCopyResult1 = new SPCopyService.CopyResult(); SPCopyService.CopyResult myCopyResult2 = new SPCopyService.CopyResult(); SPCopyService.CopyResult[] myCopyResultArray = { ...

SharePoint 2010 Installation Matters

Image
SharePoint is an integrated suite of server capabilities can help your organization by providing comprehensive content management and enterprise search, accelerating shared business processes, and facilitating information-sharing across boundaries for better business insight. I am trying to highlight key difference between WSS 3.0, MOSS 2007 and later SharePoint 2010. WSS 3.0 Vs MOSS2007: WSS 3.0 offers all the standard site templates to build team sites, document workspaces, blank sites, blogs, wikis, and meeting workspaces. You can also use WSS 3.0 to create people and group lists. You can integrate WSS 3.0 sites with Access 2007, Excel 2007, Outlook 2007, Word 2007 and PowerPoint 2007. You can create RSS feeds and set up alerts to notify you when content changes on a site. Version control, task notification and alerts all come with WSS 3.0 MOSS 2007 offers all of the features included in WSS 3.0. In addition, MOSS 2007 offers business intelligence features that allow you to track k...

SharePoint BDC - Step By Step

Image
Business Data Catalog, a new feature introduced in MOSS2007, provides an easy way to integrate business data from external database/web services , such as SAP, Oracle, SQL Server, Web Services or Siebel without writing any code. Business Data Catalog comprises a metadata database and an object model that provide a simple, consistent object-oriented programming interface for business logic that lives in the various business applications. To use BDC in MOSS we need to configure SharePoint Shared Service Provider. We can go to SharePoint Central Administration and select Shared Services Administration link. To create a new SSP use the following steps: 1. Click on New SSP 2. Fill in SSP Name [Lets name it "MyDefaultSSP"] and Associated Web Application 3. Select/Fill In Other necessary information based on your Farm settings 4. Click OK If you have multiple SSPs configured, you may change the web application association by selecting Change Association link at the top. After you ha...