mangoautomation 1.0.50__py3-none-any.whl → 1.0.51__py3-none-any.whl

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.

@@ -54,7 +54,7 @@ ERROR_MSG_0049 = (4049, 'url格式错误,请检查url或者是选择的测试
54
54
  ERROR_MSG_0050 = (4050, 'xpath定位未找到元素')
55
55
  ERROR_MSG_0051 = (4051, '')
56
56
  ERROR_MSG_0052 = (4052, '元素【{}】 进行断言时发生异常,请检查元素是否可以正常使用')
57
- ERROR_MSG_0053 = (4053, '步骤是断言类型,但是你没有输入断言内容,请查看文档中对元素断言的介绍')
57
+ ERROR_MSG_0053 = (4053, '')
58
58
  ERROR_MSG_0054 = (4054, '步骤是操作类型,但是你没有输入操作内容,请查看文档中对元素操作的介绍')
59
59
  ERROR_MSG_0055 = (4055, '您的电脑未安装指定浏览器!')
60
60
  ERROR_MSG_0056 = (4056, '输入的参数类型不正确,请检查操作输入框的类型是否正确')
@@ -144,7 +144,7 @@ class AsyncElement(AsyncWebDevice, AndroidDriver):
144
144
 
145
145
  async def __ass(self):
146
146
  if self.element_model.ope_value is None:
147
- raise MangoAutomationError(*ERROR_MSG_0053)
147
+ raise MangoAutomationError(*ERROR_MSG_0054)
148
148
  await self.__ope_value(True)
149
149
  try:
150
150
  if self.drive_type == DriveTypeEnum.WEB.value:
@@ -163,7 +163,7 @@ class AsyncElement(AsyncWebDevice, AndroidDriver):
163
163
  pass
164
164
  except MangoAutomationError as error:
165
165
  self.element_result_model.ass_msg = error.msg
166
- raise MangoAutomationError(*ERROR_MSG_0054)
166
+ raise error
167
167
  self.element_result_model.ope_value = {i.f: i.v for i in self.element_model.ope_value if i.d}
168
168
 
169
169
  async def __sql(self):
@@ -144,7 +144,7 @@ class SyncElement(SyncWebDevice, AndroidDriver):
144
144
 
145
145
  def __ass(self):
146
146
  if self.element_model.ope_value is None:
147
- raise MangoAutomationError(*ERROR_MSG_0053)
147
+ raise MangoAutomationError(*ERROR_MSG_0054)
148
148
  self.__ope_value(True)
149
149
  try:
150
150
  if self.drive_type == DriveTypeEnum.WEB.value:
@@ -163,7 +163,7 @@ class SyncElement(SyncWebDevice, AndroidDriver):
163
163
  pass
164
164
  except MangoAutomationError as error:
165
165
  self.element_result_model.ass_msg = error.msg
166
- raise MangoAutomationError(*ERROR_MSG_0054)
166
+ raise error
167
167
  self.element_result_model.ope_value = {i.f: i.v for i in self.element_model.ope_value if i.d}
168
168
 
169
169
  def __sql(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mangoautomation
3
- Version: 1.0.50
3
+ Version: 1.0.51
4
4
  Summary: 测试工具
5
5
  Home-page: https://gitee.com/mao-peng/testkit
6
6
  Author: 毛鹏
@@ -3,7 +3,7 @@ mangoautomation/enums/__init__.py,sha256=xPv6158_Tup3U9rbYtUGgWR8W479-7czLvcRk4D
3
3
  mangoautomation/enums/_base_enum.py,sha256=dpaXsdhWY08BhIzi1B1ksh_p18ZTmhWvTYhbd3n_ONQ,1176
4
4
  mangoautomation/enums/_ui_enum.py,sha256=rdkejsyc4ogZbyNfZcp1q0V0bDPo14vg0A6or6ShaXA,4494
5
5
  mangoautomation/exceptions/__init__.py,sha256=dXtRZSuYg3e_lwYUKYvYjtxTKHITdbi2l9XkHk9DpfY,374
6
- mangoautomation/exceptions/_error_msg.py,sha256=GrB9crXQMNlq1Ng8a7RsuKfDHDhXglu_CQ_62lhj_iQ,5437
6
+ mangoautomation/exceptions/_error_msg.py,sha256=wnyHrBPE4ZGcWhvz8bD2K-8rMRRwcUIVVYIHWdhYM2U,5335
7
7
  mangoautomation/exceptions/_exceptions.py,sha256=BiyST1QPivpfIOuKn1gKhpXOyBv6gfip_KvlQuu8ctw,385
8
8
  mangoautomation/models/__init__.py,sha256=59J8VjshTxZK4xX_-_NBqdLZ1OuvuZPSpljY1Jc-4eQ,416
9
9
  mangoautomation/models/_ui_model.py,sha256=wKiBNpGDhSVCAYf798I0bMzdhCGXfSOptMCQrBLTUCM,1416
@@ -11,10 +11,10 @@ mangoautomation/tools/__init__.py,sha256=cc6zpsEdp3JiIx7HfOz-Vob7oTIIFzsuxDLgl20
11
11
  mangoautomation/tools/_mate.py,sha256=9lk_EJnAX_OyXbe5WacyHkkcEr2ScBgasl6eUnlklWA,405
12
12
  mangoautomation/tools/_uiautodev.py,sha256=RMOQMXse744xwUDb1_l7qDv9mUiqZt1Gm5sbB-nlgDk,1388
13
13
  mangoautomation/uidrive/__init__.py,sha256=Tk_gh4Qg2qnewEGxa-7Id4fkQLY3fvQE4X7JB0BEscY,577
14
- mangoautomation/uidrive/_async_element.py,sha256=CqQoYVkMjbFoAzFeWgdytf2fJ27-1ZZG_ZLmqAuRin0,13729
14
+ mangoautomation/uidrive/_async_element.py,sha256=nFzYJpUBvqrbxjtNli7nJBKSYM3zlLByLsyI-eZQSiY,13697
15
15
  mangoautomation/uidrive/_base_data.py,sha256=ur2Ts40MAhOYXb0vGVXZdSwEVCI3Csri9I9f1pw1r4Y,3766
16
16
  mangoautomation/uidrive/_driver_object.py,sha256=Re8j6VLHKfwW2VFdi-1XFRuix8tRBLcHYRBLVF6CApE,1962
17
- mangoautomation/uidrive/_sync_element.py,sha256=IKLhqttcV1d5zFj41IgIs56_bJZMNEPkO7Ah64hcpKg,13547
17
+ mangoautomation/uidrive/_sync_element.py,sha256=VMlvnA79y6KZiowFA3O1h8y8Xps4Nj8PvBzQGtUQbD0,13515
18
18
  mangoautomation/uidrive/android/__init__.py,sha256=SWn7PwRZOf34LCE9KigClDaV8R0n70rqLsG6hCeAok0,5499
19
19
  mangoautomation/uidrive/android/_application.py,sha256=EeEM0MPtOPeYeKx92mtMFWqGpCRmri-D_CzXvPt13RA,2800
20
20
  mangoautomation/uidrive/android/_assertion.py,sha256=Gzic7cH3_Vr6NLiMBPRJr7q1F8YFF2dEopINMR4XQFc,4289
@@ -50,8 +50,8 @@ mangoautomation/uidrive/web/sync_web/_page.py,sha256=MNekcL7o5YXEloeuvi3YrpOZxGh
50
50
  tests/__init__.py,sha256=UhCNFqiVjxdh4CXESNo4oE7qfjpYYVkeHbSE5-7LGDY,125
51
51
  tests/test_ui_and.py,sha256=4k0_3bx_k2KbZifeRWGK65sxtdiPUOjkNzZ5oxjrc18,672
52
52
  tests/test_ui_web.py,sha256=MFaUN8O5qKOMMgyk2eelhKZsYcSJm0Do6pCgsdBZEH4,2765
53
- mangoautomation-1.0.50.dist-info/LICENSE,sha256=03WP-mgFmo8ofRYDe1HVDQUEUKQZ2q6P6Q-2A4c-46A,1085
54
- mangoautomation-1.0.50.dist-info/METADATA,sha256=v8R6xLYzBVZjRc64yeRMgpmZ6RwBdZdhw5gQgOO8r1I,660
55
- mangoautomation-1.0.50.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
56
- mangoautomation-1.0.50.dist-info/top_level.txt,sha256=g-uCmjvEODG8WFbmwbGM0-G0zHntHv8ZsS0PQRaMGtE,22
57
- mangoautomation-1.0.50.dist-info/RECORD,,
53
+ mangoautomation-1.0.51.dist-info/LICENSE,sha256=03WP-mgFmo8ofRYDe1HVDQUEUKQZ2q6P6Q-2A4c-46A,1085
54
+ mangoautomation-1.0.51.dist-info/METADATA,sha256=lX0w6NbYonPJ4U75xT7Z0U8WgLBetOIk8PYj1sd1WQs,660
55
+ mangoautomation-1.0.51.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
56
+ mangoautomation-1.0.51.dist-info/top_level.txt,sha256=g-uCmjvEODG8WFbmwbGM0-G0zHntHv8ZsS0PQRaMGtE,22
57
+ mangoautomation-1.0.51.dist-info/RECORD,,