Blog

Microkoi Blog

On developing and testing software: web, mobile apps and APIs. We show how to solve these tasks in Microkoi Bench and write about new versions.

  • Microkoi Bench window: Request chain, cover of “One API request with different parameters in one scenario”Microkoi Bench window: Request chain, cover of “One API request with different parameters in one scenario”

    One API request with different parameters in one scenario

    Check the catalog with page=1 and page=2, an order with a promo code and without. Usually that means copying the request four times in the collection and then editing every copy when the backend changes the address. “Change for this step” in a Microkoi Bench chain changes values only in that step, while the collection keeps a single request.

  • Microkoi Bench window: Monitoring, cover of “API monitoring on several stands: Test, Stage and production”Microkoi Bench window: Monitoring, cover of “API monitoring on several stands: Test, Stage and production”

    API monitoring on several stands: Test, Stage and production

    Monitors for Test, a copy for Stage, another one for production — and a week later the copies drift apart: a condition was fixed in one and forgotten in another. Microkoi Bench checks one folder of monitors on every stand and compares the responses with a reference. The status line says it right away: “Down on Stage”.

  • Microkoi Bench window: Monitoring, cover of “How to move API monitors to another workspace”Microkoi Bench window: Monitoring, cover of “How to move API monitors to another workspace”

    How to move API monitors to another workspace

    A new project, a new computer or a teammate without access to your git — and the monitors get rebuilt one by one. “Export archive…” in Microkoi Bench packs them into a single file together with everything they depend on. “Import archive…” shows what will be added, what will be updated and where the conflicts are before anything is written.

  • Microkoi Bench window: Traffic, cover of “JSON inside a string: how to read an API response like that”Microkoi Bench window: Traffic, cover of “JSON inside a string: how to read an API response like that”

    JSON inside a string: how to read an API response like that

    The response has a MENU_JSON field, and inside it is a string of quotes and backslashes. You can’t read it by eye, field search doesn’t see it, and nobody will notice when the price type inside changes. Microkoi Bench expands such strings as regular JSON and tracks the fields inside them just like the rest of the response.

  • Microkoi Bench window: Traffic, cover of “Microkoi Bench 0.9.6: a beta for debugging app traffic”Microkoi Bench window: Traffic, cover of “Microkoi Bench 0.9.6: a beta for debugging app traffic”

    Microkoi Bench 0.9.6: a beta for debugging app traffic

    To see what an app sent to the server, you open a proxy. To repeat the request, an API client. To return a different response, a third program, and the conclusions go into a fourth. Microkoi Bench brings all of this into one window and keeps the project as a regular folder. Beta 0.9.6 runs on macOS, Windows and Linux, free and without sign-up. In it, one set of monitors checks several stands at once, monitors move between workspaces as an archive, and JSON sent as a string reads like regular JSON.

  • Microkoi Bench window: Request chain, cover of “Async API: how to test a status that doesn’t change right away”Microkoi Bench window: Request chain, cover of “Async API: how to test a status that doesn’t change right away”

    Async API: how to test a status that doesn’t change right away

    The order is created, but the warehouse assembles it in a background job that takes from 5 seconds to a minute. A check right after creation sees in_progress and fails, and a one-minute pause makes every check slow. In a Microkoi Bench request chain, a step repeats while the order is in progress and checks the outcome as soon as it arrives: complete means the step passed, failed means it fails right away, without waiting out the limit.

  • Microkoi Bench window: Monitoring, cover of “An endpoint fails now and then: how to prove it to the backend”Microkoi Bench window: Monitoring, cover of “An endpoint fails now and then: how to prove it to the backend”

    An endpoint fails now and then: how to prove it to the backend

    One error in ten requests. The monitor flips between green and red, notifications pile up, and the backend says “everything works on our side”. Monitoring in Microkoi Bench marks such an endpoint as unstable, counts the failure rate and shows which server most of the failures come from.

  • Microkoi Bench window: Monitoring, cover of “Monitoring a user flow: sign-in, cart, and checkout”Microkoi Bench window: Monitoring, cover of “Monitoring a user flow: sign-in, cart, and checkout”

    Monitoring a user flow: sign-in, cart, and checkout

    Every endpoint monitor is green, yet nobody can place an order. Each request returns 200 on its own; what breaks is the link between them: the cart doesn’t see the item, checkout gets an expired token. Checking a single URL won’t catch this. A chain monitor in Microkoi Bench runs the whole flow on a schedule and shows the step where it breaks.

  • Microkoi Bench window: Traffic selection, cover of “How to compare two API responses and find the difference”Microkoi Bench window: Traffic selection, cover of “How to compare two API responses and find the difference”

    How to compare two API responses and find the difference

    Two windows of JSON side by side and hunting for the difference by eye — that’s half an hour gone, and the field that became a string still gets lost among changed prices. In Microkoi Bench the difference between two responses opens with the C key: what changed type, what disappeared, what appeared, and separately, which values differ.

  • Microkoi Bench window: Traffic, cover of “How to read the traffic table: icons, status codes, response source”Microkoi Bench window: Traffic, cover of “How to read the traffic table: icons, status codes, response source”

    How to read the traffic table: icons, status codes, response source

    Hundreds of traffic rows look the same until you need to understand one: why the screen showed the wrong price. Did the server answer, or a mock someone forgot to turn off? Did the request reach the server or drop? The “Traffic” table in Microkoi Bench answers with icons rather than text, and it reads in seconds once you know where to look.

  • Microkoi Bench window: Request chain, cover of “How to test an API flow end to end: a table booking”Microkoi Bench window: Request chain, cover of “How to test an API flow end to end: a table booking”

    How to test an API flow end to end: a table booking

    Booking a table takes four requests: free time slots, the booking, its status, the cancellation. Testing them one by one means copying an id from each response into the next URL and remembering the order. A bug at step three surfaces when someone notices bookings that never got confirmed. In Microkoi Bench these requests become a chain you run with one click.

  • Microkoi Bench window: Traffic, cover of “How to keep track of the right request in your app’s traffic”Microkoi Bench window: Traffic, cover of “How to keep track of the right request in your app’s traffic”

    How to keep track of the right request in your app’s traffic

    Half an hour of debugging, and the app has made four hundred requests. The one where a table reservation returned 409 scrolled away within a minute, and by evening even search can’t find it. A bookmark in Microkoi Bench marks an exchange with a color, brings you back to it with one filter and keeps it from disappearing when old traffic is cleaned up.

  • Microkoi Bench window: Request chain, cover of “A request chain with authorization: token and refresh_token”Microkoi Bench window: Request chain, cover of “A request chain with authorization: token and refresh_token”

    A request chain with authorization: token and refresh_token

    The staging token lives for 15 minutes. Every catalog check after a break starts the same way: 401, the sign-in request, copying the token into the header, again. A request chain in Microkoi Bench signs in by itself, keeps the token between runs and refreshes it with refresh_token when it’s about to expire.

  • Microkoi Bench window: Traffic, cover of “The backend changed an API response: catch it before the crash”Microkoi Bench window: Traffic, cover of “The backend changed an API response: catch it before the crash”

    The backend changed an API response: catch it before the crash

    The price field was a number and became a string. The app crashes on the listing screen, and the backend changelog doesn’t say a word about it. Microkoi Bench builds the contract of every endpoint from recorded traffic and shows which field changed, when, and which server sent the new response.

  • Microkoi Bench window: Requests, cover of “Variables from an API response: pass the order id to the next request”Microkoi Bench window: Requests, cover of “Variables from an API response: pass the order id to the next request”

    Variables from an API response: pass the order id to the next request

    Every new order on staging gets a new id. You copy it from the response, paste it into the next request’s address, then into a third one, and somewhere you get one digit wrong. An “After response” rule in Microkoi Bench takes the value from the body, a header or a cookie, and the next requests fill it in themselves.

  • Microkoi Bench window: Traffic selection, cover of “How to sort through a traffic debugging session in a minute”Microkoi Bench window: Traffic selection, cover of “How to sort through a traffic debugging session in a minute”

    How to sort through a traffic debugging session in a minute

    An hour of debugging a delivery app leaves six hundred rows of traffic: images, analytics, retries, three attempts to reproduce the bug. You need ten of them. Going row by row is slow, and “Clear” moves everything to history at once. In Microkoi Bench you select rows the way you select files in a folder, and a selection gets the job done in a minute.

  • Microkoi Bench window: Traffic selection, cover of “A request chain from traffic: an API scenario without manual setup”Microkoi Bench window: Traffic selection, cover of “A request chain from traffic: an API scenario without manual setup”

    A request chain from traffic: an API scenario without manual setup

    The “find a product → cart → order” scenario takes a minute in the app. Building it from requests by hand takes half an hour: copy each one, find where the product id came from, type in the variables. Microkoi Bench builds the chain from recorded traffic by itself and shows which value each step passes on.

  • Microkoi Bench window: Request chain, cover of “A chain report for the backend team: where the flow breaks”Microkoi Bench window: Request chain, cover of “A chain report for the backend team: where the flow breaks”

    A chain report for the backend team: where the flow breaks

    “Publishing listings sometimes doesn’t work” is a message the backend team can do nothing with. They need facts: which step, how often, with what response. A chain monitor in Microkoi Bench collects them on its own, and “Export report…” turns them into HTML that opens in any browser plus a CSV with every check.

  • Microkoi Bench window: Traffic, cover of “Too much traffic in the proxy: how to record only your API”Microkoi Bench window: Traffic, cover of “Too much traffic in the proxy: how to record only your API”

    Too much traffic in the proxy: how to record only your API

    Of three hundred rows in traffic, forty belong to your API. The rest is analytics, maps, images and background system requests. Worse, some third-party libraries check the server certificate in their own way and stop working while traffic goes through the proxy. The “Recording” setting in Microkoi Bench decides which hosts to decrypt and save and which to pass through as is.

  • Microkoi Bench window: Traffic, cover of “How to see your app’s WebSocket messages”Microkoi Bench window: Traffic, cover of “How to see your app’s WebSocket messages”

    How to see your app’s WebSocket messages

    The courier on the map isn’t moving, though it should be. A regular request can be repeated and its response read, but a WebSocket is a stream of messages that shows up in app logs only in fragments. Microkoi Bench records a WebSocket connection along with every message: what went out, what came in and how many seconds in.

  • Microkoi Bench window: Mocks, cover of “API mocks in CI: app tests without a test stand”Microkoi Bench window: Mocks, cover of “API mocks in CI: app tests without a test stand”

    API mocks in CI: app tests without a test stand

    App tests fail not because of the code, but because the stand was restarted overnight or someone deleted the test order. A build machine needs an API that answers the same way on every run. The bench-mocks command-line tool from Microkoi Bench starts a proxy with the same mocks and cases a developer uses, and lets the test switch them as it goes.

  • Microkoi Bench window: Traffic, cover of “How to change a server response on the fly with breakpoints”Microkoi Bench window: Traffic, cover of “How to change a server response on the fly with breakpoints”

    How to change a server response on the fly with breakpoints

    To check the canceled-order screen, you need an order with the cancelled status. The stand doesn’t have one, and asking the backend team to change data for a single check takes time. A breakpoint in Microkoi Bench holds the real server response, lets you edit its code, a header or a field, and sends it on to the app.

  • Microkoi Bench window: Chaos, cover of “Chaos engineering for a mobile app: where to start”Microkoi Bench window: Chaos, cover of “Chaos engineering for a mobile app: where to start”

    Chaos engineering for a mobile app: where to start

    On staging, the server answers fast and without errors, but for a user on the go every tenth request hangs or ends with a 503. The code paths that handle such responses never run on staging or in autotests, and they break first. Chaos engineering breaks the network on purpose and ahead of time. Here’s a first chaos profile in Microkoi Bench and a list of what to check in the app.

  • Microkoi Bench window: Chaos, cover of “Slow network and dropped connections: how to test your app on 3G”Microkoi Bench window: Chaos, cover of “Slow network and dropped connections: how to test your app on 3G”

    Slow network and dropped connections: how to test your app on 3G

    In the office on Wi-Fi, the screen opens in a second. On the subway, in an elevator or out of town, the connection breaks halfway, goes silent or drags images in a kilobyte at a time. You don’t need to ride the subway for these conditions: chaos in Microkoi Bench slows down and breaks the phone’s connection right at your desk, on one endpoint you pick. Below: which failures to turn on and what to watch in the app.

  • Microkoi Bench window: Mock servers, cover of “Chaos on mocks: test app resilience before the backend exists”Microkoi Bench window: Mock servers, cover of “Chaos on mocks: test app resilience before the backend exists”

    Chaos on mocks: test app resilience before the backend exists

    Apps get built before their servers, on mocks. Mocks answer instantly and always correctly, so error screens, timeouts and retries meet a bad network for the first time on the real backend, a week before release. Chaos in Microkoi Bench works on mock responses too: proxy mocks and mock servers start lagging, failing and dropping connections by your rules. You test resilience on day one, not on the last day.

  • Microkoi Bench window: Chaos, cover of “How to reproduce a random network error in your app”Microkoi Bench window: Chaos, cover of “How to reproduce a random network error in your app”

    How to reproduce a random network error in your app

    Your app crashed on a slow network, and on the next try everything works. You can’t fix a random error until you can repeat it, and you can’t prove the fix worked. Chaos in Microkoi Bench is random but repeatable: any run can be started again with the same failures on the same requests. Below is the step-by-step path from a crash to a verified fix.

  • Microkoi Bench window: Monitoring, cover of “Test environment monitoring: endpoints and the certificate”Microkoi Bench window: Monitoring, cover of “Test environment monitoring: endpoints and the certificate”

    Test environment monitoring: endpoints and the certificate

    In the morning, the app won’t load the catalog, testers file bugs against the build, and an hour later it turns out the test environment’s certificate expired overnight. Nobody checks the test environment until someone runs into it. Monitoring in Microkoi Bench checks the endpoints from your collection on a schedule and flags a certificate that’s about to expire well in advance.

  • Microkoi Bench window: Mock servers, cover of “API mock server: build a mobile app before the backend is ready”Microkoi Bench window: Mock servers, cover of “API mock server: build a mobile app before the backend is ready”

    API mock server: build a mobile app before the backend is ready

    The design is approved, and the endpoints are three weeks away. The mobile team waits, or builds screens on stubs in the code and rewrites them later. A mock server in Microkoi Bench turns the API agreement into a working server on day one. The app makes real network calls, and Android and iOS get the same responses.

  • Microkoi Bench window: Mocks, cover of “How to test timeouts and server errors in your app”Microkoi Bench window: Mocks, cover of “How to test timeouts and server errors in your app”

    How to test timeouts and server errors in your app

    On staging, the server answers in 200 ms and always correctly. On a mobile network, the same request takes twenty seconds or ends with a 503. What the user sees at that moment is usually learned from reviews. Mock responses in Microkoi Bench show it in advance, with no changes to the server or the app.

  • Microkoi Bench window: Certificates, cover of “API certificates on older Android and iOS: check before release”Microkoi Bench window: Certificates, cover of “API certificates on older Android and iOS: check before release”

    API certificates on older Android and iOS: check before release

    After a release, the reviews say “Can’t connect to the server”. Everything works on the team’s phones, the website opens for the user, but the app doesn’t. Most often the cause is a server certificate that an older system version doesn’t trust. Microkoi Bench checks your hosts’ chains against the Android and iOS root stores, starting from the oldest version you support: before release, not from the reviews.

  • Microkoi Bench window: Mock servers, cover of “Mock server from a template: a test API for your prototype”Microkoi Bench window: Mock servers, cover of “Mock server from a template: a test API for your prototype”

    Mock server from a template: a test API for your prototype

    The prototype runs on “Task 1” and “Task 2”. In the demo, the screen looks neat, then breaks on the first real data: a long title doesn’t fit, a due date is missing, an avatar didn’t load. A mock server template in Microkoi Bench gives you a ready-made API of a typical app, with realistic data, pagination and errors. The server is up in a minute, and you don’t have to write anything for it.

  • Microkoi Bench window: Workspace, cover of “Onboard a new tester in 10 minutes: collections and mocks in git”Microkoi Bench window: Workspace, cover of “Onboard a new tester in 10 minutes: collections and mocks in git”

    Onboard a new tester in 10 minutes: collections and mocks in git

    On day one, a new tester asks for the request collection. On day two, for the staging address and a token. On day three, they learn the test API runs on the laptop of a colleague who’s on vacation. All of this can live in the app’s repository. A Microkoi Bench workspace is a folder of text files, and a newcomer gets it with a single git clone.

  • Microkoi Bench window: Mocks, cover of “How to test an empty cart and other rare app states”Microkoi Bench window: Mocks, cover of “How to test an empty cart and other rare app states”

    How to test an empty cart and other rare app states

    The test plan has “Empty cart”, “Out of stock”, “Delivery time taken”. You can’t get them on staging: automated tests keep the test account’s cart full, products never run out, and the time is always free. Release after release, these rows stay “not tested”, and these are exactly the screens users see. Mock cases in Microkoi Bench turn on the state you need with a single click, while the rest of the app keeps working with staging.

  • Microkoi Bench window: Mock servers, cover of “Mock server or proxy mock: which one to use for testing”Microkoi Bench window: Mock servers, cover of “Mock server or proxy mock: which one to use for testing”

    Mock server or proxy mock: which one to use for testing

    A tester needs one error while the rest of the app keeps working with the test environment. A developer needs an endpoint the backend doesn’t have. Both get a mock response, but in different ways: a proxy mock or a mock server. The wrong choice means rework: the build gets reconfigured for another address, and CI tests hit the fact that a mock server doesn’t run without a window.

  • Microkoi Bench window: Mocks, cover of “Staging is down: how to keep building your app”Microkoi Bench window: Mocks, cover of “Staging is down: how to keep building your app”

    Staging is down: how to keep building your app

    Staging was taken down for an update, and the screen you’re finishing shows “No connection”. An hour goes to waiting. If the API responses were recorded in advance, Microkoi Bench returns them instead of the server with one click. The app isn’t rebuilt and calls the same addresses.

  • Microkoi Bench window: Requests, cover of “How to test an API endpoint before you build the screen”Microkoi Bench window: Requests, cover of “How to test an API endpoint before you build the screen”

    How to test an API endpoint before you build the screen

    The backend developer writes: “The endpoint is ready, here’s the cURL.” Two days into building the screen, it turns out a field has a different name, the time comes without a time zone and the response takes two seconds. Checking the endpoint before the first line of code takes a quarter of an hour. In Microkoi Bench, it starts with that same cURL command.

  • Microkoi Bench window: Traffic, cover of “Flutter and dio: how to see your app’s requests in a proxy”Microkoi Bench window: Traffic, cover of “Flutter and dio: how to see your app’s requests in a proxy”

    Flutter and dio: how to see your app’s requests in a proxy

    The proxy is set in the Wi-Fi settings, the certificate is installed, and the phone’s browser fills the traffic list just fine. But the Flutter app doesn’t show a single row. The proxy isn’t the problem: the Dart network stack ignores system settings and goes to the network directly. Below are about ten lines of code that make every dio request visible in Microkoi Bench, while the release build stays as it was.

  • Microkoi Bench window: Mock servers, cover of “Mock server from traffic: a copy of your real API in a minute”Microkoi Bench window: Mock servers, cover of “Mock server from traffic: a copy of your real API in a minute”

    Mock server from traffic: a copy of your real API in a minute

    A mock written from memory resembles the API but doesn’t match it. It has no null where the server sends one, no field added last week, and the images live at the wrong addresses. The app passes on such a mock and fails on the real server. Microkoi Bench builds a mock server from recorded traffic: every endpoint responds with what the server actually returned.

  • Microkoi Bench window: Traffic, cover of “Can’t reproduce the bug? How to find the cause in the traffic”Microkoi Bench window: Traffic, cover of “Can’t reproduce the bug? How to find the cause in the traffic”

    Can’t reproduce the bug? How to find the cause in the traffic

    “Can’t reproduce” is the status of a complaint no one on the team could repeat. Users see a frozen screen, everything works for the team, and the ticket waits weeks for details. The cause is almost always a difference: system language, data, OS version. The traffic shows where the app and the server stopped understanding each other, and Microkoi Bench helps turn that into a bug report that won’t come back with questions.

  • Microkoi Bench window: Traffic, cover of “How to inspect your app’s HTTPS traffic on iPhone and Android”Microkoi Bench window: Traffic, cover of “How to inspect your app’s HTTPS traffic on iPhone and Android”

    How to inspect your app’s HTTPS traffic on iPhone and Android

    The bug only reproduces on a phone. Server logs show the status code but not the request body, and app logs show only what someone thought to write there. To see what the app actually sent, route the phone’s traffic through a proxy on your computer. In Microkoi Bench, that takes five minutes: the proxy, a certificate by QR code and recording only your API hosts.

  • Microkoi Bench window: Traffic, cover of “How to install Microkoi Bench on macOS, Windows and Linux”Microkoi Bench window: Traffic, cover of “How to install Microkoi Bench on macOS, Windows and Linux”

    How to install Microkoi Bench on macOS, Windows and Linux

    A screen didn’t load, and the logs are empty. The answer is almost always in the traffic: what the app sent and what the server returned. Microkoi Bench shows it in one window, next to mocks and the API client. This guide takes you from the downloaded file to your app’s first request in Bench in 10 minutes.