如何调试在WebStorm角量角器测试 [英] How to debug angular protractor tests in WebStorm
本文介绍了如何调试在WebStorm角量角器测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有是在WebStorm运行和调试量角器web的试验的方法。
我只是想分享这回答此处
解决方案
- 获取节点路径(类型
的节点
在终端) - 在WebStorm:点击修改配置 - 在下拉菜单中的运行按钮的左侧(绿色箭头就像一个播放按钮)
- 单击添加按钮(绿色的 + )来添加一个新的节点配置。选择 Node.js的
- 填写PARAMS:
节点间preTER :全路径的Node.js(步骤1)
工作目录:主目录量角器测试
JavaScript文件:全路径 node_modules /量角器/ lib目录/ cli.js
应用程序参数:全路径量角器-conf.js
现在你能够运行和调试测试通过点击运行或IDE顶部的调试按钮
There is a way to run and debug protractor web-tests in WebStorm. I just want to share this answer here
解决方案
- Get the node path (Type
which node
in your terminal) - In the WebStorm: Click on "Edit configurations" - the dropdown to the left of the "Run" button (green arrow like a "play" button)
- Click on the "Add button" (green +) to add a new Node configuration. Select "Node.js"
- Fill the params:
Node interpreter: Full path to Node.js (from step 1)
Working directory: home directory for the protractor tests.
Javascript file: Full path to node_modules/protractor/lib/cli.js
Application parameters: Full path to protractor-conf.js
Now you be able to run and debug tests by clicking on "Run" or "Debug" buttons on the top of IDE
这篇关于如何调试在WebStorm角量角器测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文