The Rational Functional Tester Extension for Terminal based applications supports programmatic screen scrapping. Earlier versions of Functional Tester Extensions, data verification on a terminal screen was performed only on fields, characters or rows (Virtual Terminal). With programmatic screen scrapping, data verification is performed on arbitrary location. This is used to scrape a portion of the terminal screen to determine if the text appears in the specified position of the screen. Also, it makes the playback process to wait to allow the text to appear on the screen. API's are developed in order to support this feature.
Methods that are used to extract information from a portion of the screen are:
Methods | Description |
---|---|
public void startEventMonitor() | Collects the screen changes and stores it in a buffer. |
public boolean checkForChange(int startRow, int startCol, int endRow, int endCol, String text) | Checks for the text at a particular position. |
public boolean checkForChange(int startRow, int startCol, int endRow, int endCol, String text, boolean clearBuffer) | Checks for the text at a particular position, and clears the buffer. |
public boolean waitForChange(int startRow, int startCol, int endRow, int endCol, String text) | Waits for the text to appear in the specified position. |
public boolean waitForChange(int startRow, int startCol, int endRow, int endCol, String text, long timeout) | Waits for the text to appear in specified position for the specified time. |
clearHistory() | Clears the buffer. |
public void stopEventMonitor() | Stops collecting inputs from the screen. |