Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Webanwendungen testen
Search
Oliver Klee
April 05, 2017
Technology
0
110
Webanwendungen testen
Oliver Klee
April 05, 2017
Tweet
Share
More Decks by Oliver Klee
See All by Oliver Klee
Content-Synchronisierung
oliverklee
0
16
Gewaltfreie Kommunikation: ein Crashkurs
oliverklee
0
52
Motivationspsychologie und Gamification in Non-Profit-Organisationen
oliverklee
0
82
Test-driven development with PHPUnit
oliverklee
0
160
Writing PHPUnit tests for TYPO3 extensions
oliverklee
0
140
Software quality for TYPO3 projects: A story of cheese, games and tools
oliverklee
0
210
TDD für Senior-Devs
oliverklee
0
62
Gamification für Arbeit in Communities
oliverklee
0
110
Software quality, cheese and games
oliverklee
0
290
Other Decks in Technology
See All in Technology
コードを書く隙間を見つけて生きていく技術/Findy 思考の現在地
fujiwara3
21
4.1k
Algyan イベント振り返り
linyixian
0
170
スタートアップの技術顧問を3年間続けて発生した事と気付き
biwakonbu
0
150
Exadata Database Service on Dedicated Infrastructure(ExaDB-D) UI スクリーン・キャプチャ集
oracle4engineer
PRO
1
1.4k
人間の尊厳、幸福、アクセシビリティ / 第116回「WEB TOUCH MEETING」アクセシビリティSP
nulabinc
PRO
2
160
普段有償でサポート業務をしているCSAが技術知見を無料で公開する理由
07jp27
1
610
**強い**エンジニアのなり方 - フィードバックサイクルを勝ち取る / grow one day each day
soudai
58
17k
20240416_devopsdaystokyo
kzkmaeda
1
150
TransitGatewayの基礎
toru_kubota
0
220
Databricksを活用してDELISH KITCHENのレシピレコメンドを開発した話
furu8
0
240
2024/4/26 コンピュータ歴史博物館解説告知
toshi_atsumi
0
180
プロダクト開発における ソフトウェアサプライチェーンセキュリティ: 実践的フレームワークとその活用 / Software Supply Chain Security in Product Development: Practical Framework and their applications
nttcom
1
310
Featured
See All Featured
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
15
1.4k
Keith and Marios Guide to Fast Websites
keithpitt
408
22k
Ruby is Unlike a Banana
tanoku
95
10k
Six Lessons from altMBA
skipperchong
19
3k
Design by the Numbers
sachag
274
18k
Designing with Data
zakiwarfel
95
4.8k
Clear Off the Table
cherdarchuk
82
310k
The Art of Programming - Codeland 2020
erikaheidi
41
12k
The Cult of Friendly URLs
andyhume
73
5.6k
How to Ace a Technical Interview
jacobian
272
22k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
12
1.5k
Writing Fast Ruby
sferik
619
60k
Transcript
Testen von Webanwendungen Oliver Klee, 2017-04 @oliklee
[email protected]
Tests automatisieren?
Test-Level http://dabrorius.github.io/2015/06/tested-be-thy-name.html
Unit-Tests sind klein und schnell
Integrationstests testen das Zusammenspiel von Komponenten
Systemtests testen das große Ganze
Test-Typen
Blackbox-Tests testen das nach außen Sichtbare
Whitebox-Tests wie genau es innen funktioniert testen,
Functional Tests
Akzeptanztests
Anti- Zombie- Tests-
Regressionstests
Smoketests
Smoketests
Story-Tests für Behavior-Driven Development (BDD)
Wieso denn bluß?
Manuelles Testen ist mühsam
Automatisierte Tests sind schnell
Unit-Tests für die Realty-Manager- Extension
>1600 Tests
< 60 Sekunden
Sicher sein, dass der Code das Richtige tut
Verhindern, dass deine Änderungen etwas anderes kaputt machen
Verhindern, dass andere Leute deinen Code kaputtmachen
Auch bei komplexen Projekten nichts kaputt machen
Baue ein Sicherheitsnetz fürs Refactoring
Verbessere die Struktur des Codes
Grün fühlt sich gut an!
Wo testen?
Auf dem lokalen Rechner
Auf dem Server
Continuous Integration öfter mal einchecken =
Der Continuous-Integration-Server überwacht den Code Git-Repository Push / Pull-Request Continuous-
Integration-Server Hey, eine Änderung! Checks laufen lassen Bericht
Code-Review-Frontends Continuous Integration und Git-Frontends Git-Frontends Continuous Integration GitHub GitLab
CI Travis CI Gerrit Jenkins Semaphore
Was bei der CI testen? automatisierte Tests Commit- Messages Coding-Standards
Code linten Code-Metriken Performance statische Analyse verschiedene Umgebungen Baut es?
None
None
Deployment Continuous
Besonderheiten mit Webanwendungen
Tools
Tools Akzeptanztests-Framework Capybara (Ruby) Driver Selenium WebKit Poltergeist RackTest Tests-Framework
RSpec Test::Unit MiniTest BDD-Framework Cucumber (Ruby) Behat (PHP) SpecFlow (C#) Gherkin
Gherkin
Womit anfangen? etwas Einfachem Starter-Tests Abhängigkeiten auflösen Code- Zerbrechlichkeit Kosten
von Bugs Regression-Tests neue Features Refactorings