Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Testing Web Services

667 views

Published on

Slides from a talk I gave on Testing Web Services at QSI Tech Lunch on September 19, and will be repeating at the 2013 Columbus Code Camp.

Published in: Technology
  • Login to see the comments

  • Be the first to like this

Testing Web Services

  1. 1. Business Value…Achieved Tes$ng  Web  Services   Steinn  ‘Stan’  Jónsson   QSI  Tech  Lunch   September  19,  2013  
  2. 2. Business Value…Achieved whoami   •  Senior  Consultant  at  Quick  Solu$ons  
  3. 3. Business Value…Achieved whoami  -­‐  cont.   •  Agility        
  4. 4. Business Value…Achieved Agenda  
  5. 5. Business Value…Achieved Agenda  -­‐  cont.   •  Will  also  briefly  show  two  Chrome  plugins   Advanced  REST  client   ModHeader  
  6. 6. Business Value…Achieved SoapUI   •  Open  source  cross-­‐plaSorm  func$onal  tes$ng   solu$on   – SOAP   – REST   – JDBC   – JMS   – HTML  
  7. 7. Business Value…Achieved What  do  I  use  SoapUI  for?   Probing          Mocking     (not  like  that)  
  8. 8. Business Value…Achieved Demo  Time   (Screenshots  of  some  of  what  I  walked  through)  
  9. 9. Business Value…Achieved What  do  I  probe  for?   •  Can  I  get  to  the  web  service?   – No  access  issues  or  proprietory  security  protocol   •  Does  the  input/output  XML/JSON  look  ok?   •  Does  the  service  return  valid  respones?   •  Does  the  service  handle  errors  in  a  meaningful   way?  
  10. 10. Business Value…Achieved JMeter   •  Open  source  applica$on  designed  to  load  test   func$onal  behavior  and  measure  performance   – Web  -­‐  HTTP,  HTTPS   – SOAP   – JDBC   – LDAP   – JMS   – Mail  -­‐  SMTP(S),  POP3(S)  and  IMAP(S)   – Na$ve  commands  or  shell  scripts  
  11. 11. Business Value…Achieved What  do  I  use  JMeter  for?   Smoke  tes$ng   Load  tes$ng   Performance  tes$ng  
  12. 12. Business Value…Achieved Demo  Time   (Screenshots  of  some  of  what  I  walked  through)  
  13. 13. Business Value…Achieved JMeter  -­‐  Tips   •  When  running  load  tests:   – Make  sure  to  allocate  sufficient  memory  to  JMeter   – Log/display  only  errors   •  Trust,  but  verify   – Have  seen  JMeter  report  faster  response  $mes   than  measured  in  web  service  
  14. 14. Business Value…Achieved REST-assured   •  Java  DSL  for  easy  tes$ng  of  REST  services   – POST,  GET,  PUT,  DELETE,  HEAD   – Easy  to  validate  and  verify  response  
  15. 15. Business Value…Achieved What  do  I  use  REST-assured  for?   Web  Service  Acceptance  Tes$ng   Run  frequently  as  part  of  CI  
  16. 16. Business Value…Achieved Demo  Time   (Screenshots  of  some  of  what  I  walked  through)  
  17. 17. Business Value…Achieved Test  Automa$on   •  Good   – Tests  read  in  test  data  from  external  configura$on   •  Beder   – Tests  search  for  test  data  in  db  before  run   •  Best   – Tests  populate  db  before  run  &  clean  up  aferwards  
  18. 18. Business Value…Achieved Summary   •  Looked  at  3  free  tools  for  Web  Service  tes$ng   •  Showed  how  they  can  cover  most  of  your  Web   Service  tes$ng  needs  
  19. 19. Business Value…Achieved Ques$ons?   @sjonsson   www.sjonsson.com     sjonsson@quicksolu$ons.com   Web  Service  Related  Blog  Posts:   www.sjonsson.com/search/label/web  services  

×