acceptance test driven development and robot framework

17
Acceptance Test Driven Development & Robot Framework Steve Zhang

Upload: steve-zhang

Post on 17-Aug-2015

131 views

Category:

Software


3 download

TRANSCRIPT

Page 1: Acceptance Test Driven Development and Robot Framework

Acceptance Test Driven

Development & Robot Framework

Steve Zhang

Page 2: Acceptance Test Driven Development and Robot Framework

The benefits of Robot Framework

• It is more than just an test tool for developers

• It can help us improve our process• It helps us collaborate among

different roles: Business people, QA and developers

• The whole team will get benefit from it

Page 3: Acceptance Test Driven Development and Robot Framework

Acceptance Test Driven Development

• ATDD – Acceptance Test Driven Development

• BDD – Behavior Driven Development• Specification By Example

They are talking about the same thing from different perspective

Page 4: Acceptance Test Driven Development and Robot Framework

Specification By Example

Page 5: Acceptance Test Driven Development and Robot Framework

• Single source of truth• Ubiquitous language• Executable specification• Living Documentation

Specification By Example

Page 6: Acceptance Test Driven Development and Robot Framework
Page 7: Acceptance Test Driven Development and Robot Framework

User Story Scenario example

Page 8: Acceptance Test Driven Development and Robot Framework

Given/When/Then Gherkin Syntax

Page 9: Acceptance Test Driven Development and Robot Framework

Gherkin(BDD) syntax example

Page 10: Acceptance Test Driven Development and Robot Framework

BDD/ATDD supported frameworks

Page 11: Acceptance Test Driven Development and Robot Framework

Gherkin(BDD) syntax

Page 12: Acceptance Test Driven Development and Robot Framework

Simple keyword-driven syntax

Page 13: Acceptance Test Driven Development and Robot Framework

Data-driven tests

Page 14: Acceptance Test Driven Development and Robot Framework

Robot Framework ATDD example

Web testing with Robot Framework and Selenium2Libraryhttps://bitbucket.org/robotframework/webdemo/wiki/Home

Page 15: Acceptance Test Driven Development and Robot Framework

How can we start ATDD• Write the functional tests at the same

time as the production code in each Sprint – Redefine the definition of DONE

• When fixing a UI related defect, write acceptance test to reproduce the issue, then make the test pass – ATDD

• Write acceptance criteria using Given/When/Then, then make them as automation test scripts

Page 16: Acceptance Test Driven Development and Robot Framework

Move tests from the end to the Front

Page 17: Acceptance Test Driven Development and Robot Framework

Resource

• ATDD using Robot Framework• Specification By Example Slides• ATDD with Robot Framework demo: http://code.google.com/p/atdd-with-robot-framework

• Web testing demo with Robot Framework

http://bit.ly/rf-web-test-demo