I am constantly asked to talk about DevOps and what DevOps means for Microsoft. Although there are many definitions of DevOps floating out in our industry, at Microsoft, DevOps is the merging of people, process and products such that we can continually deliver value to our end users. And clearly, VSTS/TFS and Azure are the products which enables this whole DevOps mindset.
Randy Pagels and I created a DevOps demo which show how VSTS/TFS and Azure can do this. For the next couple of blogs, I will walk you through how to set up our DevOps demo using an asp.net website backed by sql server hosted in Azure. Source control, work item tracking, CI builds and CD pipelines , unit tests, automated ui tests and load tests are all done using VSTS.
All artifacts for this blog series can be found here:https://github.com/abelsquidhead/MercuryHealth
Table Of Content
Part 3: Setting up your Git Repo
Part 4: Setting up your Build
Part 5: Setting up your Release Pipeline
Part 6: Full Demo Walkthrough
This section will walk you through creating a team project, adding the work items needed for the demo to the team project and creating a test plan for the demo.
This demo requires a Team Project using the Scrum Template. At this time, my work item generator does not support the other process templates.
- Browse to your VSTS portal and click on New under Recent projects & teams
- Enter MercuryHealth for project name, select Scrum for process template and Git for version control and select Create project
Adding all the Features, PBI’s, Tasks and Test Cases are done using my command line script. You can download all artifacts needed for this walkthrough here: https://github.com/abelsquidhead/MercuryHealth. Do to some changes in VSTS, VSTS no longer supports using alternate login credentials. Instead, you should use a personal access token. To create a personal access token:
- Browse to your VSTS account and click on your icon in the upper right hand corner and select Security
- On the left hand side click Personal access token and then click Add
- Enter in a description, select an expiration time, select your scope (I just selected all scopes) and click create token
- Copy your token
Next, using the token that we just created, we’ll add the work items into our team project.
- Bring up a command line box and browse to the directory you downloaded this demo
- Call CreateDevOpsDemo /? For the help menu
- Call CreateDevOpsDemo /collection:collectionUrl /p:project /user: /password:password . Leave the user name blank and for password, enter in the personal access token. In my example, you would type in something like:CreateDevOpsDemo /collection:https://abelsquidhead.visualstudio.com/DefaultCollection /p:MercuryHealth /user: /password:<PAT>
In order to create a test plan that makes some sort of sense, we will first move some PBI’s to our first sprint, then create a test plan which just tests the current sprint’s pbi’s.
- Browse to work tab for the MercuryHealth project you just created in VSTS and Click on Work tab, then click on Features
- Open the tree node for Track Nutrition, multi select all the PBI’s under Track Nutrition and move them to Sprint 1
- Click on Test
- Click on the green plus and select Test plan
- Type Current Sprint for the Name and click Create
- Click on the green plus and select Requirement-based suite in the drop down
- Add a search clause for iteration under MercuryHealth\Sprint1, click Run Query, Select all the PBI’s and click Create suites
- You should have a test plan with some cases in them
Next up, part 3. Setting up your git repo for the demo