• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
The Newest of the New with Visual Studio and TFS 2012
 

The Newest of the New with Visual Studio and TFS 2012

on

  • 3,939 views

By itself, Visual Studio 2012 included many compelling new features not available in prior releases. But Microsoft hasn’t stopped. Since the production release in August 2012, Microsoft has ...

By itself, Visual Studio 2012 included many compelling new features not available in prior releases. But Microsoft hasn’t stopped. Since the production release in August 2012, Microsoft has continued to release more new capabilities. In this session we’ll walk through some of the latest and greatest enhancements that you can use in your Visual Studio and TFS 2012 environment.

Statistics

Views

Total Views
3,939
Views on SlideShare
3,826
Embed Views
113

Actions

Likes
2
Downloads
0
Comments
0

1 Embed 113

http://blog.imaginet.com 113

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • By itself, Visual Studio 2012 included many compelling new features not available in prior releases. But Microsoft hasn't stopped. Since the production release in August 2012, Microsoft has continued to release more new capabilities. In this session we'll walk through some of the latest and greatest enhancements that you can use in your Visual Studio and TFS 2012 environment.
  • Talk to SPs vs Releases.What does 2 years mean in Tech? iPhone and Android released 2007-2008. During the timeframe of VS 2008.The original iPad was released in January 2010, three years ago and immediately before VS 2010.Azure – commercially available in Feb 2010. AWS launched in 2006 (don’t talk to that.)
  • A look at what was new, at least in the ALM space, as of three years ago.
  • And a look at what was considered new six months ago.
  • Adoption of agile practices… Continuous DeliveryProduct as a whole is on 3-week sprintsTF Service
  • …For update 2, they’ve already published 4 CTPs… The latest, CTP 4, was released about a week ago and includes a Go-Live license. It will be upgradeable to the final Update 2 final release (and must be before continuing beyond that). All of my demos today will be using Update 2 CTP 4.
  • Summary and partial list of enhancements taken from Brian Harry’s blog
  • BHARRY: Unit testing – One of the big problems with unit testing SharePoint is that most code requires SharePoint to be running and trying to run tests against a live SharePoint instance is a pain.  So we’ve built a SharePoint “emulator” using our new VS 2012 Fakes & Stubs capability.  This will make unit testing of SharePoint components WAY easier.Coded UI support – Our 2012 product was pretty close to supporting this but there were a few SharePoint specific issues that we weren’t able to address that made CodedUI (functional testing) not work well for SharePoint.  In our first update, we will have addressed those issues.Workarounds documented for Excel on Sharepoint 2010, Visio\\Powerpoint controls, and SharePoint Silverlight controlsLoad testing – We now support load testing for SharePoint out of the box.  This is more involved than you might imagine due to how dynamic SharePoint is.  You can’t just record a script and play it back – it won’t work because SharePoint generates and expects dynamic data (like GUIDs).  We’ve built the extensions to our load testing solution to parse the dynamic SharePoint data and include it appropriately in subsequent requests.  So now you can record a script and play it back and we will dynamically adjust it to match what SharePoint expects.IntelliTrace collection plan – While this won’t be in the first CTP, we’re building a custom IntelliTrace collection plan for SharePoint that helps filter out a bunch of the SharePoint “infrastructure noise” and lets you focus on events related to your components that are the likely cause of problems you are seeing.SOMA: SharePoint Development. Beyond the core platform support for SharePoint development available via “Napa” and the Office Developer Tools for Visual Studio, with Visual Studio 2012 Update 1 we’ve invested in building out significant new application lifecycle management (ALM) capabilities for SharePoint applications.  This work is primarily centered around multiple forms of testing: from load testing that enables the stressing of SharePoint applications with simulated load and network conditions; to performance testing that enables recording and running performance suites against SharePoint solutions; to unit testing that enables coded UI tests for simulating user interaction and that enables using the Microsoft Fakes Framework for stubbing out SharePoint dependencies in unit tests.  Update 1 also updates IntelliTrace to capture SharePoint logging information, in order to provide a rich analysis experience for SharePoint applications.
  • VS Blog:SharePoint Emulators provide a system of Fakes based shims implementing the basic behaviors of the SharePoint 2010 server object model. SharePoint Emulators are available today through a NuGet package feed. Perform a simple search of the NuGet official feed for “SharePoint Emulators”.SharePoint Emulators are easy to incorporate into existing tests. You can write tests against the SharePoint Emulators using only the SharePoint API. All that is needed is the wrapping of test code in a SharePointEmulationScope.
  • From VS Blog:IntelliTrace has been enhanced in Visual Studio Update 1 to include a PowerShell module for collecting trace logs from SharePoint, filters specific to SharePoint events and a new dialog that enables entering a SharePoint correlation ID that makes locating and solving SharePoint development problems much easier.
  • VS Blog:While it is recording don’t be alarmed by all of the requests listed in the Web Test Recorder window, the requests for ScriptResx.ashx, blank.htm and others will be removed once the recording is stopped.One of the things you’ll notice right away is that the site names have already been extracted for you:SiteName1=sp2010pillars SiteName2=Projects SiteName3=M300DigitalCamera SharePoint specific extraction rules
  • From Soma:Agile Teams. With Visual Studio 2012, we introduced a wealth of features to support agile teams, from stakeholders to developers to testers to project managers, and Update 1 further builds upon this focus.  The update includes many usability improvements to enable user productivity while managing projects in the web-based interface for Team Foundation Server, such as with new ways to navigate around the UI, more cases where dragging and dropping is relevant, and a much improved source viewing and diffing experience.  Update 1 also includes Kanban support: in addition to the existing Scrum and task board support, the Kanban support offers a new range of project tracking options, including a Kanban board and a cumulative flow diagram.  In fact, Update 1 includes for Team Foundation Server most of the improvements made to Team Foundation Service in recent months.  Visual Studio now also includes a new visualization feature, Code Map, which enables developers to dynamically build views of relevant areas of a code base in order to understand and navigate its relationships quickly.VS BLOG:Track project progress with a Kanban board (http://tfspreview.com/en-us/home/news/2012/aug-13/)Assign tasks to user stories through drag and drop in the taskboard (http://tfspreview.com/en-us/home/news/2012/sep-17/)Assign ownership through drag and drop in the people view of the taskboard (http://tfspreview.com/en-us/home/news/2012/sep-17/)Enables building code maps to easily understand relationships and navigate between disparate locations BHARRY:Kanban support – You may have seen the new kanban feature we introduced on our cloud service recently.  In our first update, we’ll be bringing that and some additional improvements.  This will give you an even broader set of choices for managing your project.  You can use our Scrum based Agile Project Management tools, Kanban or Project and Project Server – or a combination of them.Usability improvements – Every sprint, on the hosted service, we announce a set of small improvements – like drag & drop assignment of tasks, counts on links & attachments tabs, etc.  They are each a small thing but together they add up to increased usability and productivity.  Our first update will include plethora of these kinds of improvements.
  • VS Blog:
  • VSALM:Code Analysis for Windows Phone applicationsVisual Studio Premium and Ultimate 2012 can use the full Code Analysis rule set to analyze Windows Phone Applications to discover potential issues in your code, such as non-secure data access, usage violations, and design problems. With Visual Studio update 1 we have tuned these rules to reduce the quantity of false warnings; including CA2149 Transparent code must not reference security critical itemsData driving Windows Store unit testsData driving has now been added to the Windows Store unit test library. By adding multiple DataRowattibutes to your test method you now create multiple test iterations. In the following snippet is an example a data driven unit test by specifying two test iterations.Eg.[DataTestMethod][DataRow(1,2,3)][DataRow(4,5,6)]Windows Store C++ unit testing enhancementsYou can now add references to C++ Windows Store executables and custom XAML controls in you C++ Windows Store unit test libraries.NOTE: We also plan to release a helper library for asynchronous tests on Visual Studio GalleryARM native dump debugging supportNow debug dumps of native C++ apps from ARM powered computers and devices with the same dump debugging functionality that you are accustomed to on x86 or x64.  To get started, just open the dump file in Visual Studio and click on the action link to start debugging!The ability to group by trait information in the Visual Studio Test Explorer The ability to filter by traits was enabled in the last CTP.  In this CTP we now enable filtering by user definable traits for Windows Store unit tests and Native unit tests.From Soma:Windows Development. A big focus area for us when designing Visual Studio 2012 was in enabling developers to build stellar apps for Windows, and that trend continues with Update 1, with which we’ve improved Windows development in a variety of areas.  Back in June, we announced we would enable C++ applications to target Windows XP from Visual Studio 2012, and that support is now available as part of Update 1. For Windows Store applications for Windows 8, Visual Studio 2012 Update 1 includes support for both mixed-mode managed/native debugging and for native ARM dump debugging.  Update 1 also includes improved diagnostics and testing support for Windows Store apps, such as with a JavaScript memory analysis tool, support for data-driven unit tests, and C++ unit testing enhancements. Additionally, for developers building apps for Windows Phone 8, we’ve enabled code analysis to help improve the quality of their phone apps.
  • VS Blog:The JavaScript Memory Analysis tool enables developers to inspect the memory usage in their Windows Store Applications written primarily in JavaScript and be able to diagnose potential leaks.See the MSDN content: Analyzing memory usage in Windows Store apps (JavaScript)Analyzing memory usage in Windows Store apps (JavaScript)The JavaScript Memory Analyzer is available in Visual Studio 2012 Update 1 to help you understand memory usage and find memory leaks in your Windows Store apps built for Windows using JavaScript. The JavaScript Memory Analyzer can do these things for you:Help you quickly find memory usage issues in your app by emphasizing the most relevant data.You get this data in snapshot summaries that show the differences between two snapshots, and that provide links to more detailed views.Provide views of dominators, types, roots, DOM elements, and Windows Runtime objects to help isolate issues.Reduce non-actionable information in the JavaScript heap data.Objects that aren't created directly in your app code are automatically filtered out. You can also type identifier names to further filter data.
  • VS Blog:
  • From Soma:Continuous Quality. Last but not least, enabling continuous quality is a key focus area for Update 1, beyond the Windows and SharePoint testing features already mentioned.  This spans testing at all levels, from the management of tests to their execution.  For example, code coverage is now supported for manual testing of ASP.NET applications, enabling testers to analyze which areas of a code base are used during manual testing (similar to the support already enabled for automated tests).  Cross-browser testing is now supported, with the ability to record tests on Internet Explorer and later replay them with most modern browsers.  Test Explorer in Visual Studio has been augmented to enable custom “traits”; these traits are specified in the tests, allowing developers to specify how tests should be grouped and run.  Microsoft Test Manager has also been enhanced in several customer-requested areas, such as with support for pausing/resuming of manual test sessions and automatically creating an image log of all actions performed during an exploratory testing session.VSALM:The ability to group by trait information in the Visual Studio Test Explorer The ability to filter by traits was enabled in the last CTP.  In this CTP we now enable filtering by user definable traits for Windows Store unit tests and Native unit tests.Terje:Using Traits and Projects for groupingLet us start with a MSTest based example.  In a sample project we add 3 tests, and put them into separate categories.  This is done by adding the TestCategory attribute to the method, and the name of the category as a string. Using more trait conceptsAs mentioned above, Traits can also be based on some other properties.   Owner and Priority are explicit and straight forward enough,  whereas TestProperty gives you a property-value system.  That means you can extend the Traits with your own concepts using TestProperties.
  • Code Map – Code Map is a super cool new feature in the architecture tools that allows me to incrementally build up an architecture/dependency diagram as I explore code.  It makes walking into an existing code base and exploring it WAY easier than it ever has been before.  You can incrementally lay out a diagram one element at a time (class, method, etc) as you explore the code.  You can “query” to expand the diagram – like adding all derived classes or all referencing methods, etc to incrementally understand the code dependencies.
  • VSALM:
  • VSALM:Create an Image action log from exploratory testsOne of the exciting features in Visual Studio 2012 was the ability to create an image action log in coded UI tests and for exploratory tests –when targeting Windows Store applications.  With this CTP we have added the capability to capture an image log for any exploratory test.
  • VSALM:Create an Image action log from exploratory testsOne of the exciting features in Visual Studio 2012 was the ability to create an image action log in coded UI tests and for exploratory tests –when targeting Windows Store applications.  With this CTP we have added the capability to capture an image log for any exploratory test.
  • From VS Blog:We have added a three new features to Coded UI tests: the ability to configure search properties for recording on web applications, handle unexpected error/dialogs with playback retry mechanism and the ability to enable/disable HTML logger using APIsThere have been a few changes in Visual Studio 2012 how Coded UI Test are run & how to enable logging. Now we can have both .NET v4.0 & v4.5 type Coded UI Test projects. Note this is an extension to previous blog on enabling tracing for Coded UI Test which is also applicable for Coded UI Test as well.Below are various ways for enabling logs in Coded UI TestScenarioMethod to enable logTarget framework version v4.0 & no App.config file present in the test projectOpen \\Common7\\IDE\\QTAgent32_40.exe.configModify value for EqtTraceLevel to the log level you wantSave the fileTarget framework version v4.5 & no app.config file present in the test projectOpen \\Common7\\IDE\\QTAgent32.exe.configModify value for EqtTraceLevel to the log level you wantSave the fileApp.config file present in test projectOpen App.config file in the projectAdd following entry under configuration node                Enabling logging from Test code itselfPlayback.PlaybackSettings.LoggerOverrideState = HtmlLoggerState.AllActionSnapshot;Please refer to MSDN These same settings are applicable for Visual Studio 2012 Test Agent as well.
  • VS Blog:Integration with System Center for IntelliTrace analysis of APM exception alerts enables opening of APM exception events from Visual Studio IDE as if the exception was captured during the IntelliTrace historical debugging session. See What's New in System Center 2012 SP1 - Operations Manager for more information.Integration with Team Foundation Server 2010 and Team Foundation Server 2012To speed interactions between operations and development, it is essential to quickly detect and fix problems that might need assistance from the engineering team. System Center 2012 Service Pack 1 (SP1), Operations Manager can integrate with development tools, such as Team Foundation Server (TFS) and Visual Studio, enabling deep troubleshooting and streamlining communications between developers and IT operations. You can synchronize Operations Manager alerts and Team Foundation Server (TFS) work items. Operations Manager integration with TFS introduces a new work item type definition, Operational Issue, which can be embedded into any of your organization’s engineering processes. After enabling synchronization, IT operations can manually assign alerts to the engineering team. Assigning an alert to engineering creates a new work item in Team Foundation Server. The workflow tracks and synchronizes changes made to TFS work items and changes made to associated alerts in Operations Manager.Compared to the Microsoft Visual Studio Team Foundation Server 2010 Work Item Synchronization management pack, SP1 features include:Shipped as part of Operations Manager, included in the SP1 MediaImproved security – synchronization account no longer requires TFS administrative rights Improved design of the Operational Issue WITDImproved design of the configuration WizardIntroduced support for TFS Area PathSupport for default Team ProjectsSynchronization for new APM alert types from IIS8 web applications, WCF, Windows Services, and also for non-APM alertsLocalization of Wizard UI and MP elements, and compatibility with localized versions of TFSSynchronize file attachments that can reside on a network file share or appended to TFS work items.Automatically route and close alerts to TFSIT operations can open TFS work items directly from the Operations Manager console using built-in integration with TFS web UI.Conversion of Application Performance Monitoring events to IntelliTrace formatThis new monitoring capability allows for opening of APM exception events from Visual Studio IDE as if the exception was captured during the IntelliTrace historical debugging session. Developers can stay within their familiar environment to examine complete exception call stack, for example: method parameters captured at the time of exception, and can navigate between the source code modules that participated in the exception call chain. Tightly integrated with TFS Work Item Synchronization Management Pack, this capability instantaneously brings generated IntelliTrace logs to TFS work items assigned to engineering. This can result in streamlining communications between IT Operations and Development and enriching the development experience with analysis of root causes of the application failure, reducing the mean time to recovery (MTTR) for the problems detected by APM.Features include:APM exception events can be saved in IntelliTrace file format directly from Application DiagnosticsDebug Symbols can be late-bound in Visual Studio 2012 allowing developers to navigate through source code, even when the production environment has no symbols loadedDevelopers can see one level of parameters that are converted and visible in the Visual Studio 2012 Ultimate Locals window, and displayed in the context of the selected call stack frameDevelopers can see additional method specific information (i.e. a connection string for ExecuteReader() method) in the Visual Studio 2012 Locals window in the context of the selected call stack frameTraces are automatically attached to APM exception events and can be automatically added to TFS work items or stored on a network file share. Developers can open traces using Visual Studio 2012 Ultimate and troubleshoot application problems while staying in their development environment.Collecting Historical Traces Using IntelliTrace Profiling Management PackSystem Center 2012 SP1 – Operations Manager includes IntelliTrace Profiling Management Pack. This management pack lets you capturing historical traces directly from the Operations Manager console. These traces can help developers investigate problems by giving them visibility to application execution history without the developers needing access to the servers where the applications ran. Developers can use Visual Studio 2012 Ultimate to open collected traces.IntelliTrace Profiling Management Pack automatically deploys the necessary infrastructure, IntelliTrace Collector, to the designated servers. When traces are collected, they are uploaded to a network file share and attached to Operations Manager alerts. Traces are uploaded to the management server using the same secure Operations Manager channel that agents use to communicate with the management servers. By configuring Team Foundation Server (TFS) synchronization, traces can be automatically added or linked to TFS work items.
  • VS Blog:
  • Blend for VS 2012 – We’ve added back Blend for VS 2012, including support for WPF, Silverlight and Sketchflow.
  • Zain Blog
  • VSALM Blog
  • From Soma:Finally, though unrelated to Update 1, if you’re looking for even more functionality in Visual Studio 2012, consider installing the recently released and free Productivity Power Tools add-in from the Visual Studio Gallery.  Created by individuals on the Visual Studio team, this is a pack of extensions focused on further streamlining the developer experience within Visual Studio 2012, with features like colorized parameter help, a custom document well, automatic brace completion, an enhanced scroll bar, and much more.
  • Want to know more?
  • Want to know more?

The Newest of the New with Visual Studio and TFS 2012 The Newest of the New with Visual Studio and TFS 2012 Presentation Transcript