简体   繁体   English

如何在量角器黄瓜框架中使用断点进行调试

[英]how to Debug using breakpoint in protractor cucumber framework

I'm working in Protractor Cucumber node js framework for test automation.我正在使用 Protractor Cucumber 节点 js 框架进行测试自动化。 How do we debug using break point in this framework?我们如何在这个框架中使用断点进行调试? Have any one used this option in your project?有没有人在你的项目中使用过这个选项? we are able to read variable in debug window using repl.我们可以使用 repl 在调试窗口中读取变量。 But we want to debug using break point like how we do in Visual studio because we want to check the action performed during automation.但是我们想像在 Visual Studio 中那样使用断点进行调试,因为我们想检查自动化期间执行的操作。 As of now, we use log to track the flow in high level.截至目前,我们使用日志来跟踪高层流。

You can do log level debugging您可以进行日志级调试

console.log("Completed " + JSON.stringify(obj)); console.log("完成" + JSON.stringify(obj));

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM