Skip to main content

Host 3270 Adaptor example

Description

Through the Host Adaptor, H-TEST connects with a 3270 Host to perform tests into it. This adapter is used to run tests on the 3270 Host Adapter. This adapter allows us on the one hand to run tests on Host Mainframe screens and also to generate macros that allow us to automate tests on "transformed to HTML" systems. It’s possible to perform single tests with this adaptor or end to end tests connecting with other adaptors either.

Statement of the exercise 

It is a simple navigation on a main menu (see bank accounts and data of that type).

Solving the test case

As part of the mapping process, you should provide the Adaptor’s information, regarding to connect and use it:

Object Mapping 1.png

Object Mapping 2.pngObject Mapping 3.png

Object Mapping 3.1.png

Object Mapping 5.png

Diagram.png

Functions we have used with Host 3270 Adaptor:

  • waitFor: wait for the time in seconds received in the parameter to elapse. The value we have indicated as timeout is:
    •  2 seconds.

  • writeKey (Key): this function executes a predefined key on the screen.

PFWriteKey.png

  • writeKeyUntilFind(Key, Text): this function executes the function key (Key) and waits for the text (Text) to appear on the screen.
  • writeText (Text,Row,Column): this function writes a text in a defined position.(line and column).
    • Parameter Text: value→ text to write.
    • Parameter Row: value→ row Number.
    • Parameter Column: value→ column number.
      These parameters are obtained by right-clicking on the screen we want to display.

    Test Set Execution

    When we finish executing this test case, we see if it has been executed correctly:

    Execution.png

    Capture of results

    We then open the icon on the right (marked with a red arrow) and we have as a result the evidence folder, where both the log of the execution is stored, as well as all the screenshots, files, etc... if we have checked the "Evidence" box in the general settings of the diagram.

    Evidence folder

    Evidences.png

    Log of the execution   

    Log.png

    When returning the results, H-TEST returns a Word document, detailing the steps we have taken, the results obtained from each step, the links to the diagram and the test set, if we have clicked on download document in the Results box.

    Word.png