1 / 25

Oppsett av byggemiljø med TFS

Oppsett av byggemiljø med TFS. NNUG 31.10.06. Versjon 1.0. Agenda. Kort om Visual Studio 2005 Team Foundation Server Continuous Integration Deployment Testing. ABB: Facts & Figures. Internett: Over 50 landesiter Ca. 100.000 publiserte sider

donagh
Download Presentation

Oppsett av byggemiljø med TFS

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Oppsett av byggemiljø med TFS NNUG 31.10.06 Versjon 1.0

  2. Agenda • Kort om Visual Studio 2005 Team Foundation Server • Continuous Integration • Deployment • Testing

  3. ABB: Facts & Figures • Internett: • Over 50 landesiter • Ca. 100.000 publiserte sider • Ca. 1,1 mill besøk og 8 mill page views pr måned • Intranett: • 107.000 ansatte i ca. 100 land • Over 40 lokale intranett • Ca. 150.000 publiserte sider • Ca. 1,7 mill besøk og 8 mill page views pr måned • Totalt: • ca. 1300 databaser • Ca. 1,8 mill dokumenter • 226 GB innholdsdata • Flere hundre aktive innholdsleverendører (ca 3000 potensielle)

  4. Domino ABB Portal • Basert på .Net • Innhold lagres fremdeles i Notes. • Brukere legger inn innhold i CAWP via Notesklient, eller Content Cockpit Internet Portal (.Net 2.0) Pages Web-parts Web Services XML WebSphere .Net Other platforms

  5. Source Control

  6. Source Control - branching Release 1.0 Release 1.1 Main development Merge Merge Merge Bugfixing Merge Merge Release 1.0.1 Release 1.1.1 Release 1.0.2

  7. Work items

  8. Rapporter

  9. Prosess templates

  10. Prosjektsite (WSS)

  11. Continuous Integration

  12. Continuous Integration

  13. Continuous Integration - Demo Demospøkelset

  14. Status Read webconfig file Standup? Display Standup Screen Yes No GetBuildStatus Building? Display Bob Yes No Failed? Display Failed ... Yes No Display OKGet CC & Dilbert Continuous Integration

  15. Oppsett av Continuous Integration med byggestatus • Installer TFS Build Service • Installer VS 2005 Team Suite på server eller • VS 2005 Team Edition for Software Developers (kode analyse/fxCop) + VS 2005 Team Edition for Testers (Code Coverage) • Installer VS 2005 Web Deployment Projects lokalt og på server • Last ned ci.zip fra www.hamang.net • Opprett WebSite for CI. Bruk samme AppPool som TFS (TFS AppPool) • Konfigurer web.config for CI • Configuration Manager i VS – DeployTest, DeployProd • “%programfiles%\Microsoft Visual Studio 2005 Team Foundation Server\TF Setup\BisSubscribe.exe /eventType CheckinEvent /address http://tfsserver:8090/service/WebService.asmx /deliveryType Soap /domain http://tfsserver:8080” • Kontroller at den er registrert i tfsintegration.dbo.tbl_subscription

  16. Deployment – Web Deployment Projects • Plugin / MSBuild • Precompiled Site • Ulike Configuration Settings / Configuration manager • Rydd opp i <Target Name="AfterBuild">

  17. Testing • Code Coverage • TestTyper • UnitTest • WebTest • LoadTest • Manual Test • Generic Test & Ordered test • TestManager

  18. Mocking • Lag din egen mock

  19. Mocking Web ObjectDataSourceEmployees PortalCache (HttpContext.Current.Cache) EmployeeHandler.GetEmployeeDetails BusinessLogicLayer Employees.FillEmployeeDetails DataAccessLayer EmployeesTableAdapter.FillBy ServiceAgents EmployeeServiceAgent.GetEmployeeData

  20. Mocking • Lag din egen mock • Rhino Mocks • Spring.Net • App.config

  21. Erfaringer • Under installasjon/oppgradering er det svært viktig å følge instruksjonene nøye! • Du bør kjøre automatisk bygging ved kontinuerlig integrasjon. • Automatisk bygging krever mye systemressurser. • Kjør opplæring for brukerne. • TFS egner seg i større prosjekter. Sjekk byggestatus. • Det finnes ikke noe webbasert grensesnitt for å legge inn work items. (TeamPlains) • Benytt Visual Studio 2005 Web Deployment Projects for automatisk deploy av webprosjekter etter automatisk bygging. • Du kan ikke jobbe disconnected mot TFS! • Å jobbe med web.config er en utfordring. • Benytt Team Foundation Server Administration Tool for å vedlikeholde brukere i de ulike applikasjonene (Source Control, Reporting, Project portal). • Lister over enhetstestene som skal kjøres ved automatisk bygging må vedlikeholdes manuelt. • Bugs, bugs, bugs.

  22. Ressurser • Build status:http://www.hamang.net • TFS CI:http://blogs.msdn.com/khushboo/archive/2006/02/23/537704.aspxhttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs05/html/ConIntTmFndBld.asp • CI med lampestyring:http://www.pragmaticprogrammer.com/pa/pa.html • TFS Forum:http://forums.microsoft.com/MSDN/default.aspx?SiteID=1 • Tips & Trix:http://blogs.vertigosoftware.com/teamsystem/default.aspx • MSBuild referencehttp://msdn2.microsoft.com/en-us/library/0k6kkbsd.aspx • VS 2005 Web Deployment Projectshttp://msdn2.microsoft.com/en-us/asp.net/aa336619.aspx

  23. Hihi Demospøkelset

  24. Spørsmål? ? ?

More Related