Presentation is loading. Please wait.

Presentation is loading. Please wait.

TestIstanbul 2013 Conference “Future Of Testing: New Techniques and Methodologies” Don’t Test Your Application (Just) by its Cover – Test its APIs as Well!

Similar presentations


Presentation on theme: "TestIstanbul 2013 Conference “Future Of Testing: New Techniques and Methodologies” Don’t Test Your Application (Just) by its Cover – Test its APIs as Well!"— Presentation transcript:

1 TestIstanbul 2013 Conference “Future Of Testing: New Techniques and Methodologies” Don’t Test Your Application (Just) by its Cover – Test its APIs as Well! Malcolm Isaacs (@MalcolmIsaacs) Malcolm.Isaacs@hp.com

2 TestIstanbul Conferences 2013 Agenda Introduction to APIsWhat Should we Test?Challenges of API TestingGetting Started With API TestingPracticalities of Writing a Test

3 TestIstanbul Conferences 2013 What is this Session About? by Malcolm Isaacs

4 TestIstanbul Conferences 2013 Introduction to APIs REST (XML) SOAP IDOC JDBC JMS HTTP/HTML HTTP/HTML 5 3rd Party Service Provider Business Partner.NET Composite App Infrastructure REST (JSON) Consumers HTTP/XML

5 TestIstanbul Conferences 2013 Just Some of the APIs…

6 TestIstanbul Conferences 2013 Just Some of the APIs… Tove Jani Reminder Don't forget me this weekend!

7 TestIstanbul Conferences 2013 Just Some of the APIs… This is a link

8 TestIstanbul Conferences 2013 Just Some of the APIs… HP

9 TestIstanbul Conferences 2013 Just Some of the APIs… http://www.acme.com/phonebook/UserDetails/12345

10 TestIstanbul Conferences 2013 Just Some of the APIs… { "glossary": { “title": "example glossary", "GlossDiv": { "title": "S", "GlossList": { "GlossEntry": { "ID": "SGML", "GlossTerm": “SGML", "GlossDef": { "para": "A meta-markup language.", "GlossSeeAlso": ["GML", "XML"] }, "GlossSee": "markup“ } } } } }

11 TestIstanbul Conferences 2013 Just Some of the APIs… public class HelloWorld { // method main(): The app’s entry point public static void main (String[] args) { System.out.println ("Hello World!"); }

12 TestIstanbul Conferences 2013 Just Some of the APIs…

13 TestIstanbul Conferences 2013 What Should We Test? Unit Tests

14 TestIstanbul Conferences 2013 What Should We Test? REST (XML) SOAP IDOC JDBC JMS 3rd Party Service Provider Business Partner.NET Composite App Infrastructure REST (JSON) Integration/System Tests

15 TestIstanbul Conferences 2013 What Should We Test? REST (XML) SOAP IDOC JDBC JMS HTTP/HTML HTTP/HTML 5 3rd Party Service Provider Business Partner.NET Composite App Infrastructure REST (JSON) Consumers Functional Tests

16 TestIstanbul Conferences 2013 What Should We Test? REST (XML) SOAP IDOC JDBC JMS HTTP/HTML HTTP/HTML 5 3rd Party Service Provider Business Partner.NET Composite App Infrastructure REST (JSON) Consumers HTTP/XML Load/Stress Tests

17 TestIstanbul Conferences 2013 What Should We Test? REST (XML) SOAP IDOC JDBC JMS HTTP/HTML HTTP/HTML 5 3rd Party Service Provider Business Partner.NET Composite App Infrastructure REST (JSON) Consumer s HTTP/XML Security Tests

18 TestIstanbul Conferences 2013 Challenges of API Testing Source:http://fitdeck.com/Portals/24254/images/Sunrise.jpghttp://fitdeck.com/Portals/24254/images/Sunrise.jpg

19 TestIstanbul Conferences 2013 Challenges of API Testing – Early Testing Source:http://fitdeck.com/Portals/24254/images/Sunrise.jpghttp://fitdeck.com/Portals/24254/images/Sunrise.jpg

20 TestIstanbul Conferences 2013 Challenges of API Testing - Collaboration Source: http://www.hp.com/hpinfo/newsroom/feature_stories/2009/images/09collaboration.jpghttp://www.hp.com/hpinfo/newsroom/feature_stories/2009/images/09collaboration.jpg

21 TestIstanbul Conferences 2013 Challenges of API Testing - Standards Source: http://www.infoq.com/news/2007/03/innoq-ws-standards-posterhttp://www.infoq.com/news/2007/03/innoq-ws-standards-poster

22 TestIstanbul Conferences 2013 Challenges of API Testing – Managing Change/Versions

23 TestIstanbul Conferences 2013 Challenges of API Testing – Availability Source: http://www.lego.com/en-US/shared/PageNotFound.aspxhttp://www.lego.com/en-US/shared/PageNotFound.aspx

24 TestIstanbul Conferences 2013 Challenges of API Testing - Security Source: http://icdn9.digitaltrends.com/image/security-650x0.jpghttp://icdn9.digitaltrends.com/image/security-650x0.jpg

25 TestIstanbul Conferences 2013 Challenges of API Testing - Data Sources: http://upload.wikimedia.org/wikipedia/en/e/e3/Microsoft_Excel_2013_Default_Screen.png,http://upload.wikimedia.org/wikipedia/en/e/e3/Microsoft_Excel_2013_Default_Screen.png http://en.wikipedia.org/wiki/SOAP_(protocol)http://en.wikipedia.org/wiki/SOAP_(protocol), http://en.wikipedia.org/wiki/Jsonhttp://en.wikipedia.org/wiki/Json IBM { "firstName": "John", "lastName": "Smith", "age": 25, "address": { "streetAddess": "21 2nd Street", "city": "New York", "state": "NY", "postalCode": 10021 }, "phoneNumbers": [ { "type": "home", "number": "212 555-1234" }, { "type": "fax", "number": "646 555-4567" } ] }

26 TestIstanbul Conferences 2013 Challenges of API Testing at a Glance Testing Challenges Functional Testing Data Management Composite QM Project Change Impact Load Testing Implications End-to-end/ Business Process Testing Security Architecture Governance Simulating Missing Services

27 TestIstanbul Conferences 2013 Getting Started with API Testing Engage Engineer Find a Tool Automate Tests Run Tests

28 TestIstanbul Conferences 2013 Practicalities of Writing a Test Import APIDefine Flow Configure Properties Define Checkpoints Run TestRoll Out

29 TestIstanbul Conferences 2013 Summary

30 Thank You! Malcolm Isaacs (@MalcolmIsaacs) Malcolm.Isaacs@hp.com


Download ppt "TestIstanbul 2013 Conference “Future Of Testing: New Techniques and Methodologies” Don’t Test Your Application (Just) by its Cover – Test its APIs as Well!"

Similar presentations


Ads by Google