mangoautomation 1.0.52__py3-none-any.whl → 1.0.53__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.

@@ -126,6 +126,7 @@ class AsyncElement(AsyncWebDevice, AndroidDriver):
126
126
  if self.element_model.ope_value is None:
127
127
  raise MangoAutomationError(*ERROR_MSG_0054)
128
128
  await self.__ope_value()
129
+ self.element_model.ope_value = self.base_data.test_data.replace(self.element_model.ope_value)
129
130
  if self.drive_type == DriveTypeEnum.WEB.value:
130
131
  await self.web_action_element(
131
132
  self.element_model.name,
@@ -146,6 +147,7 @@ class AsyncElement(AsyncWebDevice, AndroidDriver):
146
147
  if self.element_model.ope_value is None:
147
148
  raise MangoAutomationError(*ERROR_MSG_0054)
148
149
  await self.__ope_value(True)
150
+ self.element_model.ope_value = self.base_data.test_data.replace(self.element_model.ope_value)
149
151
  try:
150
152
  if self.drive_type == DriveTypeEnum.WEB.value:
151
153
  self.element_result_model.ass_msg = await self.web_assertion_element(
@@ -197,7 +199,7 @@ class AsyncElement(AsyncWebDevice, AndroidDriver):
197
199
  value = self.element_data.get('value')
198
200
  self.base_data.test_data.set_cache(key, self.base_data.test_data.replace(value))
199
201
 
200
- async def __ope_value(self, is_ass: bool = False):
202
+ async def __ope_value(self,is_ass: bool = False):
201
203
  try:
202
204
  ope_key = 'actual' if is_ass else 'locating'
203
205
  for i in self.element_model.ope_value:
@@ -126,6 +126,7 @@ class SyncElement(SyncWebDevice, AndroidDriver):
126
126
  if self.element_model.ope_value is None:
127
127
  raise MangoAutomationError(*ERROR_MSG_0054)
128
128
  self.__ope_value()
129
+ self.element_model.ope_value = self.base_data.test_data.replace(self.element_model.ope_value)
129
130
  if self.drive_type == DriveTypeEnum.WEB.value:
130
131
  self.web_action_element(
131
132
  self.element_model.name,
@@ -146,6 +147,7 @@ class SyncElement(SyncWebDevice, AndroidDriver):
146
147
  if self.element_model.ope_value is None:
147
148
  raise MangoAutomationError(*ERROR_MSG_0054)
148
149
  self.__ope_value(True)
150
+ self.element_model.ope_value = self.base_data.test_data.replace(self.element_model.ope_value)
149
151
  try:
150
152
  if self.drive_type == DriveTypeEnum.WEB.value:
151
153
  self.element_result_model.ass_msg = self.web_assertion_element(
@@ -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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mangoautomation
3
- Version: 1.0.52
3
+ Version: 1.0.53
4
4
  Summary: 测试工具
5
5
  Home-page: https://gitee.com/mao-peng/testkit
6
6
  Author: 毛鹏
@@ -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=nFzYJpUBvqrbxjtNli7nJBKSYM3zlLByLsyI-eZQSiY,13697
14
+ mangoautomation/uidrive/_async_element.py,sha256=tQd7D8xTU77TVGaAn4L7VXA0PPb0q0wy0mEXjT1dJL4,13902
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=VMlvnA79y6KZiowFA3O1h8y8Xps4Nj8PvBzQGtUQbD0,13515
17
+ mangoautomation/uidrive/_sync_element.py,sha256=7d83EKZ-iUuKDn5et4qLrMEPTQgl6CS-efpVkMTvjVc,13721
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
@@ -35,7 +35,7 @@ mangoautomation/uidrive/web/async_web/__init__.py,sha256=awtvLCGjUKIx46d2rZpO2Cc
35
35
  mangoautomation/uidrive/web/async_web/_assertion.py,sha256=iC_j2pZN1pr2kFmxjEb8fBSX91M0BmrcRKARe3JH-kQ,12761
36
36
  mangoautomation/uidrive/web/async_web/_browser.py,sha256=39YroURzagpq0HoEn1RZnNf1KDKXIgWpKSvp5L_Yut0,5286
37
37
  mangoautomation/uidrive/web/async_web/_customization.py,sha256=uw6p9uLHLXglgSkH4qjDl1v0iGlaNjvf8LljRH5cAHU,347
38
- mangoautomation/uidrive/web/async_web/_element.py,sha256=Rm53EFUthDjr5dQbmdpZP37AFf_Euak83BYqUOK2p1Q,10222
38
+ mangoautomation/uidrive/web/async_web/_element.py,sha256=Si0ql_vGtgzacEaSEbglGTw96qdYHcsYEbYqgtIgYCo,10150
39
39
  mangoautomation/uidrive/web/async_web/_input_device.py,sha256=sMAMHb_8QyPx3pKci0gRDQc2O7h1OYMGyA7fCWl81iM,3288
40
40
  mangoautomation/uidrive/web/async_web/_new_browser.py,sha256=WsQ-s2QCjXiePN_u4bLwpds_QpuDd9V2w6hLuLCB-zg,5624
41
41
  mangoautomation/uidrive/web/async_web/_page.py,sha256=TCYf79qQdVBBTTNq2COZFJVcLCgg5Ksu9lMgmQPVInU,2147
@@ -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.52.dist-info/LICENSE,sha256=03WP-mgFmo8ofRYDe1HVDQUEUKQZ2q6P6Q-2A4c-46A,1085
54
- mangoautomation-1.0.52.dist-info/METADATA,sha256=zr3lfifZTCbAdVV8jcH-LrU7vnpSwzQk5YLHb3zI_3A,660
55
- mangoautomation-1.0.52.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
56
- mangoautomation-1.0.52.dist-info/top_level.txt,sha256=g-uCmjvEODG8WFbmwbGM0-G0zHntHv8ZsS0PQRaMGtE,22
57
- mangoautomation-1.0.52.dist-info/RECORD,,
53
+ mangoautomation-1.0.53.dist-info/LICENSE,sha256=03WP-mgFmo8ofRYDe1HVDQUEUKQZ2q6P6Q-2A4c-46A,1085
54
+ mangoautomation-1.0.53.dist-info/METADATA,sha256=b9f1z-GU8_2m4EIkYJf7VNG0ydy8QtpZEOPmSAZLCpo,660
55
+ mangoautomation-1.0.53.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
56
+ mangoautomation-1.0.53.dist-info/top_level.txt,sha256=g-uCmjvEODG8WFbmwbGM0-G0zHntHv8ZsS0PQRaMGtE,22
57
+ mangoautomation-1.0.53.dist-info/RECORD,,