ProxymanApp / proxyman-windows-linux

Public tracker for Proxyman Windows/Linux
https://proxyman.io/
MIT License
103 stars 4 forks source link

[Breakpoint] #5 Breakpoint Logic #222

Open NghiaTranUIT opened 1 year ago

NghiaTranUIT commented 1 year ago

Description

⚠️ This ticket must be implemented after #221 is done.

Continue logic

Abort

Execute

How to test

Case 1: Request Breakpoint (Happy case)

  1. Make a POST httpbin.org request to Proxyman
  2. Right-Click -> Tools -> Breakpoint
  3. Select onRequest, and deselect the onResponse checkbox
  4. Create an entry
  5. Make a request again
  6. The Breakpoint Windows (#221) appear -> There is 1 breakpoint in the list -> Auto-select the first breakpoint -> Update the Editor Part
  7. Make sure: The Request Editor is displayed, and the Response is hidden.
  8. Modify the Body and the Header
  9. Execute
  10. Back to Insomnia app -> Check the body and verify the Request is updated properly by the Breakpoint Tool

Case 2: Response Breakpoint (Happy case)

  1. Make a POST httpbin.org request to Proxyman
  2. Right-Click -> Tools -> Breakpoint
  3. Deselect the onRequest, and select the onResponse checkbox
  4. Create an entry
  5. Make a request again
  6. The Breakpoint Windows (#221) appear -> There is 1 breakpoint in the list -> Auto-select the first breakpoint -> Update the Editor Part
  7. Make sure: The Request Editor is displayed and it's in Read-only Mode, and the Response is displayed.
  8. Modify the Body and the Header and status code
  9. Execute
  10. Back to the Insomnia app -> Check the body and verify the Request is updated properly by the Breakpoint Tool
NghiaTranUIT commented 1 year ago

Update 1: