mocka icon indicating copy to clipboard operation
mocka copied to clipboard

Add Record Mode

Open FabrizioBrancati opened this issue 4 years ago • 0 comments
trafficstars

Is your feature request related to a problem? Please describe. It would be useful to have a record mode in the app. This feature has been asked at the SwiftHeroes 2021 event.

Describe the solution you'd like We should add a new record mode, currently activable only by using Commands (Server section). Inside this new section there will be a new Record Mode button (CMD + Option + R - any suggestion is welcome).

This new feature will allow the server to automatically start the record mode witch consist of:

  1. When the record mode is started, the app will ask for the real address of the server (this is because Mocka will act as a man in the middle by really calling the real BE)
  2. Listen on the given Address and Port (like normal mode)
  3. When a request is received, instead of giving back the response the server will send the request to the real BE
  4. When the real BE gives to the server a response, it will be saved as a request (how to choose a name will be discussed while implementing this feature)
  5. Then the server sends the response back as a normal mocked response

Describe alternatives you've considered None.

Additional context None.

FabrizioBrancati avatar Apr 30 '21 06:04 FabrizioBrancati