Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

Overview

Test and debug JavaScript the easy way.

  • Learn different techniques to test JavaScript, no matter how long or short your code might be.

  • Discover the most important and free tools to help make your debugging task less painful.

  • Discover how to test user interfaces that are controlled by JavaScript.

  • Make use of free built-in browser features to quickly find out why your JavaScript code is not working, and most importantly, how to debug it.

  • Automate your testing process using external testing tools.

In Detail

JavaScript is an important part of web development in today’s Web 2.0 world. While there are many JavaScript frameworks in the market, learning to write, test, and debug JavaScript without the help of any framework will make you a better JavaScript developer. However, testing and debugging can be time consuming, tedious, and painful. This book will ease your woes by providing various testing strategies, advice, and tool guides that will make testing smooth and easy.

This book shows you the most essential features of JavaScript, which you will be using in your daily development, testing, and debugging tasks. You will learn to use the most basic functions of JavaScript to perform ad hoc testing quickly and efficiently.

This book is organized in an easy to follow, step-by-step tutorial style to maximize your learning. You will first learn about the different types of errors you will most often encounter as a JavaScript developer. You will also learn the most essential features of JavaScript through our easy to follow examples.As you go along, you will learn how to write better JavaScript code through validation. Learning how to write validated code alone will help you improve tremendously as a JavaScript developer and most importantly, to write JavaScript code that runs better, faster, and with less bugs.

As our JavaScript program gets larger, we need better ways of testing our JavaScript code. You will learn how to go about various testing concepts and how to use them in your test plan. After which, you will learn how to implement the test plan for your code. To accommodate more complex JavaScript code, you will learn more about the built-in features of JavaScript to identify and catch different types of JavaScript error. Such information helps to spot the root of the problem so that you can act on it.

Finally, you will learn how to make use of the built-in browser tools and other external tools to automate your testing process.

Learn how to test and debug JavaScript through example-driven tutorials.

Subscriber Reviews

Average Rating: 1 out of 5 rating Based on 1 Rating

"No Structure" - by Anonymous on 26-APR-2012
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
This book is poorly laid out and doesn't teach actual methodical testing principles or mention test-driven development. Rather, it's more of a book about ad hoc debugging and hacking at your code to make it work.
Report as Inappropriate

Table of Contents

 Index

Extras

The publisher has provided additional content related to this title.


Description
Content

Downloading the example code for this book

  • You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com.
  • If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.