Modifying Scripts

Recorded scripts provide a baseline for application testing. After recording, you can create more flexible and complex scripts by adding statements, calling other scripts, creating checkpoints, and using data sources for input data.

You can modify scripts in Keyword View and Text View. Text View provides greater flexibility and allows you to add advanced logic to scripts that is not available in Keyword View. See Using Text View.

Statements

Each action performed during recording is added to the script as a statement. You can add additional statements to control how a script runs or return values to variables that can be passed to other statements. See Adding statements.

See Statements for a list of available statements.

Called scripts

Keep scripts simple, modular, and focused on performing a specific task. After you create scripts to perform different tasks, you can use the CallScript statement to combine them and create more complex scripts that perform multiple tasks as the same time. When a script is called, QA Wizard Pro runs it to completion and then returns to the script that called it to continue playback. See Calling scripts from other scripts.

Checkpoints

Use checkpoints to verify that the value of a property in an application window or control matches an expected value during playback. If the actual value in the tested application and the expected value do not match, the script fails. See Using Checkpoints.

Data-driven scripts

Create data-driven scripts to use data from other sources to test a different set of data each time a script runs. During playback, QA Wizard Pro reads input values from a local or external datasheet. See Creating Data-Driven Scripts.

Other script modification tasks

As you become more familiar with how scripts work, you can perform the following tasks to work with and manage them.