mirror of
https://github.com/ProxymanApp/proxyman-windows-linux.git
synced 2026-04-27 08:55:50 +03:00
Labels
No labels
Linux
bug
enhancement
enhancement
pull-request
question
✅ Done
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxyman-windows-linux#223
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @NghiaTranUIT on GitHub (Apr 10, 2023).
Original GitHub issue: https://github.com/ProxymanApp/proxyman-windows-linux/issues/223
Originally assigned to: @kics223w1 on GitHub.
Description
It's time to write Unit Tests for the Breakpoint Service to verify it covers all user-case
⚠️ Ping @NghiaTranUIT to get the sample of
BreakpointServiceTestsfileIn general, it's similar to #209:
httpbin.orgUnit Test cases: Continue logic
1: Request Breakpoint on GET - HTTPS - Update Query Tab
Given:
Expected:
2: Request Breakpoint on GET - HTTPS - Update query from URL
Given:
https://httpbin.org/get?id=123Expected:
3: Request Breakpoint on POST JSON
4: Request Breakpoint on POST Form - Update by Body Tab
5: Request Breakpoint on POST Form - Update by Form Tab
6: Request Breakpoint and change the Method and URL
https://httpbin.org/post?id=123, add some JSON Body. Create a Breakpoint Rule (Request Only)7: Request Breakpoint - Change different URL
www.google.comCreate a Breakpoint Rule (Request Only)@NghiaTranUIT commented on GitHub (Apr 10, 2023):
Unit Test cases: Abort logic
1: Abort a single request
Given:
Expected:
fetchlibrary returns an error (Socket closed or anything means that the connection is aborted)2: Abort all
Given:
Expected:
fetchlibrary returns an error for all requests (Socket closed or anything means that the connection is aborted)@NghiaTranUIT commented on GitHub (Apr 10, 2023):
Unit Test cases: Continue Logic
1: Continue a Request
Given:
Expected:
1: Continue a Response
Given:
Expected:
@NghiaTranUIT commented on GitHub (Apr 10, 2023):
Unit Test cases: Breakpoint on Response
1: Response Breakpoint: Header and Body
Given:
Expected:
2: Response Breakpoint: Status Code
Given:
Expected:
@NghiaTranUIT commented on GitHub (Apr 10, 2023):
Unit Test cases: Breakpoint on Request & Response
1: Modify everything
Given:
Expected:
@NghiaTranUIT commented on GitHub (May 8, 2023):
Additionally Test