pocoproject / poco

The POCO C++ Libraries are powerful cross-platform C++ libraries for building network- and internet-based applications that run on desktop, server, mobile, IoT, and embedded systems.
https://pocoproject.org
Other
8.04k stars 2.11k forks source link

I met this Error [ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine] #4575

Open Hades69 opened 1 month ago

Hades69 commented 1 month ago

Discussed in https://github.com/pocoproject/poco/discussions/4574

Originally posted by **Hades69** June 2, 2024 Please let me know how to solve this Error, even my code is right, it still show this Error code. I'm using newest Poco and AirTest IDE Here is my code: ``````` # -*- encoding=utf8 -*- __author__ = "hoang" from airtest.core.api import * from airtest.cli.parser import cli_setup if not cli_setup(): auto_setup(__file__, logdir=True, devices=["android://127.0.0.1:5037/6743c116?cap_method=ADBCAP&touch_method=MAXTOUCH&",]) from poco.drivers.unity3d import UnityPoco poco = UnityPoco() # script content print("start...") stop_app("com.wood.nut.and.bolts.puzzle") start_app("com.wood.nut.and.bolts.puzzle") sleep(7) def check_object_text(obj, expected_text): if not obj.exists(): return False actual_text = obj.get_text() if actual_text == expected_text: return True else: return False button = poco( textMatches = "CONNEXION QUOTIDIENNE") if check_object_text(button, 'CONNEXION QUOTIDIENNE'): print('Text matches') else: print('Text not matches') # generate html report # from airtest.report.report import simple_report # simple_report(__file__, logpath=True)