Consultor Eletrônico



Kbase 5985: Keystroke capture/playback startup option (-K) Undocumented
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/05/1998
Keystroke capture/playback startup option (-K) Undocumented

901126-SLK01
INTRODUCTION:
=============
This document describes how to use the undocumented -K
startup option for KEYSTROKE CAPTURE.
This option is only available prior to Version 7 of PROGRESS.


The keycapture utility allows a user to capture all of
the i/o in a Progress session in a log file for later
re-play in either batch or interactive mode.

NOTE, HOWEVER, THAT THIS IS AN UN-SUPPORTED UTILITY
PROVIDED BY PROGRESS. WE DISCLAIM ANY RESPONSIBILITY FOR
PROBLEMS YOU MAY HAVE IN USING THIS UTILITY.

WHY YOU NEED TO DO THIS:
========================
In most cases, this would be used for testing purposes
(to QA a particular area of a product) or to debug a
problem where the keystrokes are important to duplicate.

PROCEDURAL APPROACH:
====================
I. RECORD keystrokes

___ Set TERM environment variable:
e.g., TERM=wy60 or TERM=sun
export TERM

___ pro database-name -K record keyfile.mstr

where: keyfile.mstr = master file where
keystrokes will be stored.

You will be brought into the editor (or your
application if you used the -p start-up option also)
and anything you type from that point on will be
recorded in keyfile.mstr.

NOTE: Escaping to the operating system while in
the Progress session will stop the keycapture
utility. Avoid this while using keycapture.

If you need to test something where you need
to get out to the operating system to do
something (e.g., dumping from one database
and loading into another; or multi-user testing),
make each session a separate keycapture file
and "quit" at the end of each session.


II. PLAYBACK or BATCH PLAYBACK

o Set TERM environment variable (must be the same
as what you set to record the PROGRESS session)
and export it.

o To playback your keycapture file interactively,
use:

pro database-name -K playback keyfile.mstr keyfile.gen


o To playback your keycapture file in batch,
use:
pro database-name -K batch keyfile.mstr keyfile.gen

where keyfile.mstr is your master
file originally recorded
keyfile.gen is where the results
of playback will be stored

III. Compare the master keystroke capture file to
the newly generated keystroke capture file:

cmp keyfile.mstr keyfile.gen (cmp is a unix command).

ONLINE PROCEDURES OR UTILITIES
===============================
None


REFERENCES TO WRITTEN DOCUMENTATION:
====================================
None

Progress Software Technical Support Note # 5985