From 2c3a07a5ce407834367c431d099e438d6ed5b2ba Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 18 May 2023 04:39:40 +0000 Subject: automatic import of python-robotframework-flaui --- python-robotframework-flaui.spec | 558 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 558 insertions(+) create mode 100644 python-robotframework-flaui.spec (limited to 'python-robotframework-flaui.spec') diff --git a/python-robotframework-flaui.spec b/python-robotframework-flaui.spec new file mode 100644 index 0000000..0a17b06 --- /dev/null +++ b/python-robotframework-flaui.spec @@ -0,0 +1,558 @@ +%global _empty_manifest_terminate_build 0 +Name: python-robotframework-flaui +Version: 2.0.9 +Release: 1 +Summary: Windows GUI testing library for Robot Framework +License: MIT +URL: https://github.com/GDATASoftwareAG/robotframework-flaui +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/e5/ac/c28d44ee8c22f617f3cf72104278ff563f0aa8d7acb82c5a159881cd1e2c/robotframework-flaui-2.0.9.tar.gz + +Requires: python3-robotframework +Requires: python3-typing-extensions +Requires: python3-robotframework-pythonlibcore +Requires: python3-pythonnet + +%description +# Robotframework-FlaUI Library + +[license]: https://img.shields.io/github/license/GDATASoftwareAG/robotframework-flaui?style=flat-square +[py38x86]: https://img.shields.io/appveyor/job/build/GDATACyberDefenseAG/robotframework-flaui/Python%203.8%20x86/main?label=3.8&style=flat-square +[py38x64]: https://img.shields.io/appveyor/job/build/GDATACyberDefenseAG/robotframework-flaui/Python%203.8%20x64/main?label=3.8&style=flat-square +[py39x86]: https://img.shields.io/appveyor/job/build/GDATACyberDefenseAG/robotframework-flaui/Python%203.9%20x86/main?label=3.9&style=flat-square +[py39x64]: https://img.shields.io/appveyor/job/build/GDATACyberDefenseAG/robotframework-flaui/Python%203.9%20x64/main?label=3.9&style=flat-square +[py310x86]: https://img.shields.io/appveyor/job/build/GDATACyberDefenseAG/robotframework-flaui/Python%203.10%20x86/main?label=3.10&style=flat-square +[py310x64]: https://img.shields.io/appveyor/job/build/GDATACyberDefenseAG/robotframework-flaui/Python%203.10%20x64/main?label=3.10&style=flat-square + +[tests]: https://img.shields.io/appveyor/tests/GDATACyberDefenseAG/robotframework-flaui/main?style=flat-square" +[tests_url]: https://ci.appveyor.com/project/GDATACyberDefenseAG/robotframework-flaui/build/tests + +[pypi]: https://img.shields.io/pypi/v/robotframework-flaui?style=flat-square +[pypi_url]: https://pypi.org/pypi/robotframework-flaui + +[python_37]: https://img.shields.io/badge/Python-3.7-blue +[python_38]: https://img.shields.io/badge/Python-3.8-blue +[python_39]: https://img.shields.io/badge/Python-3.9-blue +[python_310]: https://img.shields.io/badge/Python-3.10-blue +[python_311]: https://img.shields.io/badge/Experimental-Python%203.11-orange + +[rf3]: https://img.shields.io/badge/3-Supported-blue +[rf4]: https://img.shields.io/badge/4-Supported-blue +[rf5]: https://img.shields.io/badge/5-Supported-blue +[rf6]: https://img.shields.io/badge/6-Supported-blue + +| | | +|--- |--------------------------------------------------------------| +| License | ![][license] | +| Python Builds (x86) | ![][py38x86] ![][py39x86] ![][py310x86] | +| Python Builds (x64) | ![][py38x64] ![][py39x64] ![][py310x64] | +| Tests | [![][tests]][tests_url] | +| Python | ![][python_37] ![][python_38] ![][python_39] ![][python_310] ![][python_311] | +| Robotframework | ![][rf3] ![][rf4] ![][rf5] ![][rf6] | +| PyPi | [![][pypi]][pypi_url] | + +## 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](https://github.com/FlaUI/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](https://gdatasoftwareag.github.io/robotframework-flaui) + +### 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](https://github.com/pythonnet/pythonnet/issues/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](https://github.com/pythonnet/pythonnet/issues/1977) + * A workaround is to set Python's memory allocation environment variable "PYTHONMALLOC=malloc" + +## Documentation + +* [Keyword documentation](https://gdatasoftwareag.github.io/robotframework-flaui) +* [XPath explanation](https://gdatasoftwareag.github.io/robotframework-flaui/xpath.html) + +### RFHUB2 + +[RFHUB2](https://pypi.org/project/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\ +``` + +## GUI Inspector Tools + +There are various tools around which help inspecting application that should be ui tested or automated. + +Some of them are: +* [FlaUI Inspect](https://github.com/FlaUI/FlaUInspect) +* [Microsoft Accessibility Insights For Windows](https://accessibilityinsights.io) +* VisualUIAVerify +* Inspect +* UISpy + +## Examples + +Examples of use can be found in the atests folder. + +## Development + +### Preconditions + +* Install [Python](https://www.python.org/downloads), 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 +``` + * 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 PEP 8. Generates pylint.html file in results. + +## Acknowledgements + +### FlaUI + +* Thanks to [@Roemer](https://github.com/Roemer) for the passion to create and maintain the FlaUI project. +* Thanks to [FlaUI](https://github.com/FlaUI/FlaUI) developers and maintainers for this project. + + +%package -n python3-robotframework-flaui +Summary: Windows GUI testing library for Robot Framework +Provides: python-robotframework-flaui +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-robotframework-flaui +# Robotframework-FlaUI Library + +[license]: https://img.shields.io/github/license/GDATASoftwareAG/robotframework-flaui?style=flat-square +[py38x86]: https://img.shields.io/appveyor/job/build/GDATACyberDefenseAG/robotframework-flaui/Python%203.8%20x86/main?label=3.8&style=flat-square +[py38x64]: https://img.shields.io/appveyor/job/build/GDATACyberDefenseAG/robotframework-flaui/Python%203.8%20x64/main?label=3.8&style=flat-square +[py39x86]: https://img.shields.io/appveyor/job/build/GDATACyberDefenseAG/robotframework-flaui/Python%203.9%20x86/main?label=3.9&style=flat-square +[py39x64]: https://img.shields.io/appveyor/job/build/GDATACyberDefenseAG/robotframework-flaui/Python%203.9%20x64/main?label=3.9&style=flat-square +[py310x86]: https://img.shields.io/appveyor/job/build/GDATACyberDefenseAG/robotframework-flaui/Python%203.10%20x86/main?label=3.10&style=flat-square +[py310x64]: https://img.shields.io/appveyor/job/build/GDATACyberDefenseAG/robotframework-flaui/Python%203.10%20x64/main?label=3.10&style=flat-square + +[tests]: https://img.shields.io/appveyor/tests/GDATACyberDefenseAG/robotframework-flaui/main?style=flat-square" +[tests_url]: https://ci.appveyor.com/project/GDATACyberDefenseAG/robotframework-flaui/build/tests + +[pypi]: https://img.shields.io/pypi/v/robotframework-flaui?style=flat-square +[pypi_url]: https://pypi.org/pypi/robotframework-flaui + +[python_37]: https://img.shields.io/badge/Python-3.7-blue +[python_38]: https://img.shields.io/badge/Python-3.8-blue +[python_39]: https://img.shields.io/badge/Python-3.9-blue +[python_310]: https://img.shields.io/badge/Python-3.10-blue +[python_311]: https://img.shields.io/badge/Experimental-Python%203.11-orange + +[rf3]: https://img.shields.io/badge/3-Supported-blue +[rf4]: https://img.shields.io/badge/4-Supported-blue +[rf5]: https://img.shields.io/badge/5-Supported-blue +[rf6]: https://img.shields.io/badge/6-Supported-blue + +| | | +|--- |--------------------------------------------------------------| +| License | ![][license] | +| Python Builds (x86) | ![][py38x86] ![][py39x86] ![][py310x86] | +| Python Builds (x64) | ![][py38x64] ![][py39x64] ![][py310x64] | +| Tests | [![][tests]][tests_url] | +| Python | ![][python_37] ![][python_38] ![][python_39] ![][python_310] ![][python_311] | +| Robotframework | ![][rf3] ![][rf4] ![][rf5] ![][rf6] | +| PyPi | [![][pypi]][pypi_url] | + +## 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](https://github.com/FlaUI/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](https://gdatasoftwareag.github.io/robotframework-flaui) + +### 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](https://github.com/pythonnet/pythonnet/issues/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](https://github.com/pythonnet/pythonnet/issues/1977) + * A workaround is to set Python's memory allocation environment variable "PYTHONMALLOC=malloc" + +## Documentation + +* [Keyword documentation](https://gdatasoftwareag.github.io/robotframework-flaui) +* [XPath explanation](https://gdatasoftwareag.github.io/robotframework-flaui/xpath.html) + +### RFHUB2 + +[RFHUB2](https://pypi.org/project/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\ +``` + +## GUI Inspector Tools + +There are various tools around which help inspecting application that should be ui tested or automated. + +Some of them are: +* [FlaUI Inspect](https://github.com/FlaUI/FlaUInspect) +* [Microsoft Accessibility Insights For Windows](https://accessibilityinsights.io) +* VisualUIAVerify +* Inspect +* UISpy + +## Examples + +Examples of use can be found in the atests folder. + +## Development + +### Preconditions + +* Install [Python](https://www.python.org/downloads), 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 +``` + * 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 PEP 8. Generates pylint.html file in results. + +## Acknowledgements + +### FlaUI + +* Thanks to [@Roemer](https://github.com/Roemer) for the passion to create and maintain the FlaUI project. +* Thanks to [FlaUI](https://github.com/FlaUI/FlaUI) developers and maintainers for this project. + + +%package help +Summary: Development documents and examples for robotframework-flaui +Provides: python3-robotframework-flaui-doc +%description help +# Robotframework-FlaUI Library + +[license]: https://img.shields.io/github/license/GDATASoftwareAG/robotframework-flaui?style=flat-square +[py38x86]: https://img.shields.io/appveyor/job/build/GDATACyberDefenseAG/robotframework-flaui/Python%203.8%20x86/main?label=3.8&style=flat-square +[py38x64]: https://img.shields.io/appveyor/job/build/GDATACyberDefenseAG/robotframework-flaui/Python%203.8%20x64/main?label=3.8&style=flat-square +[py39x86]: https://img.shields.io/appveyor/job/build/GDATACyberDefenseAG/robotframework-flaui/Python%203.9%20x86/main?label=3.9&style=flat-square +[py39x64]: https://img.shields.io/appveyor/job/build/GDATACyberDefenseAG/robotframework-flaui/Python%203.9%20x64/main?label=3.9&style=flat-square +[py310x86]: https://img.shields.io/appveyor/job/build/GDATACyberDefenseAG/robotframework-flaui/Python%203.10%20x86/main?label=3.10&style=flat-square +[py310x64]: https://img.shields.io/appveyor/job/build/GDATACyberDefenseAG/robotframework-flaui/Python%203.10%20x64/main?label=3.10&style=flat-square + +[tests]: https://img.shields.io/appveyor/tests/GDATACyberDefenseAG/robotframework-flaui/main?style=flat-square" +[tests_url]: https://ci.appveyor.com/project/GDATACyberDefenseAG/robotframework-flaui/build/tests + +[pypi]: https://img.shields.io/pypi/v/robotframework-flaui?style=flat-square +[pypi_url]: https://pypi.org/pypi/robotframework-flaui + +[python_37]: https://img.shields.io/badge/Python-3.7-blue +[python_38]: https://img.shields.io/badge/Python-3.8-blue +[python_39]: https://img.shields.io/badge/Python-3.9-blue +[python_310]: https://img.shields.io/badge/Python-3.10-blue +[python_311]: https://img.shields.io/badge/Experimental-Python%203.11-orange + +[rf3]: https://img.shields.io/badge/3-Supported-blue +[rf4]: https://img.shields.io/badge/4-Supported-blue +[rf5]: https://img.shields.io/badge/5-Supported-blue +[rf6]: https://img.shields.io/badge/6-Supported-blue + +| | | +|--- |--------------------------------------------------------------| +| License | ![][license] | +| Python Builds (x86) | ![][py38x86] ![][py39x86] ![][py310x86] | +| Python Builds (x64) | ![][py38x64] ![][py39x64] ![][py310x64] | +| Tests | [![][tests]][tests_url] | +| Python | ![][python_37] ![][python_38] ![][python_39] ![][python_310] ![][python_311] | +| Robotframework | ![][rf3] ![][rf4] ![][rf5] ![][rf6] | +| PyPi | [![][pypi]][pypi_url] | + +## 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](https://github.com/FlaUI/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](https://gdatasoftwareag.github.io/robotframework-flaui) + +### 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](https://github.com/pythonnet/pythonnet/issues/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](https://github.com/pythonnet/pythonnet/issues/1977) + * A workaround is to set Python's memory allocation environment variable "PYTHONMALLOC=malloc" + +## Documentation + +* [Keyword documentation](https://gdatasoftwareag.github.io/robotframework-flaui) +* [XPath explanation](https://gdatasoftwareag.github.io/robotframework-flaui/xpath.html) + +### RFHUB2 + +[RFHUB2](https://pypi.org/project/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\ +``` + +## GUI Inspector Tools + +There are various tools around which help inspecting application that should be ui tested or automated. + +Some of them are: +* [FlaUI Inspect](https://github.com/FlaUI/FlaUInspect) +* [Microsoft Accessibility Insights For Windows](https://accessibilityinsights.io) +* VisualUIAVerify +* Inspect +* UISpy + +## Examples + +Examples of use can be found in the atests folder. + +## Development + +### Preconditions + +* Install [Python](https://www.python.org/downloads), 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 +``` + * 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 PEP 8. Generates pylint.html file in results. + +## Acknowledgements + +### FlaUI + +* Thanks to [@Roemer](https://github.com/Roemer) for the passion to create and maintain the FlaUI project. +* Thanks to [FlaUI](https://github.com/FlaUI/FlaUI) developers and maintainers for this project. + + +%prep +%autosetup -n robotframework-flaui-2.0.9 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-robotframework-flaui -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu May 18 2023 Python_Bot - 2.0.9-1 +- Package Spec generated -- cgit v1.2.3