自动化测试平台问题汇总
一、 自动化测试平台搭建,
环境: 后端(Flask,Playwright), 前端(Vue), Python 3.11.9
问题1:
Uncaught TypeError: _ctx.executeStep is not a function
at onClick (BrowserControl.vue:49:56)
如何解决:
原先在python3.12.3版本无此问题;
二、此问题在Windows的python3.10.10, python3.11.9,python3.12上都是这个问题
Task exception was never retrieved
future: <Task finished name='Task-5' coro=<Connection.run() done, defined at NLPKDT\.venv\lib\site-packages\playwright\_impl\_connection.py:272> exception=NotImplementedError()>
Traceback (most recent call last):
File "NLPKDT\.venv\lib\site-packages\playwright\_impl\_connection.py", line 279, in run
await self._transport.connect()
File "NLPKDT\.venv\lib\site-packages\playwright\_impl\_transport.py", line 133, in connect
raise exc
File "NLPKDT\.venv\lib\site-packages\playwright\_impl\_transport.py", line 120, in connect
self._proc = await asyncio.create_subprocess_exec(
File "Python\Python310\lib\asyncio\subprocess.py", line 218, in create_subprocess_exec
transport, protocol = await loop.subprocess_exec(
File "\Python310\lib\asyncio\base_events.py", line 1681, in subprocess_exec
transport = await self._make_subprocess_transport(
File "Python310\lib\asyncio\base_events.py", line 498, in _make_subprocess_transport
raise NotImplementedError
NotImplementedError
1. Android使用Real Device
问题1: AttributeError: 'NoneType' object has no attribute 'to_capabilities'
解决方法1:
from appium.options.android import UiAutomator2Options
options = UiAutomator2Options().load_capabilities(capabilities)
webdriver.Remote(command_executor=appium_server_url, options=options)
浙公网安备 33010602011771号