Getting the most out of Postman

Getting the most out of Postman

Everyone is using Postman to write a couple tests for their APIs or even to play around with an API to understand how it works. The process is simple: One creates a collection, adds some requests and sees some magic. But what is next? Is Postman better than that? In this talk you will see how to get the most out of Postman's features to help you embrace API development and testing.

E003fec30e97c29a47c16d2d8b36ce93?s=128

Evaldo Junior

June 07, 2019
Tweet

Transcript

  1. Getting the most out of Evaldo Bento @InFog9 Dutch PHP

    Conference June 7th 2019
  2. Evaldo Bento

  3. Rakuten Germany rakuten.de

  4. Context matters

  5. Telling histories > Only tech

  6. Containerize a PHP service

  7. Upgrade the service from PHP 5.3 to 7.3

  8. No… Tests...

  9. End to end tests to the rescue!

  10. PHPUnit!

  11. PHPUnit? Nah.

  12. Some well crafted shell scripts? Nah.

  13. Enters Postman

  14. None
  15. What is Postman?

  16. Black box testing - End to end

  17. Starting a new Collection

  18. None
  19. A simple request with Postman

  20. None
  21. None
  22. And then another request

  23. None
  24. None
  25. Hmm, it’s getting complicated

  26. Using variables

  27. Pre-request scripts

  28. None
  29. Running the Collection

  30. None
  31. None
  32. None
  33. No tests?

  34. Let’s write some tests

  35. None
  36. Oh, wait, this is Javascript!

  37. None
  38. None
  39. None
  40. Cool! Another test!

  41. None
  42. None
  43. Let’s add another request

  44. None
  45. None
  46. Improving the tests

  47. Schema validation for JSON

  48. None
  49. Removing duplicates

  50. None
  51. Using environments

  52. None
  53. None
  54. None
  55. Running the Collection again

  56. None
  57. None
  58. BONUS

  59. None
  60. None
  61. What about PHP?

  62. Sending the “ticket” to QA

  63. Workspace

  64. None
  65. None
  66. None
  67. None
  68. Can I run a collection on CLI?

  69. Enters newman

  70. None
  71. newman for local collections

  72. None
  73. None
  74. Added to the build pipeline

  75. newman for collections on the cloud

  76. Designing APIs

  77. None
  78. Mock servers

  79. None
  80. None
  81. None
  82. Automation with Postman

  83. None
  84. None
  85. None
  86. None
  87. Outcomes

  88. Easy to start

  89. Powerful

  90. Fun to play with

  91. Eases collaboration DEV & QA

  92. Pipeline integration

  93. Leads to more quality

  94. Ask me two or more questions

  95. Thank you! @InFog9 evaldojunior.com https:/ /joind.in/talk/d30f1