This article is applicable for ACCELQ Release 4.4 and older. If you are on ACCELQ 4.5 or a later release, please refer to this updated article.
accelQ supports automated test logic against mainframe terminal emulators. With the same simple natural language interface, you can build action logic to accomplish data entry and verifications on mainframe applications. accelQ currently supports both HLL and COM based emulators.
Working with Terminal Emulator requires accelQ TE Agent binaries to be placed on the machine where terminal emulator is accessible. Just like web and API testing, you can execute tests against mainframe terminals remotely as well. Please consult your administrator for access and setup instructions.
Here are the most commonly used mainframe commands available from action logic editor.
Establishing Connection
Open Terminal Emulator Session
Opens a Mainframe session by connecting to the given accelQ host. This command must be used before performing any other related steps in the action. This statement also sets the Current Session, so subsequent commands executed on Mainframe will run against this connection.
Session Name |
Unique name for the session to refer to this connection in the current action logic |
Switch to Mainframe Session
Switches to given Mainframe Session, when you are working with multiple Mainframe sessions simultaneously. Make sure that session is already established with a Connection command before trying to switch.
Session Name |
Name of the session to switch. Subsequent Mainframe commands will run against this session. |
Read Information
Get Terminal Emulator field text (by row and column)
Returns text from a field located at given row and column in the TE screen. Make sure that a connection session is already established.
Row Number |
Row number of the field text to be retrieved |
Get screen text of Terminal Emulator Session
Returns entire screen text in the current TE session, in JSON file format.
Get text in Terminal Emulator Field (by matching text )- HLL only
Returns text adjacent to a field identified by given matching text. Make sure that a session is already established.
Matching Text |
For identifying the field, whose adjacent text needs to be retrieved |
Get text in Terminal Emulator Field (by absolute position) - HLL only
Return text present at given absolute position of the terminal. Absolute position is calculated by counting the number of character positions from the top left corner of the screen to the current field. Make sure that a session is already established.
Field Position |
Absolute position of the text in the TE |
Get Cursor row number on Terminal Emulator screen (COM only)
Returns current cursor row number in the terminal. This command is applicable only for COM based emulators. Make sure that a session is already established.
Returns
|
Current cursor row number in the TE
|
Get Cursor column number on Terminal Emulator screen (COM only)
Returns current column number of cursor in TE screen. Applicable only for COM Emulators. Make sure that a session is already established.
Returns
|
Current cursor column number in the TE
|
Get row number for matching text on Terminal Emulator screen (COM only)
Returns row number of the given search text. This command is applicable only for COM based emulators. Make sure that a session is already established.
Matching Text |
search text from which row number is learnt |
Get column number for matching text on Terminal Emulator screen (in given row) - COM only
Returns column number in a given row, where search text occurs. Applicable only for COM based emulators. Make sure that a session is already established.
Row Number |
Row number of the matching text |
Verifying / Inquiring Information
Terminal Emulator screen has text
Finds out if terminal emulator screen has given text. Returns true or false based on the existence of the text. Make sure that a session is already established.
Text |
Text to verify |
Verify Terminal Emulator screen text is
Verifies given text exists in the TE. Make sure that a session is already established.
Text |
Specify the expected text that should exist in the TE |
Verify Terminal Emulator screen text is NOT
Verifies that, given text does not exist on the terminal screen. Make sure that a session is already established.
Text |
Expected Text that should not exist in the TE |
Verify Terminal Emulator field text (by row and column) is
Verifies whether given text exists in the given row and column of TE. Make sure that a session is already established.
Row Number |
Row number of the field text to be verified |
Verify Terminal Emulator field text (by row and column) is NOT
Verifies that a given text does not appear in a field at given row and column number. Make sure that a session is already established.
Row Number |
Row number of the field text to be verified |
Enter Information
Enter text in current cursor position in Terminal Emulator session
Inserts given text at the current cursor position in TE. Make sure that a session is already established.
Input Text |
Text to be inserted at the current cursor point |
Clear screen text on Terminal Emulator session
Clears text on terminal emulator screen.
Enter text in Terminal Emulator field (by row and column)
Inserts text at a given row and column. Make sure that a session is already established.
Row Number |
Row number to insert the field text |
Enter text in Terminal Emulator field (by matching text) - HLL only
Inserts text in a field identified by adjacent text (leading or trailing). It is applicable only to HLL emulators. Make sure that a session is already established.
Search Text |
Text to learn the position of the input text to insert |
Send special key to Terminal Emulator screen (HLL only)
Enters special key such as "TAB", "ENTER", "PAGEUP, "PAGEDOWN", "HOME", "END" etc. Make sure that a session is already established.
Special Key |
Special key to enter ("TAB", "ENTER", "PAGEUP", "PAGEDOWN", "HOME" or "END" |
Move Cursor to field on Terminal Emulator screen (COM only)
Moves cursor to the desired row and column in the TE. Applicable only for COM based emulators. Make sure that a session is already established.
Row Number |
Row number to which cursor should be moved |
Synchronizing on Screen Text
Wait until Terminal Emulator screen has text
Waits until TE contains the expected text.Make sure that a session is already established.
Waiting time |
Maximum time in seconds, to wait for the text to appear on the terminal |
Wait until Terminal Emulator screen NOT has text
Waits until the mainframe terminal does not contain the expected text. Make sure that a session is already established.
Waiting time |
Maximum time in seconds, to wait for the text to disappear from the TE |
Closing Connection
Close current TE Session
Closes current TE session. Make sure that a session is already established.
Comments
0 comments
Please sign in to leave a comment.