sprint3r tpse2014-atdd-with-robot-framework

23
SPRINT3R Siam Chamnankit Co., Ltd., Odd-e (Thailand) Co., Ltd. and Alliance ธวัชัย จงสุวรรณไพศาล SPRINT3R โดย บริษัท สยามํานาญกิจ จํากัด บริษัท ออด-อี (ประเทศไทย) จํากัด และพันธมิตร ACCEPTANCE TEST DRIVEN DEVELOPMENT WITH ROBOT FRAMEWORK THAILAND PRACTICAL SOFTWARE ENGINEERING 2014

Upload: thawatchai-jong

Post on 28-Jun-2015

293 views

Category:

Technology


1 download

DESCRIPTION

atdd-with-robot-framework

TRANSCRIPT

Page 1: Sprint3r tpse2014-atdd-with-robot-framework

SPRINT3R Siam Chamnankit Co., Ltd., Odd-e (Thailand) Co., Ltd. and Alliance

ธวัชัย จงสุวรรณไพศาล SPRINT3R โดย บริษัท สยามํานาญกิจ จํากัด บริษัท ออด-อี (ประเทศไทย) จํากัด และพันธมิตร

A C C E P TA N C E T E S T D R I V E N D E V E L O P M E N T W I T H R O B O T F R A M E W O R K

T H A I L A N D P R A C T I C A L S O F T WA R E E N G I N E E R I N G 2 0 1 4

Page 2: Sprint3r tpse2014-atdd-with-robot-framework

Team OrganisationAlternative Organisation

Domain Expert Programmer

Tester

Who must take responsibility for QUALITY when something happened?

WHOLE TEAM

Page 3: Sprint3r tpse2014-atdd-with-robot-framework

Test Case

inputs to test software and verify with expected outputs

Test Case = Test Rule + Test Data

Page 4: Sprint3r tpse2014-atdd-with-robot-framework

Simple Testing Level

Unit Testing

Integration Testing

System Testing

Acceptance Testing

Page 5: Sprint3r tpse2014-atdd-with-robot-framework

Test Automation Pyramid

Mike Cohn's test automation pyramid.

Page 6: Sprint3r tpse2014-atdd-with-robot-framework

SPRINT3R Siam Chamnankit Co., Ltd., Odd-e (Thailand) Co., Ltd. and Alliance

A C C E P TA N C E T E S T

Acceptance Test

Acceptance Criteria

Examples (Data + Scenarios)

=

+

Page 7: Sprint3r tpse2014-atdd-with-robot-framework

A C C E P TA N C E T E S T D R I V E N D E V E L O P M E N T

SPRINT3R Siam Chamnankit Co., Ltd., Odd-e (Thailand) Co., Ltd. and Alliance

A development methodology

based on communication

between the business

customers, the developers, and

the testers.

Page 8: Sprint3r tpse2014-atdd-with-robot-framework

SPRINT3R Siam Chamnankit Co., Ltd., Odd-e (Thailand) Co., Ltd. and Alliance

SPRINT3R Siam Chamnankit Co., Ltd., Odd-e (Thailand) Co., Ltd. and Alliance

Page 9: Sprint3r tpse2014-atdd-with-robot-framework

AT D D & T D D

SPRINT3R Siam Chamnankit Co., Ltd., Odd-e (Thailand) Co., Ltd. and Alliance

Excerpt From: Lasse Koskela. “Test Driven: Practical TDD and Acceptance TDD for Java Developers.”

Page 10: Sprint3r tpse2014-atdd-with-robot-framework

SPRINT3R Siam Chamnankit Co., Ltd., Odd-e (Thailand) Co., Ltd. and Alliance

R O B O T F R A M E W O R K

• Test automation framework

• For acceptance testing (ATDD)

• https://code.google.com/p/robotframework/

• Keyword-Driven Development

• Based on Python

• Open source

• Sponsor by Nokia Siemens Networks

Page 11: Sprint3r tpse2014-atdd-with-robot-framework

SPRINT3R Siam Chamnankit Co., Ltd., Odd-e (Thailand) Co., Ltd. and Alliance

T E S T S T R U C T U R E

*** Settings ***

*** Variables ***

*** Test Cases ***

*** Keywords ***

Page 12: Sprint3r tpse2014-atdd-with-robot-framework

SPRINT3R Siam Chamnankit Co., Ltd., Odd-e (Thailand) Co., Ltd. and Alliance

S TA N D A R D L I B R A R I E S

• Build in

• Operating System

• Screenshot

• Telnet

• String

• Collections

• Remote

• Dialog

• XML

• Process

Page 13: Sprint3r tpse2014-atdd-with-robot-framework

SPRINT3R Siam Chamnankit Co., Ltd., Odd-e (Thailand) Co., Ltd. and Alliance

E X T E R N A L L I B R A R I E S

• Selenium2Library

• Android

• iOS

• Database

• FTP

• HTTP

• MongoDB

• SSH

• AutoItLibrary

• Swing

Page 14: Sprint3r tpse2014-atdd-with-robot-framework

SPRINT3R Siam Chamnankit Co., Ltd., Odd-e (Thailand) Co., Ltd. and Alliance

S E L E N I U M K E Y W O R D S

• Open Browser <url> <browser>

• Input Text <locator> <value>

• Click Button <locator>

• Click Link <locator>

Page 15: Sprint3r tpse2014-atdd-with-robot-framework

SPRINT3R Siam Chamnankit Co., Ltd., Odd-e (Thailand) Co., Ltd. and Alliance

S E L E N I U M K E Y W O R D S

• Close Browser

• Wait Until Page Contains <text>

• Page Should Contain <text>

• Title Should Be <text>

Page 16: Sprint3r tpse2014-atdd-with-robot-framework

SPRINT3R Siam Chamnankit Co., Ltd., Odd-e (Thailand) Co., Ltd. and Alliance

M O R E

Page 17: Sprint3r tpse2014-atdd-with-robot-framework

SPRINT3R Siam Chamnankit Co., Ltd., Odd-e (Thailand) Co., Ltd. and Alliance

D E M O

Test Cases Keyword Expected Result

Search Siam-Chamnankit Siam Chamnankit sprint3r.com

Search Sprint3R Sprint3R Sprint3R [N.] (ซพรินเทอร์)

Page 18: Sprint3r tpse2014-atdd-with-robot-framework

SPRINT3R Siam Chamnankit Co., Ltd., Odd-e (Thailand) Co., Ltd. and Alliance

D E M O

create file: search_page.txt

run: $pybot search_page.txt

Page 19: Sprint3r tpse2014-atdd-with-robot-framework

SPRINT3R Siam Chamnankit Co., Ltd., Odd-e (Thailand) Co., Ltd. and Alliance

D E M O

run: $pybot search_page.txt

Page 20: Sprint3r tpse2014-atdd-with-robot-framework

SPRINT3R Siam Chamnankit Co., Ltd., Odd-e (Thailand) Co., Ltd. and Alliance

D E M O

run: $pybot search_pages.txt

Page 21: Sprint3r tpse2014-atdd-with-robot-framework

SPRINT3R Siam Chamnankit Co., Ltd., Odd-e (Thailand) Co., Ltd. and Alliance

D E M O

Page 22: Sprint3r tpse2014-atdd-with-robot-framework

SPRINT3R Siam Chamnankit Co., Ltd., Odd-e (Thailand) Co., Ltd. and Alliance

D E M O

Page 23: Sprint3r tpse2014-atdd-with-robot-framework

SPRINT3R Siam Chamnankit Co., Ltd., Odd-e (Thailand) Co., Ltd. and Alliance

J A M M I N G

https://bitbucket.org/robotframework/webdemo/wiki/Home

d e m o

m o d e