Chapter 7. Debugging Scripts

In this chapter we will cover the following recipes:

  • Enabling and disabling debugging
  • Using breakpoints to pause script execution
  • Viewing variables' values
  • Debugging tests step by step
  • Evaluating expressions

Introduction

Debugging is one of the most important actions when you create or modify test scripts. It allows you to run tests step by step, view variables' values, evaluate complex expressions related to variable and objects' states, and so on.

In this chapter we will discuss the most frequently used techniques and approaches of debugging available in TestComplete. These techniques are similar for most development environments.

Note

If you use TestComplete 8 or earlier, you need to install Microsoft Script Debugger to enable debugging in TestComplete. You can download Script Debugger from the following link: http://www.microsoft.com/en-us/download/details.aspx?id=22185.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.178.9