Decoupling Scenarios from Behavior-Driven T ests Seyed Mehran Kholdi Mohammad Hossein Sekhavat Supervisor: Seyed Hassan Mirian Hosseinabadi Sharif University Of T echnology Computer Engineering Department Summer 1395 1
Outline ● Background ● Proposed Framework ● Implementation ● Case study ● Future Works 2
Background ● Testing is hard! ● TDD: Test Driven Development ● But... 3
Background (cntd.) ● BDD 4
Proposed Framework The problem with current BDD impl. ● Our proposed solution ● 5
Proposed Framework (cntd.) ● Pros: – Reduced LOC – Reduced maintenance cost – Increased efgectiveness ● Actor – Model-based user behavior simulation – An operational system 6
From Criteria to Test 7
Final Solution: Scenario Specifjcation 8
Final Solution: Scenario Detection 9
Final Solution: Scenario Detection (ctd.) Given => When => Then 10
Future Works ● Difgerent actor implementations – Integration with existing tools ● Scenario pruning ● New metrics (e.g. coverage) ● Automatic action detection ● Real-world case study 11
Q & A Thanks 12
Recommend
More recommend