mangoautomation 1.0.52__tar.gz → 1.0.55__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of mangoautomation might be problematic. Click here for more details.

Files changed (66) hide show
  1. mangoautomation-1.0.55/PKG-INFO +34 -0
  2. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/enums/__init__.py +1 -3
  3. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/exceptions/__init__.py +1 -3
  4. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/models/__init__.py +1 -3
  5. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/tools/__init__.py +1 -3
  6. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/__init__.py +1 -3
  7. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/_async_element.py +2 -1
  8. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/_sync_element.py +1 -0
  9. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/web/async_web/_element.py +1 -2
  10. mangoautomation-1.0.55/mangoautomation.egg-info/PKG-INFO +34 -0
  11. mangoautomation-1.0.55/mangoautomation.egg-info/requires.txt +8 -0
  12. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/setup.py +11 -8
  13. mangoautomation-1.0.52/PKG-INFO +0 -31
  14. mangoautomation-1.0.52/mangoautomation.egg-info/PKG-INFO +0 -31
  15. mangoautomation-1.0.52/mangoautomation.egg-info/requires.txt +0 -8
  16. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/LICENSE +0 -0
  17. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/MANIFEST.in +0 -0
  18. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/README.md +0 -0
  19. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/__init__.py +0 -0
  20. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/enums/_base_enum.py +0 -0
  21. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/enums/_ui_enum.py +0 -0
  22. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/exceptions/_error_msg.py +0 -0
  23. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/exceptions/_exceptions.py +0 -0
  24. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/models/_ui_model.py +0 -0
  25. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/tools/_mate.py +0 -0
  26. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/tools/_uiautodev.py +0 -0
  27. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/_base_data.py +0 -0
  28. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/_driver_object.py +0 -0
  29. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/android/__init__.py +0 -0
  30. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/android/_application.py +0 -0
  31. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/android/_assertion.py +0 -0
  32. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/android/_customization.py +0 -0
  33. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/android/_element.py +0 -0
  34. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/android/_equipment.py +0 -0
  35. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/android/_new_android.py +0 -0
  36. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/android/_page.py +0 -0
  37. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/ios/__init__.py +0 -0
  38. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/pc/__init__.py +0 -0
  39. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/pc/assertion.py +0 -0
  40. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/pc/customization.py +0 -0
  41. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/pc/element.py +0 -0
  42. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/pc/input_device.py +0 -0
  43. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/pc/new_windows.py +0 -0
  44. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/web/__init__.py +0 -0
  45. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/web/async_web/__init__.py +0 -0
  46. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/web/async_web/_assertion.py +0 -0
  47. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/web/async_web/_browser.py +0 -0
  48. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/web/async_web/_customization.py +0 -0
  49. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/web/async_web/_input_device.py +0 -0
  50. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/web/async_web/_new_browser.py +0 -0
  51. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/web/async_web/_page.py +0 -0
  52. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/web/sync_web/__init__.py +0 -0
  53. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/web/sync_web/_assertion.py +0 -0
  54. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/web/sync_web/_browser.py +0 -0
  55. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/web/sync_web/_customization.py +0 -0
  56. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/web/sync_web/_element.py +0 -0
  57. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/web/sync_web/_input_device.py +0 -0
  58. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/web/sync_web/_new_browser.py +0 -0
  59. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation/uidrive/web/sync_web/_page.py +0 -0
  60. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation.egg-info/SOURCES.txt +0 -0
  61. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation.egg-info/dependency_links.txt +0 -0
  62. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/mangoautomation.egg-info/top_level.txt +0 -0
  63. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/setup.cfg +0 -0
  64. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/tests/__init__.py +0 -0
  65. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/tests/test_ui_and.py +0 -0
  66. {mangoautomation-1.0.52 → mangoautomation-1.0.55}/tests/test_ui_web.py +0 -0
@@ -0,0 +1,34 @@
1
+ Metadata-Version: 2.1
2
+ Name: mangoautomation
3
+ Version: 1.0.55
4
+ Summary: 测试工具
5
+ Home-page: https://gitee.com/mao-peng/testkit
6
+ Author: 毛鹏
7
+ Author-email: 729164035@qq.com
8
+ Classifier: Programming Language :: Python :: 3.10
9
+ Classifier: Programming Language :: Python :: 3.11
10
+ Classifier: Programming Language :: Python :: 3.12
11
+ Classifier: Programming Language :: Python :: 3.13
12
+ License-File: LICENSE
13
+ Requires-Dist: setuptools>=68.2.0
14
+ Requires-Dist: pydantic>=2.9.2
15
+ Requires-Dist: playwright>=1.43.0
16
+ Requires-Dist: uiautomation>=2.0.20
17
+ Requires-Dist: uiautomator2>=3.2.5
18
+ Requires-Dist: mangotools>=1.1.28
19
+ Requires-Dist: adbutils~=2.8.9
20
+ Requires-Dist: uiautodev>=0.9.0
21
+
22
+ # testkit
23
+
24
+ #### 介绍
25
+
26
+ 测试工具
27
+
28
+ #### 安装教程
29
+
30
+ 1. pip install mangokit
31
+
32
+ #### 使用说明
33
+
34
+ 1.
@@ -7,9 +7,7 @@ import sys
7
7
 
8
8
  from ..enums._ui_enum import ElementExpEnum, ElementOperationEnum, DeviceEnum, BrowserTypeEnum, DriveTypeEnum
9
9
 
10
- python_version = sys.version_info
11
- if f"{python_version.major}.{python_version.minor}" != "3.10":
12
- raise Exception("必须使用>Python3.10.4")
10
+
13
11
  __all__ = [
14
12
  'ElementOperationEnum',
15
13
  'DeviceEnum',
@@ -7,8 +7,6 @@ import sys
7
7
 
8
8
  from ._exceptions import MangoAutomationError
9
9
 
10
- python_version = sys.version_info
11
- if f"{python_version.major}.{python_version.minor}" != "3.10":
12
- raise Exception("必须使用>Python3.10.4")
10
+
13
11
 
14
12
  __all__ = ['MangoAutomationError']
@@ -6,9 +6,7 @@ import sys
6
6
 
7
7
  from ..models._ui_model import ElementModel, ElementResultModel
8
8
 
9
- python_version = sys.version_info
10
- if f"{python_version.major}.{python_version.minor}" != "3.10":
11
- raise Exception("必须使用>Python3.10.4")
9
+
12
10
  __all__ = [
13
11
  'ElementModel',
14
12
  'ElementResultModel',
@@ -8,7 +8,5 @@ import sys
8
8
  from ..tools._mate import Meta
9
9
  from ..tools._uiautodev import start_uiautodev, stop_uiautodev
10
10
 
11
- python_version = sys.version_info
12
- if f"{python_version.major}.{python_version.minor}" != "3.10":
13
- raise Exception("必须使用>Python3.10.4")
11
+
14
12
  __all__ = ['Meta', 'start_uiautodev', 'stop_uiautodev']
@@ -9,9 +9,7 @@ from ..uidrive._base_data import BaseData
9
9
  from ..uidrive._driver_object import DriverObject
10
10
  from ..uidrive._sync_element import SyncElement
11
11
 
12
- python_version = sys.version_info
13
- if f"{python_version.major}.{python_version.minor}" != "3.10":
14
- raise Exception("必须使用>Python3.10.4")
12
+
15
13
  __all__ = [
16
14
  'AsyncElement',
17
15
  'BaseData',
@@ -197,7 +197,7 @@ class AsyncElement(AsyncWebDevice, AndroidDriver):
197
197
  value = self.element_data.get('value')
198
198
  self.base_data.test_data.set_cache(key, self.base_data.test_data.replace(value))
199
199
 
200
- async def __ope_value(self, is_ass: bool = False):
200
+ async def __ope_value(self,is_ass: bool = False):
201
201
  try:
202
202
  ope_key = 'actual' if is_ass else 'locating'
203
203
  for i in self.element_model.ope_value:
@@ -233,6 +233,7 @@ class AsyncElement(AsyncWebDevice, AndroidDriver):
233
233
  for f, v in self.element_data.items():
234
234
  if f == i.f:
235
235
  i.v = self.base_data.test_data.replace(v)
236
+ i.v = self.base_data.test_data.replace(i.v)
236
237
 
237
238
  except AttributeError as error:
238
239
  self.base_data.log.debug(
@@ -233,6 +233,7 @@ class SyncElement(SyncWebDevice, AndroidDriver):
233
233
  for f, v in self.element_data.items():
234
234
  if f == i.f:
235
235
  i.v = self.base_data.test_data.replace(v)
236
+ i.v = self.base_data.test_data.replace(i.v)
236
237
 
237
238
  except AttributeError as error:
238
239
  self.base_data.log.debug(
@@ -71,8 +71,7 @@ class AsyncWebElement(metaclass=Meta):
71
71
  return value
72
72
  elif value is not None and str(value).strip():
73
73
  return value
74
- except Exception as e:
75
- print(f"方法 [{method_name}] 失败: {str(e)}")
74
+ except Exception:
76
75
  continue
77
76
 
78
77
  return None
@@ -0,0 +1,34 @@
1
+ Metadata-Version: 2.1
2
+ Name: mangoautomation
3
+ Version: 1.0.55
4
+ Summary: 测试工具
5
+ Home-page: https://gitee.com/mao-peng/testkit
6
+ Author: 毛鹏
7
+ Author-email: 729164035@qq.com
8
+ Classifier: Programming Language :: Python :: 3.10
9
+ Classifier: Programming Language :: Python :: 3.11
10
+ Classifier: Programming Language :: Python :: 3.12
11
+ Classifier: Programming Language :: Python :: 3.13
12
+ License-File: LICENSE
13
+ Requires-Dist: setuptools>=68.2.0
14
+ Requires-Dist: pydantic>=2.9.2
15
+ Requires-Dist: playwright>=1.43.0
16
+ Requires-Dist: uiautomation>=2.0.20
17
+ Requires-Dist: uiautomator2>=3.2.5
18
+ Requires-Dist: mangotools>=1.1.28
19
+ Requires-Dist: adbutils~=2.8.9
20
+ Requires-Dist: uiautodev>=0.9.0
21
+
22
+ # testkit
23
+
24
+ #### 介绍
25
+
26
+ 测试工具
27
+
28
+ #### 安装教程
29
+
30
+ 1. pip install mangokit
31
+
32
+ #### 使用说明
33
+
34
+ 1.
@@ -0,0 +1,8 @@
1
+ setuptools>=68.2.0
2
+ pydantic>=2.9.2
3
+ playwright>=1.43.0
4
+ uiautomation>=2.0.20
5
+ uiautomator2>=3.2.5
6
+ mangotools>=1.1.28
7
+ adbutils~=2.8.9
8
+ uiautodev>=0.9.0
@@ -1,6 +1,6 @@
1
1
  from setuptools import setup, find_packages
2
2
 
3
- __version__ = '1.0.52'
3
+ __version__ = '1.0.55'
4
4
 
5
5
  with open("README.md", "r", encoding='utf-8') as fh:
6
6
  long_description = fh.read()
@@ -16,18 +16,21 @@ setup(
16
16
  url='https://gitee.com/mao-peng/testkit',
17
17
  packages=find_packages(),
18
18
  install_requires=[
19
- 'setuptools==68.2.0',
20
- 'pydantic==2.9.2',
21
- 'playwright==1.43.0',
22
- 'uiautomation==2.0.20',
23
- 'uiautomator2==3.2.5',
24
- 'mangotools>=1.1.17',
19
+ 'setuptools>=68.2.0',
20
+ 'pydantic>=2.9.2',
21
+ 'playwright>=1.43.0',
22
+ 'uiautomation>=2.0.20',
23
+ 'uiautomator2>=3.2.5',
24
+ 'mangotools>=1.1.28',
25
25
  'adbutils~=2.8.9',
26
- 'uiautodev==0.9.0',
26
+ 'uiautodev>=0.9.0',
27
27
 
28
28
  ],
29
29
  classifiers=[
30
30
  "Programming Language :: Python :: 3.10",
31
+ "Programming Language :: Python :: 3.11",
32
+ "Programming Language :: Python :: 3.12",
33
+ "Programming Language :: Python :: 3.13",
31
34
  ]
32
35
  )
33
36
 
@@ -1,31 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: mangoautomation
3
- Version: 1.0.52
4
- Summary: 测试工具
5
- Home-page: https://gitee.com/mao-peng/testkit
6
- Author: 毛鹏
7
- Author-email: 729164035@qq.com
8
- Classifier: Programming Language :: Python :: 3.10
9
- License-File: LICENSE
10
- Requires-Dist: setuptools==68.2.0
11
- Requires-Dist: pydantic==2.9.2
12
- Requires-Dist: playwright==1.43.0
13
- Requires-Dist: uiautomation==2.0.20
14
- Requires-Dist: uiautomator2==3.2.5
15
- Requires-Dist: mangotools>=1.1.17
16
- Requires-Dist: adbutils~=2.8.9
17
- Requires-Dist: uiautodev==0.9.0
18
-
19
- # testkit
20
-
21
- #### 介绍
22
-
23
- 测试工具
24
-
25
- #### 安装教程
26
-
27
- 1. pip install mangokit
28
-
29
- #### 使用说明
30
-
31
- 1.
@@ -1,31 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: mangoautomation
3
- Version: 1.0.52
4
- Summary: 测试工具
5
- Home-page: https://gitee.com/mao-peng/testkit
6
- Author: 毛鹏
7
- Author-email: 729164035@qq.com
8
- Classifier: Programming Language :: Python :: 3.10
9
- License-File: LICENSE
10
- Requires-Dist: setuptools==68.2.0
11
- Requires-Dist: pydantic==2.9.2
12
- Requires-Dist: playwright==1.43.0
13
- Requires-Dist: uiautomation==2.0.20
14
- Requires-Dist: uiautomator2==3.2.5
15
- Requires-Dist: mangotools>=1.1.17
16
- Requires-Dist: adbutils~=2.8.9
17
- Requires-Dist: uiautodev==0.9.0
18
-
19
- # testkit
20
-
21
- #### 介绍
22
-
23
- 测试工具
24
-
25
- #### 安装教程
26
-
27
- 1. pip install mangokit
28
-
29
- #### 使用说明
30
-
31
- 1.
@@ -1,8 +0,0 @@
1
- setuptools==68.2.0
2
- pydantic==2.9.2
3
- playwright==1.43.0
4
- uiautomation==2.0.20
5
- uiautomator2==3.2.5
6
- mangotools>=1.1.17
7
- adbutils~=2.8.9
8
- uiautodev==0.9.0