![Page 1: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/1.jpg)
SEQIS 10 things API Testing
![Page 2: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/2.jpg)
SEQIS 10 things API Testing
Herzlich Willkommen!
Reinhard Salomon
SEQIS Geschäftsleitung
![Page 3: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/3.jpg)
SEQIS 10 things – Programm 2014
• 20.03.14 Business Analyse Einführung in den BABOK® Guide
• 26.06.14 API Testing: Nur ein Schnittstelle und der passende Test
• 18.09.14 Test Driven Development – die Methode für Qualitätsbewusste
• 20.11.14 Der Test als zentrale Schnittstelle in einem IT Projekt
30.06.2014 10 things – API Testing
![Page 4: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/4.jpg)
SEQIS 10 things API Testing
Klaus Schlacher
SEQIS – Managing Consultant
![Page 5: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/5.jpg)
Moderne Software
30.06.2014 10 things – API Testing
![Page 6: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/6.jpg)
API Wachstum
30.06.2014 10 things – API Testing
![Page 7: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/7.jpg)
„Eine Programmierschnittstelle ist ein Programmteil, der von einem
Softwaresystem anderen Programmen zur Anbindung an das System zur Verfügung
gestellt wird.“
Wikipedia
30.06.2014 10 things – API Testing
![Page 8: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/8.jpg)
Tag Cloud
30.06.2014 10 things – API Testing
![Page 9: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/9.jpg)
Tag Cloud
30.06.2014 10 things – API Testing
![Page 10: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/10.jpg)
Testautomationspyramide
30.06.2014 10 things – API Testing
![Page 11: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/11.jpg)
Klassen- und Objektmethoden
30.06.2014 10 things – API Testing
![Page 12: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/12.jpg)
1. Denken Sie beim Test nicht nur an die klassischen Schnittstellen
• Klassen- und Objektmethoden • Datenbanken • Proprietäre Kommunikation • …
30.06.2014 10 things – API Testing
![Page 13: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/13.jpg)
Tag Cloud
30.06.2014 10 things – API Testing
![Page 14: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/14.jpg)
Tag Cloud
30.06.2014 10 things – API Testing
![Page 15: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/15.jpg)
Unit Test
• Entwickler
• Kurz, fokussiert
• Frameworks • JUnit
• xUnit
30.06.2014 10 things – API Testing
![Page 16: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/16.jpg)
Unit Test
30.06.2014 10 things – API Testing
![Page 17: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/17.jpg)
Unit Test
30.06.2014 10 things – API Testing
![Page 18: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/18.jpg)
2. Vernachlässigen Sie nicht Ihr Testfallfundament: Unit Tests
• Ein gutes Fundament ist wichtig, um darauf aufbauen
zu können
30.06.2014 10 things – API Testing
![Page 19: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/19.jpg)
Tag Cloud
30.06.2014 10 things – API Testing
![Page 20: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/20.jpg)
Tag Cloud
30.06.2014 10 things – API Testing
![Page 21: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/21.jpg)
Test Driven Development
• Agile Entwicklungsmethode
• iSQI Zertifikat
• 10 things am 18.9.2014
30.06.2014 10 things – API Testing
![Page 22: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/22.jpg)
Continuous Integration
• Source und Test gemeinsam eingecheckt
• Häufige Integration
• Nightly Build
• Automatisiertes Reporting
30.06.2014 10 things – API Testing
![Page 23: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/23.jpg)
3. Setzen Sie auf kontinuierliche Qualitätssicherung
• Mittels TDD erweitern Sie kontinuierlich Ihr Fallnetz • Der Nightly Build ist für die automatisierten Tests der
ideale Partner
30.06.2014 10 things – API Testing
![Page 24: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/24.jpg)
Tag Cloud
30.06.2014 10 things – API Testing
![Page 25: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/25.jpg)
Tag Cloud
30.06.2014 10 things – API Testing
![Page 26: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/26.jpg)
Tag Cloud
30.06.2014 10 things – API Testing
![Page 27: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/27.jpg)
SOAP
• Simple Object Access Protocol
• Weit verbreitetes Webserviceprotokoll
• Austausch von Daten
• Remote Procedure Call
• Basiert auf XML
30.06.2014 10 things – API Testing
![Page 28: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/28.jpg)
SOAP Beispiel
• Calculator
• URL: http://ws1.parasoft.com/glue/calculator
• Simple Addition
30.06.2014 10 things – API Testing
![Page 29: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/29.jpg)
SOAP Beispiel
30.06.2014 10 things – API Testing
![Page 30: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/30.jpg)
SOAP Beispiel
30.06.2014 10 things – API Testing
![Page 31: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/31.jpg)
SOAPUI
• Version 5
• Freeware
• Kostenpflichtige PRO Version
• Umfangreiche Features
30.06.2014 10 things – API Testing
![Page 32: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/32.jpg)
WSDL
• Web Services Description Language
• Beschreibungssprache für Netzwerkdienste • Metasprache
• Div. Beschreibungselemente
• Industrieller Standard (W3C)
• Basis für Testtools
30.06.2014 10 things – API Testing
![Page 33: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/33.jpg)
WSDL
• Web Services Description Language
• Beschreibungssprache für Netzwerkdienste • Metasprache
• Div. Beschreibungselemente
• Industrieller Standard (W3C)
• Basis für Testtools
30.06.2014 10 things – API Testing
![Page 34: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/34.jpg)
Tag Cloud
30.06.2014 10 things – API Testing
![Page 35: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/35.jpg)
Tag Cloud
30.06.2014 10 things – API Testing
![Page 36: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/36.jpg)
Tag Cloud
30.06.2014 10 things – API Testing
![Page 37: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/37.jpg)
Tag Cloud
30.06.2014 10 things – API Testing
![Page 38: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/38.jpg)
Funktionaler Test
• Aufruf des Service • „add“ operation
• Werte für x und y
• Check des Ergebnisses • Wert von Result überprüfen
30.06.2014 10 things – API Testing
![Page 39: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/39.jpg)
Funktionaler Test (semimanuell)
30.06.2014 10 things – API Testing
![Page 40: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/40.jpg)
Funktionaler Test (automatisch)
• Erstellen einer Testsuite
• Erstellen eines Testfalls sowie Teststeps
• Erstellen und Einbinden von Asserts • Ergebnis entspricht der Summe der Eingabewerte
30.06.2014 10 things – API Testing
![Page 41: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/41.jpg)
Funktionaler Test (automatisch)
• Erstellen einer Testsuite
• Erstellen eines Testfalls sowie Teststeps
• Erstellen und Einbinden von Asserts • Ergebnis entspricht der Summe der Eingabewerte
30.06.2014 10 things – API Testing
![Page 42: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/42.jpg)
4. Nutzen Sie Ihr bestehendes Test Know How • API Tests unterscheiden sich in dem Punkt nicht
wirklich von GUI Tests
30.06.2014 10 things – API Testing
![Page 43: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/43.jpg)
Tag Cloud
30.06.2014 10 things – API Testing
![Page 44: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/44.jpg)
Tag Cloud
30.06.2014 10 things – API Testing
![Page 45: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/45.jpg)
Testdaten
• Abdeckung • Ein Testfall nicht ausreichend
• Vielzahl an Testfällen notwendig
• Erstellen von einzelnen Testfällen • Unübersichtlich
• Unwartbar
30.06.2014 10 things – API Testing
![Page 46: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/46.jpg)
Data Driven
• Testfälle • Identer Ablauf
• Unterschiedliche Eingabewerte
• Entsprechend unterschiedliche Ausgabewerte
• Iteration von Datentupel • Grid
• XLS
30.06.2014 10 things – API Testing
![Page 47: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/47.jpg)
5. Setzen Sie auf bewährte Mittel • Excel Dateien als Datenlieferant für Data Driven Test
haben sich durchaus bewährt • Nutzen Sie toolgestützte Kombinatorik, z. B. mit
Hexawise (http://www.hexawise.com)
30.06.2014 10 things – API Testing
![Page 48: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/48.jpg)
Tag Cloud
30.06.2014 10 things – API Testing
![Page 49: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/49.jpg)
Tag Cloud
30.06.2014 10 things – API Testing
![Page 50: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/50.jpg)
Tag Cloud
30.06.2014 10 things – API Testing
![Page 51: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/51.jpg)
Testautomationspyramide
30.06.2014 10 things – API Testing
![Page 52: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/52.jpg)
6. Berücksichtigen Sie: „Service Tests gehören den Testern!“
• Große Robustheit gegenüber GUI Automation • Absicherung der Qualität von wichtigen
Komponenten
30.06.2014 10 things – API Testing
![Page 53: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/53.jpg)
Mocking, Virtualisierung
• Service (noch) nicht vorhanden
• Hohe Kosten pro Aufruf
• Aufruf dauert lange
30.06.2014 10 things – API Testing
![Page 54: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/54.jpg)
Mocking, Virtualisierung
• Service (noch) nicht vorhanden
• Hohe Kosten pro Aufruf
• Aufruf dauert lange
30.06.2014 10 things – API Testing
![Page 55: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/55.jpg)
Mocking, Virtualisierung
• Simpel • Liefert was zurück
• Komplex • Random
• Antwort aufgrund des Inputs (Mapping)
• Berechnete Antwort
30.06.2014 10 things – API Testing
![Page 56: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/56.jpg)
7. Beginnen Sie möglichst früh mit Ihren Tests • Test als Entwicklungsbegleitung und nicht als
nachfolgende Kontrollinstanz • Voraussetzung ist ein möglichst stabiler
Schnittstellenkontrakt
30.06.2014 10 things – API Testing
![Page 57: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/57.jpg)
Tag Cloud
30.06.2014 10 things – API Testing
![Page 58: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/58.jpg)
Tag Cloud
30.06.2014 10 things – API Testing
![Page 59: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/59.jpg)
Wolkenflug, Schlechtwetterflug
• Werte außerhalb des Eingabebereichs
• Ungültige Werte, Wertkombinationen
• Fehlende Eingaben
• Durchgemischter Request
• Missgebildeter Request
• Nicht verfügbare Subservices
30.06.2014 10 things – API Testing
![Page 60: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/60.jpg)
Nicht-funktionale Tests
30.06.2014 10 things – API Testing
![Page 61: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/61.jpg)
Nicht-funktionale Tests
• Last- und Performance Tests • SLA Check
• Usability der Schnittstelle
• Wartbarkeit • Naming
• Verständlichkeit der Struktur
30.06.2014 10 things – API Testing
![Page 62: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/62.jpg)
8. Überprüfen Sie nicht nur das Erwartete • Prüfen Sie die API auf Herz und Nieren • Vergessen Sie nicht auf die Nicht-funktionalen Tests
30.06.2014 10 things – API Testing
![Page 63: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/63.jpg)
Tag Cloud
30.06.2014 10 things – API Testing
![Page 64: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/64.jpg)
Tag Cloud
30.06.2014 10 things – API Testing
![Page 65: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/65.jpg)
REST
• Representational State Transfer • Eine URL für ein Service
• Verschiedene Repräsentationen (HTML, JSON, XML)
• Zustandslos
• Mehrere Verben (GET, POST, PUT, …)
• WADL • Web Application Description Language
30.06.2014 10 things – API Testing
![Page 66: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/66.jpg)
REST und SoapUI
30.06.2014 10 things – API Testing
![Page 67: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/67.jpg)
REST und SoapUI
30.06.2014 10 things – API Testing
![Page 68: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/68.jpg)
REST und SoapUI
30.06.2014 10 things – API Testing
![Page 69: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/69.jpg)
REST und SoapUI
30.06.2014 10 things – API Testing
![Page 70: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/70.jpg)
Tag Cloud
30.06.2014 10 things – API Testing
![Page 71: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/71.jpg)
Tag Cloud
30.06.2014 10 things – API Testing
![Page 72: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/72.jpg)
Tag Cloud
30.06.2014 10 things – API Testing
![Page 73: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/73.jpg)
Tag Cloud
30.06.2014 10 things – API Testing
![Page 74: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/74.jpg)
Service Test Tools
• HP Unified Functional Tester
• IBM Rational Service Tester for SOA Quality
• SmartBear SoapUI
• Crosscheck Networks SoapSonar
• …
• Eigenentwicklung SOAP/REST Library
30.06.2014 10 things – API Testing
![Page 75: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/75.jpg)
Service Virtualization Tools
• HP Service Virtualization
• IBM Rational Test Virtualization
• CA LISA Service Virtualization
• Parasoft Service Virtualization
30.06.2014 10 things – API Testing
![Page 76: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/76.jpg)
9. Nehmen Sie sich zur Toolauswahl genügend Zeit • Gehen Sie methodisch vor • Eine übereilte Toolauswahl wurde schon öfters bereut
30.06.2014 10 things – API Testing
![Page 77: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/77.jpg)
Lasttest Tools
• Grundsätzlich geeignet
• Tools • HP LoadRunner
• IBM Rational Performance Tester
• Neotys Neoload
• JMeter
• …
30.06.2014 10 things – API Testing
![Page 78: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/78.jpg)
10. Ziehen Sie auch die nicht so offensichtlichen Dinge in Betracht
30.06.2014 10 things – API Testing
![Page 79: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/79.jpg)
Tag Cloud
30.06.2014 10 things – API Testing
![Page 80: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/80.jpg)
Tag Cloud
30.06.2014 10 things – API Testing
![Page 81: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/81.jpg)
Tag Cloud
30.06.2014 10 things – API Testing
![Page 82: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/82.jpg)
Tag Cloud
30.06.2014 10 things – API Testing
![Page 83: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/83.jpg)
Tag Cloud
30.06.2014 10 things – API Testing
![Page 84: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/84.jpg)
Wo kann ich mehr erfahren?
• Wikipedia
• Toolhersteller
• SEQIS
30.06.2014 10 things – API Testing
![Page 85: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/85.jpg)
Zusammenfassung
1. Denken Sie beim Test nicht nur an die klassischen Schnittstellen
2. Vernachlässigen Sie nicht Ihr Testfallfundament: Unit Tests
3. Setzen Sie auf kontinuierliche Qualitätssicherung
4. Nutzen Sie Ihr bestehendes Test Know How
5. Setzen Sie auf bewährte Mittel
6. Berücksichtigen Sie: „Service Tests gehören den Testern!“
7. Beginnen Sie möglichst früh mit Ihren Tests
8. Überprüfen Sie nicht nur das Erwartete
9. Nehmen Sie sich zur Toolauswahl genügend Zeit
10. Ziehen Sie auch die nicht so offensichtlichen Dinge in Betracht
30.06.2014 10 things – API Testing
![Page 86: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/86.jpg)
Tag Cloud
30.06.2014 10 things – API Testing
![Page 87: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/87.jpg)
API Tests?
Mit SEQIS ganz vorne dabei!
30.06.2014 10 things – API Testing
![Page 88: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/88.jpg)
SEQIS 10 things – Programm 2014
• 20.03.14 Business Analyse Einführung in den BABOK® Guide
• 26.06.14 API Testing: Nur ein Schnittstelle und der passende Test
• 18.09.14 Test Driven Development – die Methode für Qualitätsbewusste
• 20.11.14 Der Test als zentrale Schnittstelle in einem IT Projekt
30.06.2014 10 things – API Testing
![Page 89: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/89.jpg)
API Tests?
Mit SEQIS ganz vorne dabei!
30.06.2014 10 things – API Testing
![Page 90: SEQIS 10 things API Testing...SEQIS 10 things – Programm 2014 • 20.03.14 Business Analyse Einführung in den BABOK® Guide • 26.06.14 API Testing: Nur ein Schnittstelle und der](https://reader036.vdokument.com/reader036/viewer/2022071216/60488071cf994a563f206b04/html5/thumbnails/90.jpg)
SEQIS 10 things API Testing
Klaus Schlacher
SEQIS – Managing Consultant