Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Mock Server

Mock Server

Ngalam Backend Community

March 27, 2019
Tweet

More Decks by Ngalam Backend Community

Other Decks in Technology

Transcript

  1. ABOUT SPEAKER Ahmad Fatoni AVP Of Quality Assurance at DOT

    Indonesia Backend | Automated Test | QA Email: [email protected] Linkedin: ahmad-fatoni Instagram: inotaf_
  2. TOPICS ▸ Mock Server ? √ ▸ Why we need

    mock server ? √ ▸ API √ ▸ API Contract √ ▸ Retrofit √ ▸ Glide √
  3. FAKE IT TILL YOU MAKE IT Joyce Lin Editor of

    Postman Engineering POSTMAN MOCK SERVER
  4. POSTMAN MOCK SERVER BY FAKING REAL ENDPOINTS, MOCKS ARE USED

    AT VARIOUS STAGES OF DEVELOPMENT PROCESS •Continuous planning •Continuous testing •Collaborate and make decisions quickly and effectively •Adapt quickly to a changing landscape with mid-stream feedback and insights
  5. POSTMAN MOCK SERVER WHAT WE NEED ? ▸ Goals ▸

    Postman ▸ Postman Account ▸ API Contract
  6. POSTMAN MOCK SERVER WE WILL GET ▸ Mock Server ▸

    API Documentation (Online and Offline)
  7. MOCKAPI.IO MOCKAPI IS A SIMPLE TOOL THAT LETS YOU EASILY

    MOCK UP APIS, GENERATE CUSTOM DATA, AND PREFORM OPERATIONS ON IT USING RESTFUL INTERFACE
  8. MOCKAPI.IO GREAT FEATURES ▸ RESTful Interface ▸ Generate dummy data

    ▸ Relationship (Nested URL) ▸ Pagination ▸ Searching ▸ Sorting
  9. Features Postman Mock Server mockapi.io Custom Response √ √ Generate

    Dummy Data x √ Documentation √ x Pagination, search, sort x √ Dynamic Response code √ x Pass Request Body to Response x x