⚠️ This ticket must be implemented after #221 is done.
Continue logic
Continue means: Ignore all changes from the BreakpointData and send the original Request/Response.
Continue button can work with multiple selections.
"Continue All" would perform the continue to all breakpoints.
When the breakpoint is continued -> Remove from the waiting Breakpoint List -> Auto Select the first breakpoint -> Make sure the Request/Response Editor is updated with a selected breakpoint
Abort
Abort means: Stopping the connection immediately.
Abort button can work with multiple selections.
"Abort All" would perform the continue to all breakpoints.
When the breakpoint is aborted -> Remove from the waiting Breakpoint List -> Auto Select the first breakpoint -> Make sure the Request/Response Editor is updated with a selected breakpoint
Execute
Execute means: Build a new Request or Response with a current BreakpointData.
Ping @NghiaTranUIT to get the Breakpoint class and BreakpointData class
Build the Request parts properly, including Method, URL, Header, Query, Body, Formed Body
Build the Response part properly, including Status Code, Headers, Body
How to test
Case 1: Request Breakpoint (Happy case)
Make a POST httpbin.org request to Proxyman
Right-Click -> Tools -> Breakpoint
Select onRequest, and deselect the onResponse checkbox
Create an entry
Make a request again
The Breakpoint Windows (#221) appear -> There is 1 breakpoint in the list -> Auto-select the first breakpoint -> Update the Editor Part
Make sure: The Request Editor is displayed, and the Response is hidden.
Modify the Body and the Header
Execute
Back to Insomnia app -> Check the body and verify the Request is updated properly by the Breakpoint Tool
Case 2: Response Breakpoint (Happy case)
Make a POST httpbin.org request to Proxyman
Right-Click -> Tools -> Breakpoint
Deselect the onRequest, and select the onResponse checkbox
Create an entry
Make a request again
The Breakpoint Windows (#221) appear -> There is 1 breakpoint in the list -> Auto-select the first breakpoint -> Update the Editor Part
Make sure: The Request Editor is displayed and it's in Read-only Mode, and the Response is displayed.
Modify the Body and the Header and status code
Execute
Back to the Insomnia app -> Check the body and verify the Request is updated properly by the Breakpoint Tool
Description
⚠️ This ticket must be implemented after #221 is done.
Continue logic
BreakpointData
and send the original Request/Response.Abort
Execute
BreakpointData
.Breakpoint
class andBreakpointData
classHow to test
Case 1: Request Breakpoint (Happy case)
onRequest
, and deselect theonResponse
checkboxCase 2: Response Breakpoint (Happy case)
onRequest
, and select theonResponse
checkbox