How to debug angular protractor tests in WebStorm

前端 未结 7 1674
北海茫月
北海茫月 2020-11-29 04:08

There is a way to run and debug protractor web-tests in WebStorm. I just want to share this answer here

7条回答
  •  爱一瞬间的悲伤
    2020-11-29 04:36

    By the way if you need to pass additional parameters here is the configuration you need

    • Select ‘Node.js’ configuration from the list
    • Name: ‘Protractor’
    • Node interpreter: ‘C:\Program Files\nodejs\node.exe’
    • Node parameters: ‘’
    • Working directory:
    • JavaScript file: ‘~\AppData\Roaming\npm\node_modules\protractor\built\cli.js’
    • Application parameters, this is where you specify path to your conf, relatively to working directory^ and then parameters like this: ‘e2e/settings/configs/protractor.custom.conf.js --baseUrl="https://stage.mysite.com" --params.login="testuser" --params.password="test_USER00"’
    • Environment variables: ‘’

    This config works great in my project, where we solely rely on async/await syntax

提交回复
热议问题