×

Loading...
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务

steps to install protractor (java script unit test tool)

1. Install node.js
Download node.js
Run cmd as admin
Go to the downloaded node.js folder and run it.
2. Make a folder without special char like $ etc
Ex: c:\myspace\tools\npm
3. Add c:\myspace\tools\npm to PATH variable
4. install Python 2.5.x as admin (same way as node.js)
5. add the python path to PATH if not set
6. Install .NET Framework 2.0 SDK - optional
7. Add C:\Program Files (x86)\Microsoft Visual Studio 8\VC\vcpackages to PATH - optional
install also visual studio if you have and add to PATH
8. Quit cmd and run cmd as admin again since the installation changed environment variables.
9. npm config set prefix '/myspace/tools/npm' – or to a path without special char like $
10. npm config set cache /myspace/tools/npmCache
11. npm install -g npm
12. rename npm.cmd under node.js to npm.cmd.bak
13. npm install -g protractor – you will see some warnings, just ignore it.
14. webdriver-manager update
15. webdriver-manager start
16. start another cmd and run protractor conf.js
Sign in and Reply Report

Replies, comments and Discussions:

  • 工作学习 / 学科技术讨论 / steps to install protractor (java script unit test tool) +2
    1. Install node.js
    Download node.js
    Run cmd as admin
    Go to the downloaded node.js folder and run it.
    2. Make a folder without special char like $ etc
    Ex: c:\myspace\tools\npm
    3. Add c:\myspace\tools\npm to PATH variable
    4. install Python 2.5.x as admin (same way as node.js)
    5. add the python path to PATH if not set
    6. Install .NET Framework 2.0 SDK - optional
    7. Add C:\Program Files (x86)\Microsoft Visual Studio 8\VC\vcpackages to PATH - optional
    install also visual studio if you have and add to PATH
    8. Quit cmd and run cmd as admin again since the installation changed environment variables.
    9. npm config set prefix '/myspace/tools/npm' – or to a path without special char like $
    10. npm config set cache /myspace/tools/npmCache
    11. npm install -g npm
    12. rename npm.cmd under node.js to npm.cmd.bak
    13. npm install -g protractor – you will see some warnings, just ignore it.
    14. webdriver-manager update
    15. webdriver-manager start
    16. start another cmd and run protractor conf.js
    • This is for AngularJs only
      • Angular 2.0什么状态了?
        • it looks not completed yet.
      • Sorry my mistake, with someway, you can use it for non-AngluarJs