本文介紹了如何在 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 中調試角度量角器測試的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!