• Non ci sono risultati.

Méthodes de Test TP 2 — End-to-End Testing

N/A
N/A
Protected

Academic year: 2021

Condividi "Méthodes de Test TP 2 — End-to-End Testing"

Copied!
6
0
0

Testo completo

(1)

Méthodes de Test TP 2 — End-to-End Testing

Stefano Zacchiroli

zack@pps.univ-paris-diderot.fr

Laboratoire PPS, Université Paris Diderot

2013–2014

URL http://upsilon.cc/zack/teaching/1314/methtest/

Copyright © 2013 Stefano Zacchiroli

License Creative Commons Attribution-ShareAlike 3.0 Unported License http://creativecommons.org/licenses/by-sa/3.0/

Stefano Zacchiroli (Paris Diderot) End-to-End Testing 2013–2014 1 / 6

(2)

Some project ideas

HTTP server

Implementation of an HTTP server, capable of serving static files and interacting with CGI scripts. References:

https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol https://tools.ietf.org/html/rfc2616 (full specification)

Spreadsheet with GUI

Implement a minimal spreadsheet (a-la LibreOffice Calc), which uses

a GUI to interact with users.

(3)

Some project ideas (cont.)

SaaS calculator

Implement a simple calculator (arithmetic operations, trigonometry, base conversions, registries, etc.) that is used in the cloud as

“Software as a Service”: there is no user interface, but the calculator has an API (e.g. in REST style) with methods that exchange data in some machine-readable format (e.g. JSON, XML).

Batch source code formatter

Program that walk through the source code of a project and format all contained source files follow the project style guides.

easy start: indentation, fixed language

then: variable naming, directory structure, multi-language support, language auto-detection, etc.

Stefano Zacchiroli (Paris Diderot) End-to-End Testing 2013–2014 3 / 6

(4)

Your goal: get to the walking skeleton

These are all complex projects — they are no “2 hour hacks.”

Your assignment is to:

1

pick a project idea

ñ

feel free to propose other ideas you like, but validate with me before proceeding

2

kick-start TDD on it

ñ

understand the problem

ñ

broad-brush design. . .

3

. . . create the walking skeleton

ñ

automate: build, deployment,

1

end-to-end test

ñ

choose technologies as you go

4

complete iteration 0: make the first acceptance test pass

1

you can ignore deployment automation for now, but

think about how you

(5)

End-to-end testing

Remember that the first acceptance test should be end-to-end, i.e. it should exercise the system via its natural interfaces, and not via internal objects (as you did for unit testing).

To achieve that you should ask yourself the question what are the system natural interfaces?, and exercise those.

Stefano Zacchiroli (Paris Diderot) End-to-End Testing 2013–2014 5 / 6

(6)

GUI end-to-end testing

Testing GUIs is a delicate topic. Depending on the language you have several toolkits, based on different approaches to GUI testing (e.g. structure introspection vs screenshots)

For Java, here are some tools you might want to start from:

Swing introspection:

ñ

http://www.uispec4j.org/

ñ

https://code.google.com/p/windowlicker/

ñ

https://java.net/projects/jemmy/

Screenshot based:

ñ

http://www.sikuli.org/

Riferimenti

Documenti correlati

91/14 Christian JOERGES (ed.) European Product Safety, Internal Market Policy and the New Approach to Technical Harmonisation and Standards V ol. 91/15 Christian JOERGES Markt

FTIR spectra acquired at 60 K of samples obtained through more drastic etching conditions, are dominated by two components centered at 2,149 cm −1 and at 2,182 cm −1 due to CO

Further investigations using a mass separator will certify the selectivity of laser photoionization on Aluminum despite others atomic species present in the hot cavity,

An important process which can provide independent information on twist-3 TMDs is the di-hadron production in SIDIS described by interference functions [65-71]. In fact, the

Physics & Astronomy Department, University of California, Los Angeles, California 90095, USA (Received 25 May 2017; revised manuscript received 2 August 2017; published 30

L’ art. 1 esprime poco più dello stesso titolo di questo paragrafo, in quanto vi si stabilisce che attenua un reato “l’avere agito per motivi di particolare valore morale o

Se da un lato il riferimento alle teletai e al tema del lutto e della ricerca evidenzia la presenza degli strumenti a percussione negli episodi mitici della dea,

Già fin prima della partenza Juan Ramón, reduce da una delle sue più acute crisi depressive, alla sola idea del viaggio si trova in uno stato di esaltata euforia, condizione