有什么用量角器中的的Node.js? [英] What is the use of node.js in protractor?

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

问题描述

我很新的AngularJS。我试图自动执行angularJS应用程序。

I'm very new to AngularJS. I am trying to automate an angularJS app.


  1. 安装的node.js

  2. 安装量角器(NPM安装-g量角器)

  3. webdriver的更新管理器工具(webdriver的经理更新)

  4. 启动驱动程序(webdriver的经理开始)

我创建了一个简单的conf.js和spec.js文件。一切工作正常,并订走。

I create a simple conf.js and spec.js files. Everything works fine and set to go.

当我们执行spec.js,量角器谈话硒的webdriver,然后启动浏览器并执行其他的东西像angularJS应用程序进行交互。我对么?

when we execute spec.js, protractor talk to selenium webdriver which then launches the browser and does the other stuff like interacting with angularJS app. Am I correct?

那么,什么是Node.js的作用在这里量角器?

So, what is the role of node.js here in protractor?

我可能是错的,如果是的话请你指正,并解释量角器是如何工作的。

I might be wrong, if so please do correct me and explain how protractor works.

在此先感谢:)

推荐答案

Node.js的是一个开源的运行时环境中开发JavaScript应用程序。 WebDriverJS已被写入的Node.js和量角器已经写在WebDriverJS的顶部。 Node.js的将执行你写在它的JavaScript引擎(谷歌V8)的规范和po文件的JavaScript code,或者你这么​​鲜艳的描述:做其他的东西像angularJS程式互动

Node.js is an open source runtime environment to develop applications in JavaScript. WebDriverJS has been written in Node.js and Protractor has been written on top of WebDriverJS. Node.js will be executing the javascript code you've written in your spec and po files with its JavaScript Engine (Google V8), or as you've so colourfully described: "does the other stuff like interacting with angularJS app".

了解更多 href=\"http://stackoverflow.com/questions/1884724/what-is-node-js\">和的这里

这篇关于有什么用量角器中的的Node.js?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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