Chapter 3. Scripting

In this chapter we will cover the following recipes:

  • Entering text into text fields
  • Using wildcards to process objects with variable names
  • Structuring code using loops
  • Creating property checkpoints
  • Creating object checkpoints
  • Using global variables
  • Testing multilingual applications
  • Working with nonstandard controls
  • Organizing script code in the project
  • Handling exceptions
  • Handling exceptions from a different unit
  • Creating framework using the OOP approach

Introduction

Recording in TestComplete allows us to fast create testing scripts, and recorded tests are easy to read and maintain. Scripting allows us to create powerful and maintainable tests. It also allows us to create handy testing frameworks and solve complicated tasks with programming. Scripting also requires good programming skills and general understanding of project's design. In this chapter, we will consider different programming tasks one may face when manually creating test scripts. We will use JScript programming language for our examples.

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

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