Decoupling Scenarios from Behavior-Driven Testssqrlab.ce.sharif.edu/wp-content/uploads/2016/10/...1...

Post on 16-Feb-2020

8 views 0 download

Transcript of Decoupling Scenarios from Behavior-Driven Testssqrlab.ce.sharif.edu/wp-content/uploads/2016/10/...1...

1

Decoupling Scenariosfrom Behavior-Driven Tests

Seyed Mehran KholdiMohammad Hossein Sekhavat

Supervisor: Seyed Hassan Mirian Hosseinabadi

Sharif University Of TechnologyComputer Engineering Department

Summer 1395

2

Outline

● Background● Proposed Framework● Implementation● Case study● Future Works

3

Background

● Testing is hard!● TDD: Test Driven Development● But...

4

Background (cntd.)

● BDD

5

Proposed Framework

● The problem with current BDD impl.

● Our proposed solution

6

Proposed Framework (cntd.)

● Pros:– Reduced LOC– Reduced maintenance cost– Increased effectiveness

● Actor– Model-based user behavior simulation– An operational system

7

From Criteria to Test

8

Final Solution: Scenario Specification

9

Final Solution: Scenario Detection

10

Final Solution: Scenario Detection (ctd.)Given => When => Then

11

Future Works

● Different actor implementations– Integration with existing tools

● Scenario pruning● New metrics (e.g. coverage)● Automatic action detection● Real-world case study

12

Q & A

Thanks