Instant Testing with CasperJS
图书信息
| 作者 | ?ric Bréhault |
| 出版社 | Packt Publishing |
| ISBN | 9781783289448 |
| 出版时间 | 2014-01-24 |
| 字数 | 51.4万 |
| 分类 | 进口书,外文原版书,电脑,网络 |
读书简介
Filled with practical, stepbystep instructions and clear explanations for the most important and useful tasks. A concise guide full of stepbystep recipes to teach you how to create CasperJS tests for your web development projects. This book will be extremely useful for web developers who are new to testing or who want to move from another testing solution to CasperJS. It is assumed that you are familiar with web development and have a good knowledge of JavaScript.
目录
Instant Testing with CasperJS
Instant Testing with CasperJS
Credits
About the Author
About the Reviewer
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. Instant Testing with CasperJS
Installing CasperJS (Simple)
Getting ready
How to do it...
How it works...
There's more...
Installing CasperJS with Homebrew on Mac OS X
Installing PhantomJS on Ubuntu
Using the CasperJS Ruby executable
Getting started with CasperJS (Simple)
Getting ready
How to do it...
Timing is everything
Live recording
How it works...
There's more...
XPath selectors
Assertion methods
The WaitFor methods
The wait() method
Installing Resurrectio from the GitHub sources
Writing advanced tests (Intermediate)
How to do it...
Downloading files
Uploading files
Authentication
Keyboard and mouse events
How it works...
There's more...
Passing parameters to the download() method
setHttpAuth might have surprising timing
Best practices (Intermediate)
Testing the real thing
Surviving design changes
Creating test suites
Running CasperJS on Jenkins
Running CasperJS on Travis-CI
Beyond testing (Advanced)
Web scripting
Screenshot production
- 特征工程入门与实践((土)锡南·厄兹代米尔)
- 软件需求最佳实践——SERU过程框架原理与应用(典藏版)(徐锋)
- 四季筵(清辰)
- 永无止尽的狂热:三岛由纪夫(杨照)
- 151 Provérbios de Shakespeare(Willian Castro)
- 第7集 制度的起点是小人思维(俞凌雄)
- 文治帝国:大宋300年的世运与人物【畅销书《一看就停不下来的中国史》作者重磅新书!】(艾公子)
- 谦逊的问讯:以询问开启良好关系的艺术(原书第2版)((美)埃德加·沙因,(美)彼得·沙因)
