Test your API using Postman Test Script

Prologue : Having a different set of web developers in Flipbox sometimes resulting in different style and structure of the final API. 

Problem : Multiple style and structure of the API will resulting in an inefficient way of API understanding, and creating reusable parser will be difficult. A standard for API is needed. Currently, we use this standard in Flipbox : https://docs.google.com/presentation/d/1IxZhNFyooPesbwCMTnwG0qcdT56g48lb1oYAebM3fOA/edit#slide=id.g846780a0c_0_78

However, having a standard is not enough. A simple routine-check is needed so that developer / QA doesn't have to remember all the standards by heart.

Solution : Postman have a feature called Postman Test that enables us to create a simple test case for the API using JavaScript as the main language. With that knowledge in mind, I create a simple test case according to Flipbox's current standard. Every API endpoint that passed this simple test is guaranteed to have the same general structure and decent performance. 

Feel free to check and use the test here https://gist.github.com/sakadigital/5598630f6d9e439dcc6f5287a43b2da2

 

Cheers!

要查看或添加评论,请登录

Bukhori Aqid的更多文章

  • Anti-Pattern: How obvious are they?

    Anti-Pattern: How obvious are they?

    For the past year, I've been involved in the development of a large java server-side monolith that slowly morphed into…

    7 条评论
  • Flipbox's contributions to Web Technology

    Flipbox's contributions to Web Technology

    We love to use open source libraries, so we thought it's a must to contribute whatever we can for the communities, and…

  • [Android] Handling screen state using Sosoito

    [Android] Handling screen state using Sosoito

    Prologue : How many times that you, as an Android developer initiate a progress dialog for asynchronous operation (…

  • Using Katalon Studio for Automated Testing Creation

    Using Katalon Studio for Automated Testing Creation

    Prologue : Since last year, we've been using several tools for automated testing ( Postman Test Runner, Selenium IDE…

  • Progressive Web App with VueJS

    Progressive Web App with VueJS

    Prologue : We use VueJS as our main frontend framework ( starting from late 2016 ). Previously we use AngularJS or good…

  • Tinkering with RxJava retryWhen()

    Tinkering with RxJava retryWhen()

    Prologue : We have been working on a project that heavily rely on synchronization services, since all of the…

  • Kickstart your Android Development!

    Kickstart your Android Development!

    At my early days as Android Developer, I love finding different methods to speed up my Android development process. Due…

  • [Android] Implement DeepLinking using HOKO

    [Android] Implement DeepLinking using HOKO

    First of all, what's mobile deep link and when do I need it? From wikipedia : In the context of mobile apps, deep…

  • [Android] DataBinding Library + Espresso : IllegalAccessError

    [Android] DataBinding Library + Espresso : IllegalAccessError

    Problem : When creating espresso test for our new project using Data Binding Library, we keep on encountering…

    1 条评论
  • [Android] Missing ViewPager after resuming Fragment

    [Android] Missing ViewPager after resuming Fragment

    Problem : When returning back from other activity / fragment, a viewpager inside the current fragment is not resumed…

    7 条评论

社区洞察

其他会员也浏览了