background image
<< Part II - Enhancing Your Tests | Testcase - Using application states >>
Generalizing a Testcase
<< Part II - Enhancing Your Tests | Testcase - Using application states >>
User's Guide
185
8
C
h
a
p
t
e
r
8
Generalizing a Testcase
The testcases you record are written in 4Test, a fourth-generation language
(4GL) designed specifically for testing GUI applications. 4Test provides a
rich set of statements, keywords, functions, and operators that allow you to
generalize your recordings to make them more robust.
What you will learn
This chapter contains the following sections:
For more information on any of the 4Test statements and reserved words
discussed in this chapter, see the online Help.
Using application states
When testing an application, you're likely to have a number of testcases that
have identical setup steps. For example, each testcase that exercises the
sample Find dialog's forward, case-sensitive searching ability has the same
Setup stage.
Example
Each testcase needs to
·
Open a new document file
·
Type text into the document
·
Position the insertion point at the top of the file
·
Select Find from the Search menu
Topic
Page
Using application states
185
Using data-driven testcases
189
Testing applications that have been made Year 2000 compliant
195