QSpiders - Chapter- 3 Synchronization point

7
Synchronizing Your Test

Transcript of QSpiders - Chapter- 3 Synchronization point

Page 1: QSpiders - Chapter- 3 Synchronization point

Synchronizing Your Test

Page 2: QSpiders - Chapter- 3 Synchronization point

• When you run tests, your application may not always respond with the same speed. For example, it might take a few seconds:– for a progress bar to reach 100%– for a status message to appear– for a button to become enabled– for a window or pop-up message to open

• You can handle these anticipated timing problems by synchronizing your test to ensure that QuickTest waits until your application is ready before performing a certain step.

Synchronizing Your Test

Page 3: QSpiders - Chapter- 3 Synchronization point

Tests can be synchronized either of the ways:

Synchronization point Exist or Wait statements Increase the default timeout settings

Page 4: QSpiders - Chapter- 3 Synchronization point

A synchronization point is a line in the test script that instructs QTP to wait for a certain response from the application during playback.

What Is a Synchronization Point?

Page 5: QSpiders - Chapter- 3 Synchronization point

Sends data to database serverWaits

Why Synchronize?

Inputs data to AUT

Acceptsinput

Run script Script

AUT

Sends data to database server

Attemptsnext step

Without synchronization point

ContinuesClient affirms transaction is complete

Inputs datato AUT

Acceptsinput

Script

AUT

Run script

With synchronization point

Waits Server processes data

Server returns resultsWaits Sy

nchr

oniz

atio

n po

int

Waits for server; cannot continue

Script fails

Page 6: QSpiders - Chapter- 3 Synchronization point

Synchronization point, which instructs QuickTest to pause the test until an object property achieves the value you specify.

When you insert a synchronization point into your test, QuickTest WaitProperty step is displayed in the Tree View with the icon for the selected object. And also it generates the WaitProperty statement in the Expert View.

Insert > Step > Synchronization Point

Page 7: QSpiders - Chapter- 3 Synchronization point