[GH-ISSUE #233] [Breakpoint] #9 Allow to select local file on the Body Breakpoint #234

Open
opened 2026-03-03 19:49:19 +03:00 by kerem · 0 comments
Owner

Originally created by @NghiaTranUIT on GitHub (May 9, 2023).
Original GitHub issue: https://github.com/ProxymanApp/proxyman-windows-linux/issues/233

Originally assigned to: @kics223w1 on GitHub.

Description

⚠️ This ticket is for the Breakpoint v2 (After we release the #218) to Production. Please don't implement it for now.

It's important to allow the user to select a local file during the Breakpoint.

Video: See the video on Slack

Acceptance Criteria

  • Able to select a local file to replace the current body. Works with Request or Response Breakpoint.
  • Replace the Content-Type if need -> Show the alert
  • The body is correctly updated with a local file
  • Write Unit Tests for 3 following scenarios

How to test

  1. Make a POST Request -> Create a on Request Breakpoint
  2. Click on the Request Body Tab -> Select Local File

Scenario 1: Select a text-based file

  1. Check if the mime type of the select file -> If it's different than the Content-Type of the Request or Response -> Show the alert
    Screenshot 2023-05-09 at 08 43 18
  • YES: Change the Content-Type header -> Still replace the body
  • NO: Don't change the Content-Type -> Still replace the body
  1. Replace with a new body
  2. Execute
  3. Verify that the client gets new data

Scenario 2: Select an Image

  1. Check if the mime type of the select file -> If it's different than the Content-Type of the Request or Response -> Show the alert
    Screenshot 2023-05-09 at 08 43 18
  • YES: Change the Content-Type header -> Still replace the body
  • NO: Don't change the Content-Type -> Still replace the body
  1. Replace with a new body -> Show the Image preview
  2. Execute
  3. Verify that the client gets new data

Scenario 3: Select a non-text file (binary, pdf, ...)

  1. Check if the mime type of the select file -> If it's different than the Content-Type of the Request or Response -> Show the alert
    Screenshot 2023-05-09 at 08 43 18
  • YES: Change the Content-Type header -> Still replace the body
  • NO: Don't change the Content-Type -> Still replace the body
  1. Replace with a new body -> Show body
  2. Execute
  3. Verify that the client gets new data
Originally created by @NghiaTranUIT on GitHub (May 9, 2023). Original GitHub issue: https://github.com/ProxymanApp/proxyman-windows-linux/issues/233 Originally assigned to: @kics223w1 on GitHub. ## Description ⚠️ This ticket is for the Breakpoint v2 (After we release the #218) to Production. Please don't implement it for now. It's important to allow the user to select a local file during the Breakpoint. Video: ✅ See the video on Slack ## Acceptance Criteria - Able to select a local file to replace the current body. Works with Request or Response Breakpoint. - Replace the Content-Type if need -> Show the alert - The body is correctly updated with a local file - Write Unit Tests for 3 following scenarios ### How to test 1. Make a POST Request -> Create a `on Request` Breakpoint 2. Click on the Request Body Tab -> Select Local File #### Scenario 1: Select a text-based file 1. Check if the mime type of the select file -> If it's different than the Content-Type of the Request or Response -> Show the alert <img width="350" alt="Screenshot 2023-05-09 at 08 43 18" src="https://user-images.githubusercontent.com/5878421/236972954-601864c3-789b-4ddb-9f18-aed11c36ca15.png"> - YES: Change the Content-Type header -> Still replace the body - NO: Don't change the Content-Type -> Still replace the body 2. Replace with a new body 3. Execute 4. Verify ✅ that the client gets new data #### Scenario 2: Select an Image 1. Check if the mime type of the select file -> If it's different than the Content-Type of the Request or Response -> Show the alert <img width="350" alt="Screenshot 2023-05-09 at 08 43 18" src="https://user-images.githubusercontent.com/5878421/236972954-601864c3-789b-4ddb-9f18-aed11c36ca15.png"> - YES: Change the Content-Type header -> Still replace the body - NO: Don't change the Content-Type -> Still replace the body 2. Replace with a new body -> Show the Image preview 3. Execute 4. Verify ✅ that the client gets new data #### Scenario 3: Select a non-text file (binary, pdf, ...) 1. Check if the mime type of the select file -> If it's different than the Content-Type of the Request or Response -> Show the alert <img width="350" alt="Screenshot 2023-05-09 at 08 43 18" src="https://user-images.githubusercontent.com/5878421/236972954-601864c3-789b-4ddb-9f18-aed11c36ca15.png"> - YES: Change the Content-Type header -> Still replace the body - NO: Don't change the Content-Type -> Still replace the body 2. Replace with a new body -> Show body <Binary Data> 3. Execute 4. Verify ✅ that the client gets new data
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxyman-windows-linux#234
No description provided.