Name | pyGATs JSON |
Version |
0.2.0
JSON |
| download |
home_page | None |
Summary | Automate end-to-end and exploratory testing |
upload_time | 2025-03-06 16:12:25 |
maintainer | None |
docs_url | None |
author | vsysoev |
requires_python | >=3.9 |
license | MIT License
Copyright (c) 2022 IntegraSDL
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
|
keywords |
gui
testing
automatic
|
VCS |
 |
bugtrack_url |
|
requirements |
numpy
Pillow
pyautogui
pyperclip
pytesseract
pytest
hdbscan
python_Levenshtein
colorama
opencv-python
mss
qat
pyyaml
pyscreeze
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# pyGATs
[](https://github.com/IntegraSDL/pygats/actions/workflows/pylint.yml)
[](https://github.com/IntegraSDL/pygats/actions/workflows/python-package.yml)
[](https://github.com/IntegraSDL/pygats/actions/workflows/python-publish.yml)
**This library is in development process. API is not stabilized yet. It will
be completely changed soon.**
This is python3 library which combines power of pyautogui, opencv, tesseract,
markdown and other staff to automate end-to-end and exploratory testing.
This library might be used to automate testing process with Xvbf and docker.
pyGATs depends on pyautogui, pytesseract, opencv and others. Please see section
dependencies in pyproject.toml file.
## How to test
```
python3 -m pytest
```
## Linter
```
pylint $(git ls-files '*.py')
```
## Build documentation
```
cd docs
make html
```
# Example Usage
```python
"""
Header: Description of test suites
"""
import pygats.pygats as pygats
import pygats.recog as recog
from pygats.formatters import MarkdownFormatter as MD
ctx = pygats.Context(formatter=MD(), timeout=0.5)
def test_function():
"""
Definition: definition of the test function
Actions:
1: action 1
2: action 2
3: ...
Expected: expected result
"""
pygats.run_action(ctx)
...
pygats.run_action(ctx, action_2_function)
...
...
test_suites = [
test_function,
...
]
if __name__ == '__main__':
pygats.run(ctx, test_suites)
```
As a result of executing the script, we get a report in Markdown format in the "output" directory
## Usage features
Docstring of the document and the test functions are required attributes to get the required test report.
> If you do not specify a docstring, the corresponding report entries will be replaced with standard entries.
Docstring must be in YAML format. Docstring may contain additional entries in this format, if necessary.
When writing a test function, it is necessary to have a docstring that has 3 key entries:
- Definition - definition of the test function, what it checks;
- Actions - a list of actions to perform the verification;
- Expected - expected result.
`run_action()` function is required to print the description of the action before executing it. It can be used in 2 ways:
- `pygats.run_action(ctx)`, after which the steps of executing the action are performed;
- `pygats.run_action(ctx, function, **kwargs)`. In this case, we pass a function containing the necessary steps. If it has additional arguments, we pass them separated by commas. The arguments must be named.
Raw data
{
"_id": null,
"home_page": null,
"name": "pyGATs",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "gui, testing, automatic",
"author": "vsysoev",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/f9/d6/46dc7afc98f62b82d7bab3f9a0cb2d77c02c551ace1cb0559a57535fa160/pygats-0.2.0.tar.gz",
"platform": null,
"description": "# pyGATs\n\n[](https://github.com/IntegraSDL/pygats/actions/workflows/pylint.yml)\n[](https://github.com/IntegraSDL/pygats/actions/workflows/python-package.yml)\n[](https://github.com/IntegraSDL/pygats/actions/workflows/python-publish.yml)\n\n**This library is in development process. API is not stabilized yet. It will\nbe completely changed soon.**\n\n\nThis is python3 library which combines power of pyautogui, opencv, tesseract, \nmarkdown and other staff to automate end-to-end and exploratory testing.\n\nThis library might be used to automate testing process with Xvbf and docker.\n\npyGATs depends on pyautogui, pytesseract, opencv and others. Please see section\ndependencies in pyproject.toml file.\n\n\n## How to test\n\n```\npython3 -m pytest\n```\n\n## Linter\n\n```\npylint $(git ls-files '*.py')\n```\n## Build documentation\n\n```\ncd docs\nmake html\n```\n\n# Example Usage\n\n```python\n\"\"\"\nHeader: Description of test suites\n\"\"\"\nimport pygats.pygats as pygats\nimport pygats.recog as recog\n\nfrom pygats.formatters import MarkdownFormatter as MD\n\n\nctx = pygats.Context(formatter=MD(), timeout=0.5)\n\n\ndef test_function():\n \"\"\"\n Definition: definition of the test function\n\n Actions:\n 1: action 1\n 2: action 2\n 3: ...\n\n Expected: expected result\n \"\"\"\n pygats.run_action(ctx)\n ...\n pygats.run_action(ctx, action_2_function)\n ...\n\n\n...\n\n\ntest_suites = [\n test_function,\n ...\n]\n\n\nif __name__ == '__main__':\n pygats.run(ctx, test_suites)\n\n```\n\nAs a result of executing the script, we get a report in Markdown format in the \"output\" directory\n\n## Usage features\n\nDocstring of the document and the test functions are required attributes to get the required test report.\n> If you do not specify a docstring, the corresponding report entries will be replaced with standard entries.\n\nDocstring must be in YAML format. Docstring may contain additional entries in this format, if necessary.\n\nWhen writing a test function, it is necessary to have a docstring that has 3 key entries:\n- Definition - definition of the test function, what it checks;\n- Actions - a list of actions to perform the verification;\n- Expected - expected result.\n\n`run_action()` function is required to print the description of the action before executing it. It can be used in 2 ways:\n- `pygats.run_action(ctx)`, after which the steps of executing the action are performed;\n- `pygats.run_action(ctx, function, **kwargs)`. In this case, we pass a function containing the necessary steps. If it has additional arguments, we pass them separated by commas. The arguments must be named.\n",
"bugtrack_url": null,
"license": "MIT License\n \n Copyright (c) 2022 IntegraSDL\n \n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n \n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n \n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n ",
"summary": "Automate end-to-end and exploratory testing",
"version": "0.2.0",
"project_urls": {
"repository": "https://github.com/IntegraSDL/pymagic-autogui.git"
},
"split_keywords": [
"gui",
" testing",
" automatic"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "fda2a98965385a55ae6062bad8bddc48fa6a3a87c477ab974500dfc8819b3185",
"md5": "afdc4a0306773e8940c529594903a609",
"sha256": "b331e5bff0413406fba6ea9aba4f87733db712ee4dc8450133cfa4fbcbcb206e"
},
"downloads": -1,
"filename": "pygats-0.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "afdc4a0306773e8940c529594903a609",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 20954,
"upload_time": "2025-03-06T16:12:24",
"upload_time_iso_8601": "2025-03-06T16:12:24.426306Z",
"url": "https://files.pythonhosted.org/packages/fd/a2/a98965385a55ae6062bad8bddc48fa6a3a87c477ab974500dfc8819b3185/pygats-0.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "f9d646dc7afc98f62b82d7bab3f9a0cb2d77c02c551ace1cb0559a57535fa160",
"md5": "181267c427ef06531edb4c7e26f7ffc5",
"sha256": "61ad899e6ca8d0928d3ee2e9ce4b54f67bc9d2d5f6c91687a0c6cc2a2822eec4"
},
"downloads": -1,
"filename": "pygats-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "181267c427ef06531edb4c7e26f7ffc5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 21271,
"upload_time": "2025-03-06T16:12:25",
"upload_time_iso_8601": "2025-03-06T16:12:25.390412Z",
"url": "https://files.pythonhosted.org/packages/f9/d6/46dc7afc98f62b82d7bab3f9a0cb2d77c02c551ace1cb0559a57535fa160/pygats-0.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-03-06 16:12:25",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "IntegraSDL",
"github_project": "pymagic-autogui",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "numpy",
"specs": [
[
">=",
"1.21.6"
]
]
},
{
"name": "Pillow",
"specs": [
[
"==",
"10.3.0"
]
]
},
{
"name": "pyautogui",
"specs": [
[
"==",
"0.9.54"
]
]
},
{
"name": "pyperclip",
"specs": [
[
"==",
"1.8.2"
]
]
},
{
"name": "pytesseract",
"specs": [
[
"==",
"0.3.10"
]
]
},
{
"name": "pytest",
"specs": [
[
"==",
"7.2.2"
]
]
},
{
"name": "hdbscan",
"specs": [
[
"==",
"0.8.40"
]
]
},
{
"name": "python_Levenshtein",
"specs": [
[
"==",
"0.20.9"
]
]
},
{
"name": "colorama",
"specs": [
[
"==",
"0.4.6"
]
]
},
{
"name": "opencv-python",
"specs": [
[
"==",
"4.10.0.84"
]
]
},
{
"name": "mss",
"specs": [
[
"==",
"9.0.1"
]
]
},
{
"name": "qat",
"specs": [
[
"==",
"1.1.2"
]
]
},
{
"name": "pyyaml",
"specs": [
[
"==",
"5.3.1"
]
]
},
{
"name": "pyscreeze",
"specs": [
[
"==",
"0.1.21"
]
]
}
],
"lcname": "pygats"
}