Skip to main content

PyPi downloads Total downloads Latest Version tests codecov

Mainframe3270Library

Introduction

Mainframe3270 is a library for Robot Framework based on the py3270 project, a Python interface to x3270, an IBM 3270 terminal emulator. It provides an API to a x3270 or s3270 subprocess.

Compatibility

Mainframe3270 requires Python 3. It is tested with Python 3.8 and 3.12, but should support all versions in between these.

Installation

In order to use this library, first install the package from PyPI.

pip install robotframework-mainframe3270

Or you can upgrade with:

pip install --upgrade robotframework-mainframe3270

Then, depending on your OS, proceed with the corresponding chapters in this README.

Windows

You need to install the x3270 project and put the directory on your PATH.

The default folder is "C:\Program Files\wc3270". This needs to be in the PATH environment variable.

Unix

You can install the x3270 project from the instructions page. Or if it is available in your distribution through:

sudo apt-get install x3270

or

brew install x3270

More information can be found on the Wiki page of this project.

Example

*** Settings ***
Library    Mainframe3270

*** Test Cases ***
Example
    Open Connection    Hostname    LUname
    Change Wait Time    0.4 seconds
    Change Wait Time After Write    0.4 seconds
    Set Screenshot Folder    C:\\Temp\\IMG
    ${value}    Read    3    10    17
    Page Should Contain String    ENTER APPLICATION
    Wait Field Detected
    Write Bare    applicationname
    Send Enter
    Take Screenshot
    Close Connection

Keyword Documentation

You can find the keyword documentation here.

Running with Docker

The Docker image contains everything that is needed to run Mainframe tests. Currently the image is not published to Docker Hub. In order to use it, perform the following steps.

  1. Download the Dockerfile sources
curl -O https://raw.githubusercontent.com/MarketSquare/Robot-Framework-Mainframe-3270-Library/master/Dockerfile

curl -O https://raw.githubusercontent.com/MarketSquare/Robot-Framework-Mainframe-3270-Library/master/entrypoint.sh
  1. Build the image:
docker build -t mainframe3270 .
  1. Run the container
docker run --user mfuser -v /path/to/your/tests:/home/mfuser/tests mainframe3270 robot /home/mfuser/tests

Contributing to Robot-Framework-Mainframe3270-Library

Interested in contributing to the project? Great to hear! Whether you found a bug, or want to develop a new feature, please refer to our Contributing Guidelines to help you get started.

Wiki

For more information visit the repository Wiki.

Changelog

For an overview of the (latest) changes see CHANGELOG.

Authors

Initial development was sponsored by Capgemini Engineering

  • Samuel Cabral
  • Joao Gomes
  • Bruno Calado
  • Ricardo Morgado

Maintainers

  • Robin Matz

License

This project is licensed under the MIT License - see LICENSE for details.

Metadata

Release files for robotframework-mainframe3270 4.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for robotframework-mainframe3270 4.4
File Size Uploaded
robotframework_mainframe3270-4.4.tar.gz 24.5 kB Details

Release files / robotframework_mainframe3270-4.4.tar.gz

Download URL robotframework_mainframe3270-4.4.tar.gz
Size 24.5 kB
Tags Source
SHA-256 checksum
How to use checksums
34b6f36d9b49fbc09652f5a54903963c64c2085be034182f21d5ad5ef8d0f23b
BLAKE2b-256 checksum
How to use checksums
c0a30b501fd7d4921f092fd80c04080de886912cb7a391d1ae924d8037fef173
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release history Release notifications | RSS feed

This release

4.4 This release

1 release file

4.3

1 release file

4.2

1 release file

4.1

1 release file

4.0

1 release file

3.2

1 release file

3.1

1 release file

3.0

1 release file

2.12

1 release file

2.11

1 release file

2.10

1 release file

2.9

1 release file

2.8

1 release file

2.7

1 release file

2.6

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page