All Projects → Altran-PT-GDC → Robot-Framework-Mainframe-3270-Library

Altran-PT-GDC / Robot-Framework-Mainframe-3270-Library

Licence: MIT license
Altran developed and open source a test library for Robot Framework to enable to create automated test scripts to test IBM Mainframe 3270.

Programming Languages

python
139335 projects - #7 most used programming language
RobotFramework
109 projects

Projects that are alternatives of or similar to Robot-Framework-Mainframe-3270-Library

Robotframework Appiumlibrary
AppiumLibrary is an appium testing library for RobotFramework
Stars: ✭ 259 (+619.44%)
Mutual labels:  robotframework
Robotframework Lint
Linter for robot framework plain text files
Stars: ✭ 100 (+177.78%)
Mutual labels:  robotframework
Myrobotlab
Open Source Java Framework for Robotics and Creative Machine Control
Stars: ✭ 163 (+352.78%)
Mutual labels:  robotframework
Mastering ros
This repository contains exercise files of the book "Mastering ROS for Robotics Programming"
Stars: ✭ 351 (+875%)
Mutual labels:  robotframework
Seleniumlibrary
Web testing library for Robot Framework
Stars: ✭ 1,011 (+2708.33%)
Mutual labels:  robotframework
Autolink
AutoLink是一个开源Web IDE自动化测试集成解决方案
Stars: ✭ 129 (+258.33%)
Mutual labels:  robotframework
robotframework-httprequestlibrary
Robot Framework's library to test REST interfaces utilizing Apache HttpClient
Stars: ✭ 20 (-44.44%)
Mutual labels:  robotframework
Autoline
建议你使用更新的AutoLink平台
Stars: ✭ 227 (+530.56%)
Mutual labels:  robotframework
Course Robotframework
Workshop and Example of Robot Framework course
Stars: ✭ 90 (+150%)
Mutual labels:  robotframework
Restinstance
Robot Framework library for RESTful JSON APIs
Stars: ✭ 157 (+336.11%)
Mutual labels:  robotframework
Allure Python
Allure integrations for Python test frameworks
Stars: ✭ 387 (+975%)
Mutual labels:  robotframework
Npp Robot
📝 Notepad++ syntax highligher for Robotframework automation framework
Stars: ✭ 25 (-30.56%)
Mutual labels:  robotframework
Robotframework Metrics
Generation of metrics report based on robotframework output.xml
Stars: ✭ 138 (+283.33%)
Mutual labels:  robotframework
Red
RED - Robot Editor
Stars: ✭ 310 (+761.11%)
Mutual labels:  robotframework
Rcc
RCC is a set of tooling that allows you to create, manage, and distribute Python-based self-contained automation packages - or 'robots' as we call them.
Stars: ✭ 168 (+366.67%)
Mutual labels:  robotframework
acceptance-testing
Acceptance test suite for the Helm client
Stars: ✭ 22 (-38.89%)
Mutual labels:  robotframework
Robotframework Database Library
Database Library contains utilities meant for Robot Framework's usage. This can allow you to query your database after an action has been made to verify the results. This is compatible* with any Database API Specification 2.0 module.
Stars: ✭ 110 (+205.56%)
Mutual labels:  robotframework
robotkernel
Robot Framework IPython kernel for Jupyter Notebook and JupyterLab
Stars: ✭ 69 (+91.67%)
Mutual labels:  robotframework
Docker Robot Framework
Robot Framework in Docker Alpine
Stars: ✭ 212 (+488.89%)
Mutual labels:  robotframework
Vic Product
vSphere Integrated Containers enables VMware customers to deliver a production-ready container solution to their developers and DevOps teams.
Stars: ✭ 143 (+297.22%)
Mutual labels:  robotframework

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.7 and 3.10, 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.

Importing

Arguments:

  • visible = True
  • timeout = 30
  • wait_time = 0.5
  • wait_time_after_write = 0
  • img_folder = .
  • run_on_failure_keyword = Take Screenshot

By default the emulator visibility is set to visible=True. In this case test cases are executed using wc3270 (Windows) or x3270 (Linux/MacOSX). You can change this by setting visible=False. Then test cases are run using ws3720 (Windows) or s3270 (Linux/MacOS). This is useful when test cases are run in a CI/CD-pipeline and there is no need for a graphical user interface.

Timeout, waits and screenshot folder are set on library import as shown above. However, they can be changed during runtime. To modify the wait_time, see Change Wait Time, to modify the img_folder, see Set Screenshot Folder, and to modify the timeout, see the Change Timeout keyword. Timeouts support all available Robot Framework time formats.

By default, Mainframe3270 will take a screenshot on failure. You can overwrite this to run any other keyword by setting the run_on_failure_keyword option. If you pass None to this argument, no keyword will be run. To change the run_on_failure_keyword during runtime, see Register Run On Failure Keyword.

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/Altran-PT-GDC/Robot-Framework-Mainframe-3270-Library/master/Dockerfile

curl -O https://raw.githubusercontent.com/Altran-PT-GDC/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

  • Altran - Altran Web Site
  • Samuel Cabral
  • Joao Gomes
  • Bruno Calado
  • Ricardo Morgado

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].