acceptance test driven development and robot framework
TRANSCRIPT
![Page 1: Acceptance Test Driven Development and Robot Framework](https://reader033.vdocument.in/reader033/viewer/2022061607/55d10adcbb61eba51a8b47d6/html5/thumbnails/1.jpg)
Acceptance Test Driven
Development & Robot Framework
Steve Zhang
![Page 2: Acceptance Test Driven Development and Robot Framework](https://reader033.vdocument.in/reader033/viewer/2022061607/55d10adcbb61eba51a8b47d6/html5/thumbnails/2.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022061607/55d10adcbb61eba51a8b47d6/html5/thumbnails/3.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022061607/55d10adcbb61eba51a8b47d6/html5/thumbnails/4.jpg)
Specification By Example
![Page 5: Acceptance Test Driven Development and Robot Framework](https://reader033.vdocument.in/reader033/viewer/2022061607/55d10adcbb61eba51a8b47d6/html5/thumbnails/5.jpg)
• Single source of truth• Ubiquitous language• Executable specification• Living Documentation
Specification By Example
![Page 6: Acceptance Test Driven Development and Robot Framework](https://reader033.vdocument.in/reader033/viewer/2022061607/55d10adcbb61eba51a8b47d6/html5/thumbnails/6.jpg)
![Page 7: Acceptance Test Driven Development and Robot Framework](https://reader033.vdocument.in/reader033/viewer/2022061607/55d10adcbb61eba51a8b47d6/html5/thumbnails/7.jpg)
User Story Scenario example
![Page 8: Acceptance Test Driven Development and Robot Framework](https://reader033.vdocument.in/reader033/viewer/2022061607/55d10adcbb61eba51a8b47d6/html5/thumbnails/8.jpg)
Given/When/Then Gherkin Syntax
![Page 9: Acceptance Test Driven Development and Robot Framework](https://reader033.vdocument.in/reader033/viewer/2022061607/55d10adcbb61eba51a8b47d6/html5/thumbnails/9.jpg)
Gherkin(BDD) syntax example
![Page 10: Acceptance Test Driven Development and Robot Framework](https://reader033.vdocument.in/reader033/viewer/2022061607/55d10adcbb61eba51a8b47d6/html5/thumbnails/10.jpg)
BDD/ATDD supported frameworks
![Page 11: Acceptance Test Driven Development and Robot Framework](https://reader033.vdocument.in/reader033/viewer/2022061607/55d10adcbb61eba51a8b47d6/html5/thumbnails/11.jpg)
Gherkin(BDD) syntax
![Page 12: Acceptance Test Driven Development and Robot Framework](https://reader033.vdocument.in/reader033/viewer/2022061607/55d10adcbb61eba51a8b47d6/html5/thumbnails/12.jpg)
Simple keyword-driven syntax
![Page 13: Acceptance Test Driven Development and Robot Framework](https://reader033.vdocument.in/reader033/viewer/2022061607/55d10adcbb61eba51a8b47d6/html5/thumbnails/13.jpg)
Data-driven tests
![Page 14: Acceptance Test Driven Development and Robot Framework](https://reader033.vdocument.in/reader033/viewer/2022061607/55d10adcbb61eba51a8b47d6/html5/thumbnails/14.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022061607/55d10adcbb61eba51a8b47d6/html5/thumbnails/15.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022061607/55d10adcbb61eba51a8b47d6/html5/thumbnails/16.jpg)
Move tests from the end to the Front
![Page 17: Acceptance Test Driven Development and Robot Framework](https://reader033.vdocument.in/reader033/viewer/2022061607/55d10adcbb61eba51a8b47d6/html5/thumbnails/17.jpg)
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