Specifications
Except Statement
module "AddEmployee"
{
event "EnterData" Windows SetFocus { Title="Enter Employee Data" }
event "Record-Save" Windows MenuCommand { Text="Record->Save" }
event "Status-Saved" Windows StatusMessage { Text="Record Saved" }
}
except # Unless the Update command is used
{
event "Record-Update" Windows MenuCommand { Text="Record- >Update" }
}
When an EnterData event occurs, Application Response begins to watch for
other events that match the remaining events of the transaction. If a Record-
Update event occurs before the remaining events of the AddEmployee
transaction occur, Application Response discards any response time
measurements collected so far (for this transaction) and begins to watch for a
new EnterData event to mark the start of a new AddEmployee transaction.
Example 2:
The following Update transaction definition specifies five events for the
transaction and three exception events. When a Title-Correction event occurs,
Application Response begins to watch for other events that match the
remaining events of the transaction. If any one of the three exception events
(Press-Cancel, File-SaveAs, or File-Close) occurs before the remaining events
of the Update transaction are matched, Application Response discards any
response time measurements collected so far for the transaction. It then
begins to watch for a new Title- Correction event to mark the start of a new
Update transaction.
transaction "Update"
module "Update"
{
event "Title-Correction" Windows SetFocus { Title="Correction – Personal Data"
}
event "Press-OK" Windows ButtonPress { Text="OK" }
event "Title-Data" Windows SetFocus
{ Title="Administer Workforce (U.S.) – Use – Personal Data" }
event "File-Save" Windows MenuCommand { Text="File->Save" }
event "Status-Saved" Windows StatusMessage { Text="Record Saved" }
}
except # Unless any one of these events occurs
{
event "Press-Cancel" Windows ButtonPress { Text="Cancel" }
event "File-SaveAs" Windows MenuCommand { Text="File->Save As" }
event "File-Close" Windows MenuCommand { Text="File->Close" }
}
BT Language Reference 171










