Chapter 12. Events Handling

In this chapter we will cover the following recipes:

  • Creating event handlers
  • Disabling the postage of certain error messages
  • Clicking on disabled controls without an error message
  • Handling unexpected windows that affect TestComplete
  • Handling unexpected windows that don't affect TestComplete
  • Saving the log to a disk after each test
  • Sending a notification e-mail on timeouts
  • Creating preconditions and postconditions for tests

Introduction

Every development environment allows handling events, that is, creating custom actions for different situations an application may face during its work.

TestComplete is also a development environment with its own events, and it also allows us to create handlers for different events: Log events, Network Suite events, general events of test engine, and so on.

In this chapter, we will consider the most frequently used events handlers one may need to know when performing test automation with TestComplete. We will also consider some tasks which can be best solved with the help of event's handlers.

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

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