万本电子书0元读

万本电子书0元读

顶部广告

Using Node.js for UI Testing电子书

售       价:¥

7人正在读 | 1人评论 9.8

作       者:Pedro Teixeira

出  版  社:Packt Publishing

出版时间:2013-03-26

字       数:46.1万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:此类商品不支持退换货,不支持下载打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(1条)
  • 读书简介
  • 目录
  • 累计评论(1条)
Full of techniques and tips for simulating user interactions and verifying that your application is behaving correctly. This book is for frontend and backend web application developers that know how to program in JavaScript.
目录展开

Using Node.js for UI Testing

Table of Contents

Using Node.js for UI Testing

Credits

About the Author

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers and more

Why Subscribe?

Free Access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

1. Getting Started with Zombie.js

A brief history of software and user interface testing

Enter the automation era

Unit tests versus integration tests

What Zombie.js is

Understanding the server-side DOM

Zombie.js is your headless browser

Summary

2. Creating a Simple Web App

Defining the requirements of our web app

Setting up Node.js and Flatiron

Installing Node.js

Installing Node from the source code

Installing Flatiron and starting your application

Creating your to-do app

Setting up the database

Accessing CouchDB from Node

Application layout

Developing the frontend

User registration

Logging in and session management

The to-do list

File summary

Summary

3. Installing Zombie.js and Mocha

Changing the application manifest

Setting up a test environment

Summary

4. Understanding Mocha

Organizing your tests

Using before and after hooks

Using asynchronous hooks

How hooks interact with test groups

Using assertions

Changing the assertion message

Performing asynchronous tests

Summary

5. Manipulating the Zombie Browser

When is the browser ready?

Options when visiting URLs

debug

headers

maxWait

Checking the existence of elements

Filling a form

Testing the login form

Testing the to-do list

Testing the to-do list page

Testing the to-do item creation

Testing to-do item removal

Putting it all together

Summary

6. Testing Interactions

Acting on radio buttons

Testing the user interaction

Selecting values

Summary

7. Debugging

Running a specific test

Enabling the debugging output per test

Using the browser JavaScript console

Dumping the browser state

Dumping the whole document

Summary

8. Testing AJAX

Implementing drag-and-drop

Summary

Index

累计评论(1条) 1个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部