31

Turn specs into high quality apps

Embed Size (px)

Citation preview

Page 1: Turn specs into high quality apps
Page 2: Turn specs into high quality apps

Turn specs intohigh quality appsMarco KuiperWilfred Wattel

#TechDaysNL

Page 3: Turn specs into high quality apps

Marco KuiperDeveloper

Wilfred WattelTestmanager

Page 4: Turn specs into high quality apps

Railpocket

Page 5: Turn specs into high quality apps

OpvolgerRailpocket

Page 6: Turn specs into high quality apps
Page 7: Turn specs into high quality apps
Page 8: Turn specs into high quality apps

ThreeAmigos

PO

Dev

QA

Page 9: Turn specs into high quality apps

Features*.feature

Scenario

Scenario

Scenario

Scenario

Page 10: Turn specs into high quality apps

Gherkin

Page 11: Turn specs into high quality apps

Gherkinscenarios

GivenSetup

WhenTrigger

ThenVerify

// Arrange

// Act

// Assert

Page 12: Turn specs into high quality apps

Gherkinscenarios

Givena great session is presented

Whenthe presentation is over

Thenthe audience will clap

“Acceptance Driven Presentation”

Page 13: Turn specs into high quality apps

Gherkinexamples

Givena <level> session is presented

Whenthe presentation is over

Thenthe audience will <reaction>

Examples: | level | reaction | | great | clap | | horrible | cry |

Page 14: Turn specs into high quality apps

Quality?

Page 15: Turn specs into high quality apps

UI

Service

UnitMIKE COHN

} Focus

Page 16: Turn specs into high quality apps

Implementation

Service

Unit

UI

Unit test

Integration test

System test

Acceptance Test

Ambassador Test

Live

Test Levels

3

COI

O

TAP

Page 17: Turn specs into high quality apps

IngredientsVisual Studio or Xamarin StudioSpecflowNUnitXamarin.UITestSource code or APK

Page 18: Turn specs into high quality apps

Step definitionsscenarios

[Given(@"a great session is presented")]public void AGreatSessionIsPresented() { // Setup}

[When(@"the presentation is over")]public void ThePresentationIsOver() { // Trigger}

[Then(@"the audience will clap")]public void TheAudienceWillClap() { // Verify}

Page 19: Turn specs into high quality apps

Step definitionsexamples

[Given(@"a ""(.*)"" session is presented")]public void ASessionIsPresented( string level) { // Setup}

[When(@"the presentation is over")]public void ThePresentationIsOver() { // Trigger}

[Then(@"the audience will ""(.*)""")]public void TheAudienceWill ( string reaction) { // Verify}

Page 20: Turn specs into high quality apps

Xamarin.UITest

Page 21: Turn specs into high quality apps

Show us

Page 22: Turn specs into high quality apps

Awesome!

Page 23: Turn specs into high quality apps
Page 24: Turn specs into high quality apps

Benefits

Specs + Testcases + Scripts coupled

Scalable regression framework Testcases to run Testexecution runs Devices Operating systems

Page 25: Turn specs into high quality apps

Xammy Award

Page 26: Turn specs into high quality apps

Future

Service

Unit

UI

Unit test

Integration test

System test

Acceptance Test

Ambassador Test

Live

Test Levels

COI

O

TAP

3

Page 27: Turn specs into high quality apps

XAMARIN

Page 28: Turn specs into high quality apps

BuzzwordsTDD, ATDD, BDD, SBE, DevOps, CD etc.

Page 29: Turn specs into high quality apps

More?Sourcehttps://github.com/marcofolio/TechDays2016

Articleshttp://marcofolio.net/

More?@geertvdc

Xamarin test cloud: from zero to hero in automated UI testing

@jfversluisThe circle of life: ALM for your Xamarin

app with VSTS and HockeyApp

@nzthiagoEnabling DevOps Practices for Mobile

Apps with Visual Studio Team Services, Xamarin and HockeyApp

Page 30: Turn specs into high quality apps

Turn specs intohigh quality appsThank you!

#TechDaysNL

Page 31: Turn specs into high quality apps

#hashtag hereSession code here

Turn specs intohigh quality appsThank you!

Givena <level> session is presented

Whenthe presentation is over

Thenthe audience will <reaction>

Examples: | level | reaction | | great | clap | | horrible | cry | | great | clap | | horrible | cry |