I’m learning how to debug a test step. I saw a method in the forum, using VS Code + Exitor X. I want to know if there are any other methods besides using Editor X.
Three other real possibilities:
- Editor - as part of Keysight Test Automation (this is the commercial product). It works really well!
- TUI - opensource, textual test editor environment. Surprisingly functional and fun!
- CLI - just run your test plan from the CLI. You can create the testplan via EditorX / Editor / TUI / programmatically, then just kick it off from the CLI with the debugger attached.
Thank you very much for your help. Maybe I didn’t express my question clearly. When I develop a TestStep and debug it, perhaps I need to set breakpoints in some places to view the running status of the TestStep code. It seems that this cannot be done through the CLI or TUI.
Hi @ian11 ,
This can be done, you just need to configure in your C# IDE to debug tap.exe with either the arguments
- “run [your test plan]” - run the test plan in one time in the console.
- “tui” - run the TUI
You should be able to do that on Windows, Linux, MacOS with Visual Studio (Windows only), VS Code, and Rider.
If you set up your project with the nuget template that should be configured by default. Getting Started | OpenTAP
I know I’m late commenting, but you also need to attach to the remote process when debugging code test steps running on TUI or custom UI’s