31
Moving from Ad Hoc Testing to Continuous Test Data with FitNesse Joris Meerts, 12 November 2014 Moving from Ad Hoc Testing to Continuous Test Data with FitNesse Agile Testing Days Joris Meerts, 12 November 2014

Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Embed Size (px)

Citation preview

Page 1: Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Joris Meerts, 12 November 2014

Moving from Ad Hoc Testing to Continuous Test Data with

FitNesse

Agile Testing Days

Joris Meerts, 12 November 2014

Page 2: Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Joris Meerts, 12 November 2014

about me

• Joris Meerts

• Software tester since 2007

• Capgemini

• www.testingreferences.com

• Context-driven school

• Member of the Dutch Exploratory Workshop on Testing (DEWT)

• @testingref

Page 3: Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Joris Meerts, 12 November 2014

• The context

• The starting point

• FitNesse

• Java

• Some lessons learned

outline

Page 4: Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Joris Meerts, 12 November 2014

The context

Page 5: Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Joris Meerts, 12 November 2014

Page 6: Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Joris Meerts, 12 November 2014

Page 7: Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Joris Meerts, 12 November 2014

• Legacy e-commerce database

• Many (190+) complex tables

• Many stored procedures, triggers

• Complex scheduling

• Hardly any functional documentation

• Processing may take days or weeks

the context: the system

Page 8: Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Joris Meerts, 12 November 2014

• Agile team

• 1 - 2 senior testers

• 4 - 6 senior database developers

• 1 product owner

• 1 scrum master

the context: the team

Page 9: Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Joris Meerts, 12 November 2014

The starting point

Page 10: Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Joris Meerts, 12 November 2014

Why automate?

Page 11: Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Joris Meerts, 12 November 2014

• Ad hoc testing

• No scheduled tests

• ‘Technical tests’ in FitNesse

• No use of development tools for test code

the starting point

Page 12: Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Joris Meerts, 12 November 2014

• FitNesse, Java, JUnit, Jenkins, Eclipse

• Advanced SQL, PL/SQL

a first time for everything

Page 13: Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Joris Meerts, 12 November 2014

FitNesse

Page 14: Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Joris Meerts, 12 November 2014

test architecture

Page 15: Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Joris Meerts, 12 November 2014

why I would recommend FitNesse

• All purpose tool

• Modularization

• Separating data from tests

• Symbolic links

Page 16: Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Joris Meerts, 12 November 2014

all purpose tool

• Database

• REST interface

• SSH / Telnet

• FTP

• No GUI automation

Page 17: Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Joris Meerts, 12 November 2014

• Use of building blocks

• Parameterized includes

modularization

Page 18: Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Joris Meerts, 12 November 2014

Page 19: Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Joris Meerts, 12 November 2014

• Include test data in the scripts

• Restrict the use of test data

• Easy to find out where the data is used

• Use scripts to check configuration

separate data from tests

Page 20: Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Joris Meerts, 12 November 2014

• Symbolic links

• Templates

• Tags

other useful things in FitNesse

Page 21: Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Joris Meerts, 12 November 2014

Java

Page 22: Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Joris Meerts, 12 November 2014

or…

how to learn programming in a

nutshell

Page 23: Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Joris Meerts, 12 November 2014

• JUnit for testing

• Very easy build and deploy

• Eclipse for development

• OpenJPA replacing scattered SQL statements

some wonderful things about Java

Page 24: Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Joris Meerts, 12 November 2014

Some lessons learned

Page 25: Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Joris Meerts, 12 November 2014

some lessons learned

• It is not easy to strike a balance between developing test automation and (exploratory) testing.

Page 26: Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Joris Meerts, 12 November 2014

some lessons learned

• Code that is hard to test can really drainthe energy out of the test automation effort.

Page 27: Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Joris Meerts, 12 November 2014

some lessons learned

• Test automation does not become a team effort by placing it in the definition of done.

• Who should write the test code?

Page 28: Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Joris Meerts, 12 November 2014

Determination is an important success factor.

some lessons learned

Page 29: Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Joris Meerts, 12 November 2014

• Data is running through the system.

• We are able to observe system behavior.

• We are able to test some features better.

• Test automation catches bugs.

conclusion

Page 30: Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Joris Meerts, 12 November 2014

• Gojko Adzic - Test Driven .NET Development with FitNesse (2009)

• Stack Overflow

• Bruce Eckel - Thinking in Java (2006)

some useful resources

Page 31: Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Moving from Ad Hoc Testing to Continuous Test Data with FitNesse

Joris Meerts, 12 November 2014

[email protected]

@testingref

www.testingreferences.com

patternsofproof.wordpress.com

thank you for attending my presentation