the safety net of functional web testing

15
The Safety Net of Functional Web Testing Ole Gunnar Borstad [email protected] @ogborstad

Upload: ogborstad

Post on 07-Jul-2015

688 views

Category:

Technology


0 download

DESCRIPTION

Lightning talk about functional testing in the context of "brownfield projects" and legacy code.

TRANSCRIPT

Page 1: The Safety Net of Functional Web Testing

The Safety Net of Functional

Web Testing

Ole Gunnar Borstad

[email protected]

@ogborstad

Page 2: The Safety Net of Functional Web Testing

Responding to change...

... over following a plan

Page 3: The Safety Net of Functional Web Testing

Change I tell you!

We implement agile process

frameworks...

Page 4: The Safety Net of Functional Web Testing

Agility is a about code

maintainability!

Page 5: The Safety Net of Functional Web Testing

Agile codebase...

...through testability and confidence

Page 6: The Safety Net of Functional Web Testing

Greenfield development

Page 7: The Safety Net of Functional Web Testing

Brownfield and legacy projects

Page 8: The Safety Net of Functional Web Testing
Page 9: The Safety Net of Functional Web Testing

Integration tests

"If you do plan to refactor your code..., a

practical way to make sure you don't break

anything during the refactoring phase is to

write integration-style tests against your

production system”Roy Osherove, the Art of Unit Testing

Page 10: The Safety Net of Functional Web Testing

Safety Net

Page 11: The Safety Net of Functional Web Testing
Page 12: The Safety Net of Functional Web Testing

Automated Functional Testing

...simulates a user...

and requires no manual work!

Page 13: The Safety Net of Functional Web Testing

WatiNWeb Application Testing in .NET

IE browser = new IE("http://www.somesite.com");

browser.TextField("username").TypeText("Ole Gunnar");

browser.Button("login").Click();

Page 14: The Safety Net of Functional Web Testing

WatiN Demo

Page 15: The Safety Net of Functional Web Testing

Thank you!

Ole Gunnar Borstad

[email protected]

@ogborstad