如何在日食中使用量角器? [英] How can we use protractor in eclipse?

查看:157
本文介绍了如何在日食中使用量角器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以在eclipse中编写量角器测试/脚本。在Eclipse中启用JavaScript的语法高亮,智能感知等。

解决方案

是的,您可以在eclipse中使用量角器插件。


  1. 转到帮助 - >市场

  2. 搜索 tern.java

  3. 安装 Tern Eclipse IDE

  4. 并接受许可。

现在在eclipse中创建一个项目


  1. 右键单击项目

  2. 鼠标悬停配置,

  3. 点击转换为tern项目

  4. 属性窗口弹出>> goto模块

  5. 您将可以看到量角器,

  6. 选中该复选框,然后单击量角器和

  7. 同时检查依赖项。

现在您可以使用量角器编写脚本。


Can we write protractor test/scripts in eclipse. Enabling syntax highlighting , intellisense etc. for Javascript in Eclipse.

解决方案

Yes, you can use protractor plugin in eclipse.

  1. Go to help-->Marketplace
  2. Search for tern.java
  3. Install Tern Eclipse IDE
  4. and accept the licence.

Now create a project in eclipse

  1. Right click on project,
  2. Mouse hover to configure and
  3. Click on convert to tern project
  4. Properties window pop-up>> goto Modules
  5. you will be able to see Protractor,
  6. Select the check box and click on the Protractor and
  7. Also check the dependencies as well.

Now you are ready to write scripts using protractor.

这篇关于如何在日食中使用量角器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆