Using Node.js for UI Testing
暫譯: 使用 Node.js 進行 UI 測試
Pedro Teixeira
- 出版商: Packt Publishing
- 出版日期: 2013-03-24
- 售價: $900
- 貴賓價: 9.5 折 $855
- 語言: 英文
- 頁數: 146
- 裝訂: Paperback
- ISBN: 1782160523
- ISBN-13: 9781782160526
-
相關分類:
selenium
海外代購書籍(需單獨結帳)
買這商品的人也買了...
-
C Primer Plus, 5/e 中文精華增訂版$560$442 -
大話設計模式$620$490 -
C 語言除錯高手$480$379 -
實用機工學─知識單, 6/e$480$432 -
HTML & CSS : 網站設計建置優化之道 (HTML and CSS: Design and Build Websites)$580$493 -
JavaScript & jQuery: The Missing Manual 國際中文版, 2/e
$580$458 -
行動介面設計模式圖鑑-以視覺範例學習有效的介面設計模式 (Mobile Design Pattern Gallery: UI Patterns for Mobile Applications)$580$458 -
Dreamweaver 達人設計寶典$520$442 -
大學程式能力檢定:CPE 祕笈$500$425 -
無瑕的程式碼-敏捷軟體開發技巧守則 (Clean Code: A Handbook of Agile Software Craftsmanship)$580$452 -
Android App 程式設計教本之無痛起步$480$408 -
超圖解 Arduino 互動設計入門 (附 Arduino UNO R3 開發板)$1,130$961 -
彩色 GPIO 排線 (Raspberry Pi 適用)$120$114 -
CSS3 網頁設計師手札, 4/e (The CSS3 Anthology: Take Your Sites to New Heights, 4/e)$450$356 -
Arduino UNO R3 開發板(副廠相容版)附傳輸線$400$380 -
Arduino 基礎入門套件 (附範例程式下載連結)$950$903 -
易讀程式之美學-提升程式碼可讀性的簡單法則 (The Art of Readable Code)$480$379 -
Android 程式設計, 2/e (Programming Android: Java Programming for the New Generation of Mobile Devices, 2/e)$780$616 -
搞懂 NoSQL 的 15 堂課 (NoSQL Distilled 中文版) (NoSQL Distilled: A Brief Guide to the Emerging World of Polyglot Persistence)$360$284 -
培養與鍛鍊程式設計的邏輯腦:程式設計大賽的解題策略基礎入門$280$218 -
Binary Hacks -- 駭客秘傳技巧一百招$580$458 -
HTML5 錦囊妙計 (HTML5 Cookbook)$520$411 -
HTML5 + CSS3 智慧型手機專用網站設計$450$356 -
Adobe Edge Animate: The Missing Manual 國際中文版$580$458 -
永遠懷抱希望:柳井正給所有人的再成長計畫$300$255
相關主題
商品描述
Learn how to easily automate testing of your web apps using Node.js, Zombie.js, and Mocha
Overview
- Use automated tests to keep your web app rock solid and bug-free while you code
- Use a headless browser to quickly test your web application every time you make a small change to it.
- Use Mocha to describe and test the capabilities of your web app.
In Detail
Automating tests for your user interfaces has always been the holy grail of programming. Now, using Zombie.js and Mocha you can create and quickly run your tests, allowing you to test even small changes. Increase your confidence in the code and minimize the number of times you have to use a real browser while you develop.
"Using Node.js for UI Testing" is a quick and thorough guide on how to automatically test your web app, keeping it rock solid and bug-free. You will learn how to simulate complex user behaviour and verify that your application behaves correctly.
You will create a web app in Node.js that uses complex user interactions and AJAX; by the end you will be able to fully test it from the command-line. Then you will start creating the user interface tests for this application using Mocha as a framework and Zombie.js as a headless browser.
You will also create a complete test suite, module by module, testing simple and complex user interactions.
What you will learn from this book
- Creating your test suite using Mocha.
- Building a web application using Node.js and Flatiron.js.
- Loading documents into the Zombie.js headless browser.
- Triggering user events in Zombie.js.
- Querying the DOM to test your application behaviour.
- Injecting complex events into your application.
- Triggering and testing complex user interactions and AJAX calls.
- Inspecting the Zombie headless browser state.
Approach
Full of techniques and tips for simulating user interactions and verifying that your application is behaving correctly.
Who this book is written for
This book is for frontend and backend web application developers that know how to program in JavaScript.
商品描述(中文翻譯)
學習如何輕鬆自動化測試您的網頁應用程式,使用 Node.js、Zombie.js 和 Mocha
概述
- 使用自動化測試來保持您的網頁應用程式穩固且無錯誤,讓您在編碼時無後顧之憂
- 使用無頭瀏覽器快速測試您的網頁應用程式,每當您對其進行小改動時
- 使用 Mocha 來描述和測試您的網頁應用程式的功能
詳細內容
自動化測試用戶介面一直是程式設計的聖杯。現在,使用 Zombie.js 和 Mocha,您可以創建並快速運行測試,讓您能夠測試即使是小的變更。提高您對代碼的信心,並最小化在開發過程中使用真實瀏覽器的次數。
《使用 Node.js 進行 UI 測試》是一本快速且徹底的指南,教您如何自動測試您的網頁應用程式,保持其穩固且無錯誤。您將學會如何模擬複雜的用戶行為並驗證您的應用程式是否正確運作。
您將在 Node.js 中創建一個使用複雜用戶互動和 AJAX 的網頁應用程式;到最後,您將能夠從命令行完全測試它。然後,您將開始使用 Mocha 作為框架和 Zombie.js 作為無頭瀏覽器來創建該應用程式的用戶介面測試。
您還將逐模組創建一個完整的測試套件,測試簡單和複雜的用戶互動。
您將從本書中學到的內容
- 使用 Mocha 創建您的測試套件
- 使用 Node.js 和 Flatiron.js 構建網頁應用程式
- 將文檔加載到 Zombie.js 無頭瀏覽器中
- 在 Zombie.js 中觸發用戶事件
- 查詢 DOM 以測試您的應用程式行為
- 將複雜事件注入到您的應用程式中
- 觸發和測試複雜的用戶互動和 AJAX 調用
- 檢查 Zombie 無頭瀏覽器的狀態
方法
本書充滿了模擬用戶互動和驗證您的應用程式正確運作的技巧和提示。
本書的讀者對象
本書適合懂得如何使用 JavaScript 編程的前端和後端網頁應用程式開發者。
