mangoautomation 1.0.31__py3-none-any.whl → 1.0.32__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.
- mangoautomation/uidrive/_async_element.py +7 -1
- mangoautomation/uidrive/_sync_element.py +7 -1
- {mangoautomation-1.0.31.dist-info → mangoautomation-1.0.32.dist-info}/METADATA +1 -1
- {mangoautomation-1.0.31.dist-info → mangoautomation-1.0.32.dist-info}/RECORD +7 -7
- {mangoautomation-1.0.31.dist-info → mangoautomation-1.0.32.dist-info}/LICENSE +0 -0
- {mangoautomation-1.0.31.dist-info → mangoautomation-1.0.32.dist-info}/WHEEL +0 -0
- {mangoautomation-1.0.31.dist-info → mangoautomation-1.0.32.dist-info}/top_level.txt +0 -0
|
@@ -255,7 +255,13 @@ class AsyncElement(AsyncWebDevice, AndroidDriver):
|
|
|
255
255
|
file_path = os.path.join(self.base_data.screenshot_path, file_name)
|
|
256
256
|
self.element_result_model.picture_path = file_path
|
|
257
257
|
self.element_result_model.picture_name = file_name
|
|
258
|
-
|
|
258
|
+
try:
|
|
259
|
+
await self.__error_screenshot(file_path)
|
|
260
|
+
except MangoAutomationError as error:
|
|
261
|
+
self.element_result_model.error_message += f'执行过程中发生失败,准备截图时截图失败,失败原因:{error.msg}'
|
|
262
|
+
except Exception as error:
|
|
263
|
+
self.base_data.log.error(
|
|
264
|
+
f'截图失败未知异常-1,类型:{type(error)},失败详情:{error},失败明细:{traceback.format_exc()}')
|
|
259
265
|
|
|
260
266
|
async def __error_screenshot(self, file_path):
|
|
261
267
|
if self.drive_type == DriveTypeEnum.WEB.value:
|
|
@@ -255,7 +255,13 @@ class SyncElement(SyncWebDevice, AndroidDriver):
|
|
|
255
255
|
file_path = os.path.join(self.base_data.screenshot_path, file_name)
|
|
256
256
|
self.element_result_model.picture_path = file_path
|
|
257
257
|
self.element_result_model.picture_name = file_name
|
|
258
|
-
|
|
258
|
+
try:
|
|
259
|
+
self.__error_screenshot(file_path)
|
|
260
|
+
except MangoAutomationError as error:
|
|
261
|
+
self.element_result_model.error_message += f'执行过程中发生失败,准备截图时截图失败,失败原因:{error.msg}'
|
|
262
|
+
except Exception as error:
|
|
263
|
+
self.base_data.log.error(
|
|
264
|
+
f'截图失败未知异常-1,类型:{type(error)},失败详情:{error},失败明细:{traceback.format_exc()}')
|
|
259
265
|
|
|
260
266
|
def __error_screenshot(self, file_path):
|
|
261
267
|
if self.drive_type == DriveTypeEnum.WEB.value:
|
|
@@ -10,10 +10,10 @@ mangoautomation/models/_ui_model.py,sha256=IGophozQMO-NQjM_DPdlwud484yfWQw1CRwbD
|
|
|
10
10
|
mangoautomation/tools/__init__.py,sha256=i0rZF_gS0h1Rd0bMhgDSJp4JbEb3rm33zg-MDEX7KdE,342
|
|
11
11
|
mangoautomation/tools/_mate.py,sha256=9lk_EJnAX_OyXbe5WacyHkkcEr2ScBgasl6eUnlklWA,405
|
|
12
12
|
mangoautomation/uidrive/__init__.py,sha256=Tk_gh4Qg2qnewEGxa-7Id4fkQLY3fvQE4X7JB0BEscY,577
|
|
13
|
-
mangoautomation/uidrive/_async_element.py,sha256=
|
|
13
|
+
mangoautomation/uidrive/_async_element.py,sha256=Va8uMzLPLk7eS4Gxa2qmMYmoIEx2HE4AURc23BYimZI,13993
|
|
14
14
|
mangoautomation/uidrive/_base_data.py,sha256=OCg5HXk_2sMgf5A6JTJErKLC8nZfhbzwKBRJHCDMueA,3174
|
|
15
15
|
mangoautomation/uidrive/_driver_object.py,sha256=Re8j6VLHKfwW2VFdi-1XFRuix8tRBLcHYRBLVF6CApE,1962
|
|
16
|
-
mangoautomation/uidrive/_sync_element.py,sha256=
|
|
16
|
+
mangoautomation/uidrive/_sync_element.py,sha256=v6WI_5KVpvdG_3z5vt_gpmp3pFChAfL6c8WtUUmLzUY,13805
|
|
17
17
|
mangoautomation/uidrive/android/__init__.py,sha256=FSIzfPane33QEj6bXslpd8bF1xGCDwMAHBOrpNzdyE4,5874
|
|
18
18
|
mangoautomation/uidrive/android/_application.py,sha256=frvRyqUlx6__3j4xQdaJ4SOnEnipR3uPCOnWKDrkT7Y,2771
|
|
19
19
|
mangoautomation/uidrive/android/_assertion.py,sha256=xkSBdjSfAbYtidHWWWY7Ko2OYaHi9OcZZOlnqIUT-FM,3611
|
|
@@ -48,8 +48,8 @@ mangoautomation/uidrive/web/sync_web/_page.py,sha256=MNekcL7o5YXEloeuvi3YrpOZxGh
|
|
|
48
48
|
tests/__init__.py,sha256=UhCNFqiVjxdh4CXESNo4oE7qfjpYYVkeHbSE5-7LGDY,125
|
|
49
49
|
tests/test_ui_and.py,sha256=4k0_3bx_k2KbZifeRWGK65sxtdiPUOjkNzZ5oxjrc18,672
|
|
50
50
|
tests/test_ui_web.py,sha256=MFaUN8O5qKOMMgyk2eelhKZsYcSJm0Do6pCgsdBZEH4,2765
|
|
51
|
-
mangoautomation-1.0.
|
|
52
|
-
mangoautomation-1.0.
|
|
53
|
-
mangoautomation-1.0.
|
|
54
|
-
mangoautomation-1.0.
|
|
55
|
-
mangoautomation-1.0.
|
|
51
|
+
mangoautomation-1.0.32.dist-info/LICENSE,sha256=03WP-mgFmo8ofRYDe1HVDQUEUKQZ2q6P6Q-2A4c-46A,1085
|
|
52
|
+
mangoautomation-1.0.32.dist-info/METADATA,sha256=_BxaH7gEu40KnY51RAE5QJQ8kyv2BKjPsO__HP2iqDw,625
|
|
53
|
+
mangoautomation-1.0.32.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
54
|
+
mangoautomation-1.0.32.dist-info/top_level.txt,sha256=g-uCmjvEODG8WFbmwbGM0-G0zHntHv8ZsS0PQRaMGtE,22
|
|
55
|
+
mangoautomation-1.0.32.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|