Web UI 自動化測試框架:NightWatch.js
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.
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!