acceptance test driven development and robot framework
Post on 17-Aug-2015
126 Views
Preview:
TRANSCRIPT
Acceptance Test Driven
Development & Robot Framework
Steve Zhang
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
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
Specification By Example
• Single source of truth• Ubiquitous language• Executable specification• Living Documentation
Specification By Example
User Story Scenario example
Given/When/Then Gherkin Syntax
Gherkin(BDD) syntax example
BDD/ATDD supported frameworks
Gherkin(BDD) syntax
Simple keyword-driven syntax
Data-driven tests
Robot Framework ATDD example
Web testing with Robot Framework and Selenium2Libraryhttps://bitbucket.org/robotframework/webdemo/wiki/Home
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
Move tests from the end to the Front
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
top related