Top Banner
© Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel www.sela.co.il All About Testing In Visual Studio 2012 Shai Raiten Senior Consultant Sela Group
18

All about testing in visual studio 2012

May 24, 2015

Download

Technology

Shai Raiten

My lecture from Israel ALM UG about Testing in Visual Studio 2012. This was a overview for all the test abilities in Visual Studio 2012 include a demo project.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: All about testing in visual studio 2012

© Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israelwww.sela.co.il

All About Testing In Visual Studio 2012

Shai RaitenSenior ConsultantSela Group

Page 2: All about testing in visual studio 2012

Agenda

Visual Studio Testing Tools

Unit Test

Fakes

Coded UI Test

Getting Started

Advanced Coding

Web Testing

Load Testing

Questions

Summary

Page 3: All about testing in visual studio 2012

Team Foundation Server Reporting

Web Test

Load Test

Coded UI Test

Unit Testing

Test Case Management

Lab Management

Microsoft Test Manager

Data Collectors (IntelliTrace™, Test Impact, Metrics)

Generalist SpecialistManual Testing Some scripting

Creates scripts to set up lab, create data

Strong scripting skills

Some coding skills

Strong coding

Develops fully automated testing

procedures

Expert coding skills

OtherAutomation

Tools

Visual Studio 2012 Testing Tools

Page 4: All about testing in visual studio 2012

Unit Test

The primary goal of unit testing is to take the smallest piece of testable software in the application, isolate it from the remainder of the code, and determine whether it behaves exactly as you expect.

• Testers Or Developers?• Documentation• Change Existing Code

• Avoid (Truck) Factor

Page 5: All about testing in visual studio 2012

Test Explorer

• Multiple test projects• Test Adapters– Nunit , Gtest , xUnit++– Chutzpah – JavaScript

• UITestMethod• DataRow• .NET regardless the target code• Run Every Build• Grouping – Outcome, Duration…

Page 6: All about testing in visual studio 2012

Fakes Framework (Pex & Moles)

• Shim – A shim modifies the compiled code of your application at run time so that instead of making a specified method call, it runs the shim code that your test provides.

• Stub - A stub replaces another class with a small substitute that implements the same interface.

Page 7: All about testing in visual studio 2012

Fakes Framework

Page 8: All about testing in visual studio 2012

Coded UI Test Features

• Functional Testing

• Generate code in C#/VB

• Intent aware recording and resilient playback

• Integrated with ALM story

– Build, deploy & test in lab or as part of build

– Local, remote runs, data collection

• Rich Extensibility

Page 9: All about testing in visual studio 2012

Automation Platform Support

Fully supported platform

Partial solution. Further work required to completeBest efforts. May work with known issues. No major ongoing investmentCurrently no support but on the roadmap for future releasesCurrently no support and none planned for now. Opportunity for partners

Platform 2012 Update 1 Notes

IE7/8 – HTML/AJAX

Windows Forms 2.0+.NET Fx Controls fully

supported, working on 3rd party support

WPF 3.5+.NET Fx Controls fully

supported, working on 3rd party support

Windows Win32

MFC

HTML 5/AJAX

Chrome / Fire Fox Update 1

SharePoint

Silverlight

Citrix/Terminal Services

Office Client Apps

IE 6

Opera/Safari

Flash/Java

SAP

http://tinyurl.com/CuitCrossBrowser

Page 10: All about testing in visual studio 2012

Create new Coded UI

Page 11: All about testing in visual studio 2012

Why Web Performance Test?

• Performance• Security Testing• No User Interface Complexity• Faster Testing• Easy Manipulation• Data Driven Test

• Load Test uses Web Test

Page 12: All about testing in visual studio 2012

13

Record Basic Web Test

Page 13: All about testing in visual studio 2012

Load Testing using VSTS

Load Test is used in several types of testing:

Smoke Test. Load Test. Stress Test. Capacity Test. Performance Test. Compatibility Test.

Page 14: All about testing in visual studio 2012

Create New Load Test

Page 15: All about testing in visual studio 2012
Page 16: All about testing in visual studio 2012
Page 17: All about testing in visual studio 2012

© Copyright SELA software & Education Labs Ltd. 14-18 Baruch Hirsch St.Bnei Brak 51202 Israel 18

Summary

Mature tools to improve testing and

team connection.

Complete Suite for Testers &

Developers

It’s Easy and Fast to Create

Automation.

Page 18: All about testing in visual studio 2012

Shai [email protected]

http://tinyurl.com/shai-rai

Thank You!