+ All Categories
Home > Documents > Testing by Duncan Butler Sara Stephens. Too much to cover.

Testing by Duncan Butler Sara Stephens. Too much to cover.

Date post: 19-Dec-2015
Category:
View: 213 times
Download: 2 times
Share this document with a friend
20
Testing by Duncan Butler Sara Stephens
Transcript

TestingbyDuncan ButlerSara Stephens

Too much to cover

Bugs Cost!

Types of Testing

• Regression Tests• Integration Tests• Unit Tests

Regression Tests

• Used By QA• Project Managers• Team Leads• Developers• Can be Written by all the above!

Manual Test practices

Manual Test

DEMO

Manual Test

Automated Test

DEMO

WebAii

• Free Framework• Development Canvas• Tests ASPX, Java-script and Silverlight applications

Available At: http://www.artoftest.com

Automated Test

DEMO

WebAii

• Its just code!

• Can be run from Visual Studio, the command prompt and a build script

WebAii

Design Canvas

• Makes writing tests easier

• Simply record the actions the user carried out in the browser

Design Canvas Test

DEMO

TDD

The ‘T’ word, that can change the way you think about code.

Test Driven Design

• You are not allowed to write any more test code than is sufficient to fail, and not compiling is failing.

• You are not allowed to write any production code unless it is to make a failing test pass

• You are not allowed to write any more production code than is sufficient to pass the one failing unit test.

Calculator Kata

• Calculator given an empty string returns zero• Calculator given a single number returns that number• Calculator given two numbers separated by a ‘,’ returns the

sum• Calculator given multiple numbers separated by ‘,’ returns the

sum• Calculator takes a new line as a separator• Calculator takes a new separator denoted by a starting “//”

followed by a new line

TDD Demo

DEMO


Recommended