How to debug angular protractor tests in WebStorm(如何在 WebStorm 中调试角度量角器测试)
问题描述
有一种方法可以在 WebStorm 中运行和调试量角器网络测试.我只想在这里分享这个答案
There is a way to run and debug protractor web-tests in WebStorm. I just want to share this answer here
推荐答案
- 获取节点路径(在终端中输入
哪个节点
) - 在 WebStorm 中:点击编辑配置" - 运行"按钮左侧的下拉菜单(绿色箭头,类似于播放"按钮)
- 点击添加按钮"(绿色+)添加新的节点配置.选择Node.js"
- 填写参数:
- 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.js 的完整路径(从第 1 步开始)
Node interpreter: Full path to Node.js (from step 1)
工作目录:量角器测试的主目录.
Working directory: home directory for the protractor tests.
Javascript 文件:node_modules/protractor/lib/cli.js
的完整路径
应用程序参数:protractor-conf.js
现在您可以通过单击 IDE 顶部的运行"或调试"按钮来运行和调试测试
Now you be able to run and debug tests by clicking on "Run" or "Debug" buttons on the top of IDE
这篇关于如何在 WebStorm 中调试角度量角器测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何在 WebStorm 中调试角度量角器测试


基础教程推荐
- 什么是不使用 jQuery 的经验技术原因? 2022-01-01
- 如何使用sencha Touch2在单页中显示列表和其他标签 2022-01-01
- Node.js 有没有好的索引/搜索引擎? 2022-01-01
- 为什么我在 Vue.js 中得到 ERR_CONNECTION_TIMED_OUT? 2022-01-01
- 每次设置弹出窗口的焦点 2022-01-01
- Javascript 在多个元素上单击事件侦听器并获取目标 2022-01-01
- 如何在特定日期之前获取消息? 2022-01-01
- 如何使用 CSS 显示和隐藏 div? 2022-01-01
- WatchKit 支持 html 吗?有没有像 UIWebview 这样的控制器? 2022-01-01
- jQuery File Upload - 如何识别所有文件何时上传 2022-01-01