Automated bdd style acceptance tests for MS Office add-ins

26

description

Outlined of talk about automated testing MS Office add-ins and WPF applications

Transcript of Automated bdd style acceptance tests for MS Office add-ins

Page 1: Automated bdd style  acceptance tests for MS Office add-ins
Page 2: Automated bdd style  acceptance tests for MS Office add-ins

Show Cucumber feature, write test, copy stubs, copy implementation, show old code, paste new

Page 3: Automated bdd style  acceptance tests for MS Office add-ins
Page 4: Automated bdd style  acceptance tests for MS Office add-ins

Show test, run test, run report generation, show created documents, show TestStack.White, AutoItX from .NET

Page 5: Automated bdd style  acceptance tests for MS Office add-ins

Page 6: Automated bdd style  acceptance tests for MS Office add-ins

Page 7: Automated bdd style  acceptance tests for MS Office add-ins

Page 8: Automated bdd style  acceptance tests for MS Office add-ins

IThreadingService, IViewService, ViewModel, ICommand, Dependency Injection Container, UnitWrappers

Page 9: Automated bdd style  acceptance tests for MS Office add-ins

Page 10: Automated bdd style  acceptance tests for MS Office add-ins

Show grouped DI container registrations, images, native dll

Page 11: Automated bdd style  acceptance tests for MS Office add-ins

Page 12: Automated bdd style  acceptance tests for MS Office add-ins

●●●●●

Page 13: Automated bdd style  acceptance tests for MS Office add-ins

Page 14: Automated bdd style  acceptance tests for MS Office add-ins

Page 15: Automated bdd style  acceptance tests for MS Office add-ins

Page 17: Automated bdd style  acceptance tests for MS Office add-ins
Page 18: Automated bdd style  acceptance tests for MS Office add-ins

Feature Unit Integration(TDD-style)

BDD-style acceptance

Run time 0.1s 2-10s 15s

Asserts 1 2 5

What to test ? ? Story and “acceptance” term say what

Class Several classes and external system

End-to-end real world scenario

Understand ability Good Bad Good

Amount of tests 30 5 2

Audience Dev ? Not only Dev

Page 19: Automated bdd style  acceptance tests for MS Office add-ins

Show sites of MSTestcontrib, StoryQ, SpecFlow, some big unit test with “because” and “when”/”then”, F# and IronPython testing expressiveness

Page 20: Automated bdd style  acceptance tests for MS Office add-ins

Page 21: Automated bdd style  acceptance tests for MS Office add-ins

Page 22: Automated bdd style  acceptance tests for MS Office add-ins

Tests are code and make production code:Cohesive, DecoupledExtensible, ReusableDocumented, Refactorable

Page 23: Automated bdd style  acceptance tests for MS Office add-ins

http://msdn.microsoft.com/en-us/library/windows/desktop/dd318452.aspx

There is no technological difference between automation and production code.Developers should be made thinking in terms of users via BDD

Page 24: Automated bdd style  acceptance tests for MS Office add-ins