write your test cases in a domain-specific language

Post on 18-Mar-2018

207 Views

Category:

Software

3 Downloads

Preview:

Click to see full reader

TRANSCRIPT

!

!

T6#Session!6/25/2015! !11:30!AM!!!!!

“Write#Your#Test#Cases#in#a#Domain3Specific#Language”##

Presented#by:#

Beaumont#Brush#Dematic,#Inc.#

#####

Brought#to#you#by:#####

##

340!Corporate!Way,!Suite!300,!Orange!Park,!FL!32073!888D268D8770!E!904D278D0524!E!sqeinfo@sqe.com!E!www.sqe.com!

!

!!!!

!!!!! !!!!!

The quality lead for hardware controls projects at Dematic, Inc., Beaumont Brush started his career fifteen years ago as a developer of natural language processing and information extraction technologies. Beaumont became a product manager for companies that leveraged these technologies to accomplish such tasks as intelligent patent searches, automatically matching résumés to job descriptions, and extracting event data from unstructured field intelligence reports. Since settling into quality assurance ten years ago, he has developed and implemented agile test processes and led test automation projects. Beaumont's primary interest and specialty are in tightly integrating quality practices into the development lifecycle.

Beaumont Brush

Dematic, Inc.

Write&Your&Manual&Test&Cases&in&a&Domain3Specific&Language&

by&Beaumont&Brush&

Background&

A&manual&test&case&may&be&the&right&tool,&but…&

You&don’t&need&a&different&tool,&just&a&sharper&one&

Manual&test&cases&will&stay&dull&unGl&you&sharpen&them&

You&want&your&manual&test&case&to&cut&through&the&test&process&easily&

Sharpen&your&test&cases&with&a&Domain3Specific&Language&

Natural&language&is&a&dull&tool&

Natural&Language&is&too&expressive&

Syntax&and&semanGcs&are&unconstrained&

A&word&about&formaLng&

The&applicaGon&domain&is&constrained&

There&are&only&so&many&acGons&

There&are&only&so&many&objects&

There&are&only&so&many&ways&to&accomplish&something&

Natural&Language&does&not&lend&itself&to&abstracGon&

Define&AbstracGon&

Need&constrained&syntax&and&semanGcs&to&get&abstracGon&

It&is&possible,&but&not&pracGcal&

A&Domain3Specific&Language&(DSL)&is&a&sharp&tool&that&stays&sharp&

A&DSL&is&a&constrained&language&for&a&constrained&domain&

Define&DSL&

A&DSL&is&the&appropriate&choice&

A&DSL&is&easier&to&process&

You&know&what&to&expect&

Hierarchy&+&Order&=&Shared&Structure&

A&DSL&can&be&easily&and&straighTorwardly&abstracted&

Define&it&once&

Fix&it&once&

A&DSL&is&easy&to&implement&

Create&a&highly&specified&DSL&in&Python&

Create&a&more&funcGonal&DSL&with&Gherkin&&

A&test&case&DSL&cuts&through&the&test&process&easily&and&efficiently&

A&DSL&is&easier&to&maintain&

Use&a&limited&and&known&set&of&acGons&and&objects&

Don’t&Repeat&Yourself&

Rewrite&test&cases&less&

A&DSL&fits&seamlessly&into&the&development&process&

Use&exisGng&workflow&

Use&exisGng&IDE&

Use&exisGng&version&control&

Use&coding&standards&

Use&exisGng&code&review&process&

Some&other&potenGal&benefits&

top related