You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/debugging.md
+59Lines changed: 59 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,3 +7,62 @@ Testpalne supports [OpenTelemetry](https://opentelemetry.io) standard for tracin
7
7
8
8
You can use `traceparent` to trace the execution of individual tests.
9
9
10
+
### Keep Browser for Debugging
11
+
12
+
Testplane provides CLI options to keep browser sessions alive after test completion for debugging purposes. This feature has two main use cases:
13
+
14
+
1.**Local debugging**: After test fails, you can still interact with the browser and see what's wrong
15
+
2.**AI agents integration**: Let AI agents run tests to perform complex logic (e.g. custom authentication), then attach to browser via MCP and perform additional actions
16
+
17
+
#### Why not REPL?
18
+
19
+
While REPL mode pauses test execution for interactive debugging, keep-browser options preserve the final browser state after tests finish. For AI agents, it's much easier to say "write test with the same beforeEach as in this file and run it to prepare browser" rather than forcing AI to use REPL interactively.
20
+
21
+
#### `--keep-browser`
22
+
23
+
Keep browser session alive after test completion for debugging.
0 commit comments