TechBubbles Microsoft Technology BLOG

Testing features added in Visual Studio 2012 Update1

This post explains the enhanced testing features that were introduced with Visual Studio 2012 update 1. Visual Studio 2012 now supports code coverage analysis during the manual testing. This functionality can be enabled by configuring test settings in Microsoft Test manager. This feature is currently supported for ASP.NET applications that running on IIS.

To enable this feature click the Test Settings in Microsoft Test manager

image

1. Click new in Test settings Manager screen and enter the name for your test and select type of test

image

2. click next to select the roles that you want to use

image

3. To collect code coverage you must ensure that PDB files are available and select the data that you want to collect

image

click configure against code coverage to give the pdb files path

image

4. once the settings are defined then switch to testing center to define the new test settings and appropriate test environment

image

5. Once the environment is configured then choose the target build

image

6. once the environment is selected and chosen the target build then begin the manual testing

image

image

7. Run through your manual steps in internet explorer, when you completed your testing code coverage summary will appear in build summary page of Visual Studio as shown above. Build summary page in Visual Studio gives you an overview on over all percentage of code blocks covered.

8. Click on covered results link to look at the details, Visual Studio displays hierarchical view that allows you to drill-down to individual methods to know which were executed and which were not. It even allows you to jump to the code from code coverage view

image

Code coverage for manual testing provides another way to increase the effectiveness of testing strategy

9. Visual Studio 2012 has added cross-browser support ability to play-back the code-UI tests. As before you can use coded-ui test builder to record your actions by interacting with the website. Record the action, generated the test code and add an assertion to test whether the result is matched as expected. Rebuild the solution after completing your action which causes your test to appear in test viewer window.

10. With additional one line of code you can play back the actions in chrome  and Firefox browsers.

image

11. Microsoft Test manager supports the creation of test suites based on meaning full queries , With the latest update you can perform more sophisticated queries

image

You can query the test cases related to the bugs

image

12. With Visual Studio 2012 and Microsoft Test manager you can pause multiple tests at same time

13. Visual Studio 2012 now allows you to create image action live for any exploratory test which in turn allows you to create more documentation for your test case

image

14. Visual Studio 2012 allows you to display your tests by outcome , duration and project which makes testing process more organised

image

Reference screenshots: http://channel9.msdn.com/Niners/alvinho . More about can be read here

Share this post :

About the author

Kalyan Bandarupalli

My name is kalyan, I am a software architect and builds the applications using Microsoft .NET technologies. Here I am trying to share what I feel and what I think with whoever comes along wandering to Internet home of mine.I hope that this page and its contents will speak for me and that is the reason I am not going to say anything specially about my self here.

Add Comment

TechBubbles Microsoft Technology BLOG

Follow me

Archives

Tag Cloud