Web UI 自动化测试框架:NightWatch.js
jopen
11年前
Nightwatch.js是一个易于使用,基于Node.js的端至端(E2E)测试解决方案,用于基于浏览器的应用程序和网站。它采用了功能强大的 Selenium WebDriver API 对DOM元素执行命令和断言。
主要特性:
-
简单但功能强大的语法,使您能够编写测试速度非常快,只用Javascript和CSS选择器。无需初始化其他对象和类,你只需要编写测试规范。
-
内置命令行测试运行器,使您能够按组或单个运行测试。
-
Manages the Selenium server automatically; can be disabled if Selenium runs on another machine.
-
Continous Integration support: JUnit XML reporting is built-in so you can integrate your tests in your build process with systems suchs as Hudson or Teamcity.
-
Use CSS selectors or Xpath to locate and verify elements on the page or execute commands.
-
Easy to extend if you need to implement your own commands specific to your application.