The state of the terminal is recorded while you record a script. When the script is played back, Functional Tester must wait for the state of the terminal to match the state during recording. The state must be the same in order to avoid sending commands to the host before the host is ready to receive input. The state of the terminal is determined by the operator information area (OIA) status (either locked or unlocked), which depends on the loading of presentation space. The loading of the presentation space is not an instantaneous process and different connection types load the presentation space differently.
The default wait period values that the synchronization algorithms use are as follows:
Algorithm | Synchronization settings |
---|---|
Default synchronization and 5250 synchronization |
|
TN3270E Synchronization | Minimum time to wait (in milliseconds): 250 |
You can change any of these values using the Preferences window.
If Timeout is set to 1200 milliseconds, and an update occurs during the last 600 milliseconds, the algorithm waits for an additional 600 milliseconds for further updates. If, during this additional wait period, another update occurs during the last 300 milliseconds, the algorithm waits again for another 600 milliseconds for further updates. This continues until no updates are received during the last half of the last additional time period.
At this point, the state of the terminal is either LOADED (keyboard locked) or READY (keyboard unlocked), depending upon the OIA status.
The server notifies the algorithm that the presentation space updates are sent. The synchronization algorithm waits for the period specified in the Minimum time to wait field in the Preferences window, and then queries the state of OIA to determine whether or not to report READY. If the synchronization algorithm has waited for the period in the Timeout field in the Preferences window without the OIA state becoming ready, the algorithm reports a state of LOADED. At all other times, it reports a state of UNINITIALIZED. This algorithm requires that the correct service level for the TN3270 server is installed on the host.
To change the contention resolution setting: In the Extension for Terminal-based Applications window, open the Advanced Settings window by clicking Advanced. Scroll to negotiateCResolution property in the Configure optional advanced settings list. Change the setting for this property from true to false.
When you play back the script, Functional Tester waits for the host terminal to show an appropriate state before it continues to run commands from the record script.
You can change the time setting in the Preferences window.