Skip to main content

Windows GUI testing library for Robot Framework

Project description

Robotframework-FlaUI Library

License
Python Builds (x86)
Python Builds (x64)
Tests
Python python_312
Robotframework
PyPi

Introduction

Robotframework-FlaUI is a keyword based user interface automation testing library for Windows applications like Win32, WinForms, WPF or Store Apps. It's based on the FlaUI user interface automation library.

Installation

Install the latest stable release:

pip install --upgrade robotframework-flaui

Dependencies and python support

The robot framework FlaUI is supposed to support the current Python 3 versions.

Required dependencies

See dependencies from Documentation

Python.Net Wrapper Issues

Robotframework-Flaui 1.x

  • With the release of Python.Net version 2.5.2, Python 3.9 support was implemented for the first time.
  • However, no official support for Python 3.9 has been released yet.
    • For more information see the issue #1389
  • If there are problems installing the Python.Net library, please use Python 3.8 instead.
  • This is only a potential problem by all robotframework-flaui 1.x versions which are implemented by Python.Net 2.5.2

Robotframework-Flaui 2.x

  • Sometimes an AccessViolationException wil be occure on latest Python.Net Version v3.0.1
    • For more information see the issue #1977
    • A workaround is to set Python's memory allocation environment variable "PYTHONMALLOC=malloc"

Documentation

RFHUB2

RFHUB2 is an opensource project aimed to provide nice and easy way of collecting, browsing and sharing documentation of existing keywords written in RobotFramework and python. Built with Material-UI and FastAPI, served by Uvicorn.

Under docs/keywords are the necessary .XML files to import the keywords.

These can be imported separately according to their version with the RFHUB2-CLI tool or all versions.

rfhub2-cli .\docs\keywords\
rfhub2-cli .\docs\keywords\<VERSION>

GUI Inspector Tools

There are various tools around which help inspecting application that should be ui tested or automated.

Some of them are:

Examples

Examples of use can be found in the atests folder.

Development

Preconditions

  • Install Python, if not already installed.
  • Only Python 3 is supported.
  • Install Robotframework and Python.Net

Dependency installation by Keen.bat

.\keen.bat dependency

Test-Applications

Two test projects were used for the UI automation:

  • FlaUI WPF Test App 'Standard application that contains all common UI elements'
  • Notifier Test App 'Application which closes automatically after a time'

Building and testing locally

Use the provided 'Commander Keen' file:

.\keen.bat test

The script automatically builds the:

  • Library as a wheel file stored in the Dist folder
  • Test documentation located in the Docs folder
  • Automatically installs and runs the robot tests of the library and saves the test results in the Result folder

Following arguments are supported:

.\keen.bat <argument>
  • cleanup - Removes all build folders
  • dependency - Install all python dependencies
  • build - Build wheel file
  • install - Install wheel file
  • test - Test robotframework-flaui (UIA2 and UIA3)
  • test_uia2 - Test UIA2 interface usage
  • test_uia3 - Test UIA3 interface usage
  • pylint - Static code analysis for python code
  • robocop - Static code analysis for robotframework code
  • tidy - Formatter for robotframework code

Acknowledgements

FlaUI

  • Thanks to @Roemer for the passion to create and maintain the FlaUI project.
  • Thanks to FlaUI developers and maintainers for this project.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

robotframework_flaui-3.5.0.tar.gz (274.8 kB view details)

Uploaded Source

Built Distributions

robotframework_flaui-3.5.0-cp312-cp312-win_amd64.whl (304.0 kB view details)

Uploaded CPython 3.12 Windows x86-64

robotframework_flaui-3.5.0-cp312-cp312-win32.whl (304.0 kB view details)

Uploaded CPython 3.12 Windows x86

robotframework_flaui-3.5.0-cp311-cp311-win_amd64.whl (304.0 kB view details)

Uploaded CPython 3.11 Windows x86-64

robotframework_flaui-3.5.0-cp311-cp311-win32.whl (304.0 kB view details)

Uploaded CPython 3.11 Windows x86

robotframework_flaui-3.5.0-cp310-cp310-win_amd64.whl (304.0 kB view details)

Uploaded CPython 3.10 Windows x86-64

robotframework_flaui-3.5.0-cp310-cp310-win32.whl (304.0 kB view details)

Uploaded CPython 3.10 Windows x86

robotframework_flaui-3.5.0-cp39-cp39-win_amd64.whl (304.0 kB view details)

Uploaded CPython 3.9 Windows x86-64

robotframework_flaui-3.5.0-cp39-cp39-win32.whl (304.0 kB view details)

Uploaded CPython 3.9 Windows x86

robotframework_flaui-3.5.0-cp38-cp38-win_amd64.whl (304.0 kB view details)

Uploaded CPython 3.8 Windows x86-64

robotframework_flaui-3.5.0-cp38-cp38-win32.whl (304.0 kB view details)

Uploaded CPython 3.8 Windows x86

File details

Details for the file robotframework_flaui-3.5.0.tar.gz.

File metadata

  • Download URL: robotframework_flaui-3.5.0.tar.gz
  • Upload date:
  • Size: 274.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.10

File hashes

Hashes for robotframework_flaui-3.5.0.tar.gz
Algorithm Hash digest
SHA256 57d566872d566a792d79fa25630f56c7420f5073300f218cde8ad427032029a8
MD5 d6af7a71abfd673d1986f50147892904
BLAKE2b-256 f3997d4bbcd3b50e18e3248511cd8899eff9ec62b82c129f97caf47112c08566

See more details on using hashes here.

File details

Details for the file robotframework_flaui-3.5.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for robotframework_flaui-3.5.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5e9f3ad72e5e127d0a57550e10b2adbb45bc6cd867f2f9a04100aff549702371
MD5 25205ee0c48a143832b033b33b9d7388
BLAKE2b-256 259fe5854570d97e2ca3f2a607401e4a030cf9ec26b00a46695fd59ffeff2bcf

See more details on using hashes here.

File details

Details for the file robotframework_flaui-3.5.0-cp312-cp312-win32.whl.

File metadata

File hashes

Hashes for robotframework_flaui-3.5.0-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 67e6b16e9db580369bbf9b5d0cb30c763ae36bc1fa5b43cbbe0eed414ca2c892
MD5 1085a4dc921ec6f9fe41ce40b366f2fe
BLAKE2b-256 80182828be7e1dddea6536bf2a9f4626de46ec1392cdec1ac3625fa4f7352aa6

See more details on using hashes here.

File details

Details for the file robotframework_flaui-3.5.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for robotframework_flaui-3.5.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3a7365b6dce092cfc972be6cd5f58241ccd2f423b8240c1668e6afa6961b5d23
MD5 c422a839eb7c8884f8a9e06c6716000f
BLAKE2b-256 47ce1e72992ff26ee3442fb79dc02b5cc0acdb264eab3322df18d4a2b03963f9

See more details on using hashes here.

File details

Details for the file robotframework_flaui-3.5.0-cp311-cp311-win32.whl.

File metadata

File hashes

Hashes for robotframework_flaui-3.5.0-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6cddaee371e913dd19438f377a884f726d24c7e894c579d771c1018db1785a36
MD5 a97eb2e28651b2f32e39a51e442cb5f4
BLAKE2b-256 3f7d9396a074e332ab1c332daca276f65c205e1eeba708880db0fa1831e6f35e

See more details on using hashes here.

File details

Details for the file robotframework_flaui-3.5.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for robotframework_flaui-3.5.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8ff06b94be16001c6f76f8fcbde7da7bcd7a5a5b0efeec32a09518d78b8f4daa
MD5 97ad85e772fc5b36e66743ff584fbbd2
BLAKE2b-256 bc8005281601013961821e5fa4bc3d57b5406d149b6b8b7ede2a235e49cc90fe

See more details on using hashes here.

File details

Details for the file robotframework_flaui-3.5.0-cp310-cp310-win32.whl.

File metadata

File hashes

Hashes for robotframework_flaui-3.5.0-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 bd4003f70f712d044b19fd67067945cb4a2f16c4d43d302efead10045f02f49b
MD5 4ab9820a8c70b754191cc4ef7f72121d
BLAKE2b-256 55aeab696f798bf8583906c6aa68384ef9bb665742e264b06f6c749c61cd0f40

See more details on using hashes here.

File details

Details for the file robotframework_flaui-3.5.0-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for robotframework_flaui-3.5.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9799d46fce7eefd2238f640609a36b456ecc79d74f381a976b1b908c1b8831c3
MD5 b8a7f0c61f02a7af90563f1b5cf72b4b
BLAKE2b-256 f75382331f6336f1e416ec144d391db1f1ad74233d687f999e827e9124ead693

See more details on using hashes here.

File details

Details for the file robotframework_flaui-3.5.0-cp39-cp39-win32.whl.

File metadata

File hashes

Hashes for robotframework_flaui-3.5.0-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 46e26952d60366b17765188a8e0d71b6df80f89aa6645b1cf0c43b738fb15cf1
MD5 69603b1ada5000d533a27dc680ee4039
BLAKE2b-256 b9931067a3d5f5a94d37091d1da3fb55cdaa0b571a5d7717e83dced019d3ca6f

See more details on using hashes here.

File details

Details for the file robotframework_flaui-3.5.0-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for robotframework_flaui-3.5.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 1452f9ad9774a023cab79fbd96d19bc8ee3e07d425923e8ce87d24b5a0ec3ba9
MD5 eee0b0f4453e268935037af2a02ae893
BLAKE2b-256 6d22d657622b53357780b230238465472baebaff273fbd2aee3f19eb49c37fee

See more details on using hashes here.

File details

Details for the file robotframework_flaui-3.5.0-cp38-cp38-win32.whl.

File metadata

File hashes

Hashes for robotframework_flaui-3.5.0-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 df446caabcc5567981cf74c7114a016e6e78e7f2227bf8a0dcec4d9bea7876e9
MD5 e0e45a680803a7320dbd4a2f0d21ae62
BLAKE2b-256 5fd6de09cde56a7203ea58eda4ad1a0c650de8fb0761cc5f5e3eb6543901fd71

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page