About This Book
- Learn the fundamentals of working with the headless PhantomJS browser
- Create unit and functional test suites backed by PhantomJS
- Integrate PhantomJS into development and testing workflows for efficient unit testing
Who This Book Is For
This book is intended for web development professionals who want to integrate PhantomJS into their development and testing workflows. If you are a web developer looking to run automated unit tests while you work, or perhaps you are a QA engineer looking for a fast test automation utility, then this book is perfect for you. Some prior knowledge of JavaScript would be helpful.
What You Will Learn
- Develop your own PhantomJS core modules
- Learn sophisticated strategies for interacting with web page contents and how to capture those interactions
- Create a front-end continuous integration (CI) strategy with PhantomJS
- Perform unit testing with frameworks such as Jasmine, Mocha, and QUnit
- Implement functional and end-to-end testing with PhantomJS using tools such as Selenium, Capybara, and CasperJS
- Automate performance analysis with libraries such as Confess.js and YSlow
- Automate the generation of images and PDFs of your web content
In Detail
Beginning with the basics of PhantomJS, this book will dive into its core modules and guide you through how to solve real-world testing problems. This book explores a variety of test automation tasks, including executing JavaScript unit tests with the Jasmine, QUnit, and Mocha frameworks; functional tests with tools such as Selenium, Capybara, and CasperJS; performance analysis with tools such as YSlow; and much more.
If you are a web developer looking to run automated unit tests while you work, or perhaps you are a QA engineer looking for a fast test automation utility, then this book is perfect for you. Some prior knowledge of JavaScript would be helpful.