spca2013 - building a sharepoint factory

Click here to load reader

Post on 09-May-2015

1.117 views

Category:

Technology

4 download

Embed Size (px)

DESCRIPTION

Building a SharePoint Factory

TRANSCRIPT

  • 1.Building a SharePoint FactoryDonald Hessing (@dhessing)

2. Who am I?Donald Hessing Principal Consultant | Thought Leader SharePoint @Capgemini Netherlands (Virtual) Technology Solution Professional for Microsoft Work full time on SharePoint since 2007 [email protected] | @dhessingPresentation Title | Date Copyright Capgemini 2012. All Rights Reserved3 3. Agenda 1. 2. 3. 4. 5.Considerations for building a SharePoint Factory? Standardization Code Analyses Performance Testing Deploy and Machine ProvisioningSome Demos: Code Validation Content Generation Load TestingPresentation Title | Date Copyright Capgemini 2012. All Rights Reserved4 4. Boeing factory in Seattle 5. Goals Improve the Quality, Cost and Delivery Reducing Risks, Incidents and Project failures Improve Responsiveness and Reliability Improve Predictability and Repeatability of outcomes Bring new solutions to customers faster with lower cost Building trust and confidence to all stakeholders (internal and external)Presentation Title | Date Copyright Capgemini 2012. All Rights Reserved6 6. Bring new solutions to customers faster with lower cost 7. Why standardization? Users / Consumer Easier to use Compatibility & Reusability Lower prices Better Quality Trust & Confidence Products Larger market with fewer varieties Increase productivity & effectiveness Increased competition Industry / Process Benchmarking against best practices Time efforts savings Gaining competitive advantages Assures better alignmentPresentation Title | Date Copyright Capgemini 2012. All Rights Reserved8 8. Standardized process Acceptance criteriaPlan BuildPID Templates Design std Infrastructure Intake Coding std Reference architecture Environment std Storage calculatorTestTest environment std Test scenarios std DeployRollOutDTAP deployment std Installation std Operations std Change mg std Training std Presentation Title | DateCopyright Capgemini 2012. All Rights Reserved10 9. Define your maturityReusable Solutions (Streaming Video, People Directory, ..) Standard offerings (Intranet, Extranet, Records Management, )One-off solutionsReusable Components (Logging, Data Access, Display Templates, ..)Presentation Title | Date Copyright Capgemini 2012. All Rights Reserved11 10. Requires organizational change At project start-up identify potential re-usable components Architecture board for deviations from the reference architecture Peer reviewsPresentation Title | Date Copyright Capgemini 2012. All Rights Reserved12 11. Standardize. Create/Improve the standardAutomate ProcessAutomate standardAgree on the Standard (Adoption)Add review processes Presentation Title | Date Copyright Capgemini 2012. All Rights Reserved13 12. SharePoint Coding Standard Example Create the standard Coding Standard for SP2013Automate Review Process in Automated Builds (TFS)Automate Review (FXCop, SPCop)Agree on the Standard (Adoption)Add review processes Presentation Title | Date Copyright Capgemini 2012. All Rights Reserved14 13. Code Analyses 14. Static versus Dynamic TestingStatic: Testing by Reviews, Walkthroughs or inspection Code Analyses inspection (Phoenix) ReflectionDynamic Testing during execution of the programmed code Code Coverage Code ProfilingPresentation Title | Date Copyright Capgemini 2012. All Rights Reserved16 15. Enforce Code Conformance by Automation 16. Tools SharePoint 2013SharePoint 2010 SPDisposeCheck.exe MSOCAF 2010 FXContrib SPCOP / SPCAF Foundation FXCop StyleCop Visual Studio 2010 / 2012 MSOCAF 2013 SPCOP / SPCAF Foundation FXCop Custom Rules StyleCop Visual Studio 2012 / 2013 Only tool for SharePoint artefacts, metrics, feature dependency, managed code and C# analyses! Includes TFS and 3th Party integration (FXCop, JSLint,CAT.NET) Presentation Title | Date Copyright Capgemini 2012. All Rights Reserved18 17. FXCop versus StyleCopVisual Studio 2012 Code Analyses - FXCop Static Code Analyses on the MSIL Code Safety Performance Type hierarchy Analyses of database objectsStyleCop C# Only Static Code Analyses on the Source Code Naming (casing, use of prefixes / suffixes) Ordering (where different members are defined in the context of a class) Comments (where they should be placed and how they should be formatted) Spacing Custom Rules Presentation Title | Date Copyright Capgemini 2012. All Rights Reserved19 18. FXCopFxCop is a free static code analysis tool from Microsoft that checks .NET managed code assemblies for conformance to Design GuidelinesSource: http://en.wikipedia.org/wiki/FxCopPresentation Title | Date Copyright Capgemini 2012. All Rights Reserved20 19. FXCop versions FXCop (11.0) is integrated with the code analyses features of Visual Studio 2012 Premium Ultimate FXCop 10.0 - standalone application Windows 7 / 8 SDK How to download FXCop 10.0 http://codeblog.vurdalakov.net/2012/05/how-to-download-fxcop-100.htmlPresentation Title | Date Copyright Capgemini 2012. All Rights Reserved21 20. DEMOPresentation Title | Date Copyright Capgemini 2012. All Rights Reserved22 21. Performance Testing 22. Types of testing Common testing types and levels for SharePoint: TypeDescriptionUnitEnsures the working of an individual unit or groupFunctionalEnsures that the specified functionality in the system worksUsabilityEnsures an effective GUI for the end-userAcceptanceEnsures the delivered product meets the requirementsRegressionEnsure that the modification is working correctlyPerformanceEnsures that the system responses within specified timeSystemEnsures the system works in different environmentsPresentation Title | Date Copyright Capgemini 2012. All Rights Reserved24 23. SharePoint Performance Testing 24. Valid testing data is essential for performance tests 25. SharePoint Search DuplicatesMd5 Hash 26. Content generation What we did at Capgemini Downloaded a copy of the wiki database http://en.wikipedia.org/wiki/Wikipedia:Database_download#Englishlanguage_Wikipedia English ~40GB XML Data Dutch ~ 10GB XML Data Wrote custom wiki parser for generating MS Word document MS Excel documents MS PowerPoint documents HTML documents Getting started : http://code.msdn.microsoft.com/Bulk-Loader-Create-Unique-eeb2d084#content Presentation Title | Date Copyright Capgemini 2012. All Rights Reserved28 27. What is important for SharePoint? Unique FileRef and Title property Language Document Size Document Type Folder and nesting Unique users, groups and permissions Impacts: Search Performance and Results Content Database SizePresentation Title | Date Copyright Capgemini 2012. All Rights Reserved29 28. DEMO Wiki based content generationPresentation Title | Date Copyright Capgemini 2012. All Rights Reserved30 29. Performance Tests Type of Performance Tests Type of TestDescriptionSmokeHow your application performs under light load for short durationStressHow your application runs under heavy loadPerformanceTo determine how responsive the application runs under expected loadCapacityHow your application performs at various capacitiesPresentation Title | Date Copyright Capgemini 2012. All Rights Reserved31 30. Visual Studio Load Testing Visual Studio 2010 Ultimate Load testing was possible, but not optimized for SharePoint SharePoint is using a lot of GUIDs and control values which needed to be extracted manuallyVisual Studio 2012 Ultimate CTP Update 2 Load testing is made easier with out of the box extraction and validation rules Extracts SiteName, ListID, Form Fields, REQUEST DIGEST, Webpart, Calender, Document Item Coded web performance tests are not supported for SharePoint Applications http://msdn.microsoft.com/en-us/library/vstudio/jj710162.aspx Presentation Title | Date Copyright Capgemini 2012. All Rights Reserved32 31. DEMO Visual Studio 2012 Performance TestPresentation Title | Date Copyright Capgemini 2012. All Rights Reserved33 32. Machine provisioning 33. Development Machine 34. Installation scripts Consistent deployment of SharePoint machines though DTAP stagesPresentation Title | Date Copyright Capgemini 2012. All Rights Reserved36 35. SC - Virtual Machine Manager 2012 SP1Virtual Machine Manager provides automation, configuration and management of Virtualization Host Private Cloud Provision Virtual Machines based on templates Service Templates allows you to deploy a multi tier SharePoint environment in one click Still requires scripts to configure SharePoint Presentation Title | Date Copyright Capgemini 2012. All Rights Reserved37 36. SC Orchestrator Azure Integration PackOrchestrates Runbooks that can deploy Windows Azure Virtual Machines Public Cloud SP1 ships with Windows Azure Integration Pack Integration pack allows you to deploy, deprovision and move Azure VM Requires scripts to install and configure all components and software Presentation Title | Date Copyright Capgemini 2012. All Rights Reserved38 37. It works on my machine 38. Key takeaways The goal for building a SharePoint factory can be different for every organisation Building a software factory also requires organisational change Start with defining your standards validation can also done manually The quality of software can be validated with automated tools Most existing tools are limited to Managed Code or C# Performance tests require bulk load that can be generated out of Wikipedia Automating the deployment of SharePoint environments is an essential part of the validation Have a look at System Center 2012 SP1 and Visual Studio 2012 TFS Lab Manager for automation your deployments and Test integrationPresentation Title | Date Copyright Capgemini 2012. All Rights Reserved40 39. Thank You! 01010100 01101000 01100001 01101110 01101011 00100000 01011001 01101111 01110101 0100001Presentation Title | Date Copyright Capgemini 2012. All Rights Reserved41 40. Donald Hessing Thought Leader SharePoint @Capgemini Microsoft Certified Master for SharePoint Contact me: @dhessing [email protected] http://nl.linkedin.com/pub/donald-hessing/4/250/924Presentation Title | Date Copyright Capgemini 2012. All Rights Reserved43