Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tencent/FAutoTest
/ functions
Functions
285 in github.com/Tencent/FAutoTest
⨍
Functions
285
◇
Types & classes
32
↓ 73 callers
Method
send
(self, data, timeout=int(1 * 60))
fastAutoTest/core/common/network/shortLiveWebSocket.py:114
↓ 35 callers
Method
getResponse
(self)
fastAutoTest/core/common/network/shortLiveWebSocket.py:43
↓ 28 callers
Method
doCommandWithoutElement
(self, actionType, **kw)
fastAutoTest/core/common/command/commandProcessor.py:71
↓ 26 callers
Method
errorCodeToString
(self, errorCode)
fastAutoTest/core/common/errormsgmanager.py:110
↓ 20 callers
Method
_getRelativeDirectionValue
获取相关的方向数据参数值 :param directionKey: 获取的方向 :return:
fastAutoTest/core/h5/h5Engine.py:305
↓ 15 callers
Function
runCommand
(cmd, printDetails=False, cwd=None)
fastAutoTest/utils/commandHelper.py:15
↓ 15 callers
Method
wait
(self, seconds=1)
fastAutoTest/core/h5/h5Engine.py:101
↓ 14 callers
Method
doCommandWithElement
(self, byType, actionType, text=None, **domType)
fastAutoTest/core/common/command/commandProcessor.py:34
↓ 12 callers
Method
_getRelativeDirectionValue
获取相关的方向数据参数值 :param directionKey: key值 :return:
fastAutoTest/core/wx/wxEngine.py:391
↓ 12 callers
Method
_getRelativeDirectionValue
获取相关的方向数据参数值 :param directionKey: key值 :return:
fastAutoTest/core/qq/qqEngine.py:354
↓ 12 callers
Method
getLogger
(self)
fastAutoTest/utils/logger.py:43
↓ 10 callers
Method
getElementRect
(self, xpath, contextId=None)
fastAutoTest/core/h5/h5PageOperator.py:154
↓ 9 callers
Method
_getPageFeature
(self, url)
fastAutoTest/core/wx/wxWebSocketDebugUrlFetcher.py:289
↓ 8 callers
Method
disconnect
(self)
fastAutoTest/core/common/network/shortLiveWebSocket.py:96
↓ 8 callers
Method
specifyDeviceOnCmd
(cmd, device)
fastAutoTest/utils/adbHelper.py:20
↓ 7 callers
Method
isElementExist
:param xpath: 目标的xpath :return: 返回一个boolean,该Element是否存在
fastAutoTest/core/h5/h5Engine.py:470
↓ 7 callers
Method
wait
(self, seconds)
fastAutoTest/core/wx/wxEngine.py:454
↓ 6 callers
Method
clickElementByXpath
默认滑动点为屏幕的中心,且边距为整个屏幕。当有container时,传入container中任意一个当前可见item的xpath,之后会将目标滑到该可见item的位置 :param xpath: 要滑动到屏幕中控件的xpath :param visi
fastAutoTest/core/h5/h5Engine.py:146
↓ 6 callers
Method
connect
(self)
fastAutoTest/core/common/network/shortLiveWebSocket.py:92
↓ 6 callers
Method
returnLastPage
返回上一页
fastAutoTest/core/h5/h5Engine.py:368
↓ 6 callers
Method
switchToNextPage
把之前缓存的html置为none 再重新连接websocket
fastAutoTest/core/h5/h5Engine.py:124
↓ 6 callers
Method
switchToNextPage
需要重新获取当前页面的websocket的url
fastAutoTest/core/wx/wxEngine.py:120
↓ 6 callers
Method
switchToNextPage
需要重新获取当前页面的websocket的url
fastAutoTest/core/qq/qqEngine.py:112
↓ 5 callers
Method
close
(self)
fastAutoTest/core/h5/h5Engine.py:107
↓ 5 callers
Method
isElementExist
(self, xpath)
fastAutoTest/core/wx/wxEngine.py:162
↓ 5 callers
Method
scrollWindow
通过坐标来滑动(屏幕的左上角为(0,0),向下和向右坐标逐渐增大) :param x: 滑动的起始X点坐标 :param y: 滑动的起始Y点坐标 :param xDistance: X方向滑动的距离 :param y
fastAutoTest/core/h5/h5Engine.py:293
↓ 5 callers
Method
wait
(self, seconds)
fastAutoTest/core/qq/qqEngine.py:417
↓ 4 callers
Method
addContextIdInParams
(self, command, contextId)
fastAutoTest/core/h5/h5PageOperator.py:18
↓ 4 callers
Method
close
(self)
fastAutoTest/core/wx/wxEngine.py:466
↓ 4 callers
Method
getDocument
获得getHtml中需要的nodeId 在调用getHtml之前必须先调用这个方法
fastAutoTest/core/h5/h5Engine.py:353
↓ 4 callers
Method
getElementRect
(self, xpath)
fastAutoTest/core/wx/wxPageOperator.py:25
↓ 4 callers
Method
getPlatform
()
fastAutoTest/utils/common.py:30
↓ 4 callers
Method
init
(self, name='default')
fastAutoTest/utils/logger.py:30
↓ 4 callers
Method
put
(self, func, *args, **kwargs)
fastAutoTest/utils/singlethreadexecutor.py:60
↓ 3 callers
Method
clickElementByXpath
默认滑动点为屏幕的中心,且边距为整个屏幕。当有container时,传入container中任意一个当前可见item的xpath,之后会将目标滑到该可见item的位置 :param xpath: 要滑动到屏幕中控件的xpath :param visi
fastAutoTest/core/wx/wxEngine.py:269
↓ 3 callers
Method
clickFirstElementByText
通过text来搜索,点击第一个text相符合的控件。参数同clickElementByXpath()
fastAutoTest/core/h5/h5Engine.py:170
↓ 3 callers
Method
concat
(self, action_type, **params)
fastAutoTest/core/common/command/jsonConcat.py:24
↓ 3 callers
Method
initDriver
(self)
fastAutoTest/core/h5/h5Engine.py:60
↓ 3 callers
Method
listDevices
(ignoreUnconnectedDevices=True, printDetails=False, cwd=None)
fastAutoTest/utils/adbHelper.py:24
↓ 3 callers
Method
quit
(self)
fastAutoTest/core/common/network/shortLiveWebSocket.py:157
↓ 3 callers
Method
registerToVM
(self)
fastAutoTest/utils/vmhook.py:22
↓ 3 callers
Method
registerUncaughtExceptionCallback
(func)
fastAutoTest/utils/vmhook.py:51
↓ 3 callers
Method
registerVMShutDownCallback
(self, func, *args, **kwargs)
fastAutoTest/utils/vmhook.py:29
↓ 3 callers
Method
removeHook
()
fastAutoTest/utils/vmhook.py:55
↓ 3 callers
Method
scrollWindow
(self, x, y, xDistance, yDistance, speed=800)
fastAutoTest/core/wx/wxEngine.py:386
↓ 3 callers
Method
shutDown
(self)
fastAutoTest/utils/singlethreadexecutor.py:69
↓ 2 callers
Method
_fetchWebSocketDebugUrl
(self, localPort)
fastAutoTest/core/wx/wxWebSocketDebugUrlFetcher.py:105
↓ 2 callers
Method
_waitForConnectOrThrow
(self)
fastAutoTest/core/common/network/shortLiveWebSocket.py:171
↓ 2 callers
Method
changeDp2Px
(self, xDp, yDp)
fastAutoTest/core/h5/h5Engine.py:142
↓ 2 callers
Method
changeDp2Px
(self, xDp, yDp)
fastAutoTest/core/wx/wxEngine.py:94
↓ 2 callers
Method
changeDp2Px
(self, xDp, yDp)
fastAutoTest/core/qq/qqEngine.py:86
↓ 2 callers
Method
fetchWebSocketDebugUrl
(self, refetch=False)
fastAutoTest/core/wx/wxWebSocketDebugUrlFetcher.py:59
↓ 2 callers
Method
fetchWebSocketDebugUrl
(self, refetch=False)
fastAutoTest/core/qq/qqWebSocketDebugUrlFetcher.py:46
↓ 2 callers
Method
getAndIncrement
(self)
fastAutoTest/utils/atomicinteger.py:19
↓ 2 callers
Method
getBodyNode
:return:获得body中所有node的frameId
fastAutoTest/core/h5/h5Engine.py:534
↓ 2 callers
Method
getHtml
获得指定nodeId的Html代码。在一条websocket连接中,方法只能够执行一次。 :param nodeId: getDocument方法返回的nodeId,当为1时,返回整个body的代码
fastAutoTest/core/h5/h5Engine.py:338
↓ 2 callers
Method
getJSValue
(self, value, contextId=None)
fastAutoTest/core/h5/h5PageOperator.py:105
↓ 2 callers
Method
getWindowHeight
:return:手机屏幕的高度
fastAutoTest/core/h5/h5Engine.py:275
↓ 2 callers
Method
getWindowHeight
:return:手机屏幕的高度
fastAutoTest/core/wx/wxEngine.py:445
↓ 2 callers
Method
getWindowHeight
:return:手机屏幕的高度
fastAutoTest/core/qq/qqEngine.py:408
↓ 2 callers
Method
isConnected
(self)
fastAutoTest/core/common/network/shortLiveWebSocket.py:89
↓ 2 callers
Method
isElementExist
(self, xpath)
fastAutoTest/core/qq/qqEngine.py:153
↓ 2 callers
Method
isQuit
(self)
fastAutoTest/core/common/network/shortLiveWebSocket.py:161
↓ 2 callers
Method
scrollWindow
(self, x, y, xDistance, yDistance, speed=800)
fastAutoTest/core/qq/qqEngine.py:349
↓ 2 callers
Method
setLevel
(self, level)
fastAutoTest/utils/logger.py:40
↓ 2 callers
Method
setUrl
(self, url)
fastAutoTest/core/common/network/shortLiveWebSocket.py:86
↓ 1 callers
Method
__init__
(self, id, requestData)
fastAutoTest/core/common/network/shortLiveWebSocket.py:30
↓ 1 callers
Method
_checkReturnOrThrow
(self, netWorkRequest)
fastAutoTest/core/common/network/shortLiveWebSocket.py:164
↓ 1 callers
Method
_checkSuccessOrThrow
(self, response)
fastAutoTest/core/common/network/shortLiveWebSocket.py:54
↓ 1 callers
Method
_cleanJsonData
(self, responseJson)
fastAutoTest/core/wx/wxWebSocketDebugUrlFetcher.py:142
↓ 1 callers
Method
_fetchInner
(self)
fastAutoTest/core/h5/h5WebSocketDebugUrlFetcher.py:47
↓ 1 callers
Method
_fetchInner
(self)
fastAutoTest/core/wx/wxWebSocketDebugUrlFetcher.py:73
↓ 1 callers
Method
_fetchInner
(self)
fastAutoTest/core/qq/qqWebSocketDebugUrlFetcher.py:59
↓ 1 callers
Method
_fetchQQToolsProcessPid
(device=None)
fastAutoTest/core/qq/qqWebSocketDebugUrlFetcher.py:70
↓ 1 callers
Method
_fetchWebSocketDebugUrl
(self, localPort)
fastAutoTest/core/h5/h5WebSocketDebugUrlFetcher.py:131
↓ 1 callers
Method
_fetchWebSocketDebugUrl
(self, localPort)
fastAutoTest/core/qq/qqWebSocketDebugUrlFetcher.py:128
↓ 1 callers
Method
_fetchWeixinToolsProcessPid
PS命名结果字段格式为8元祖,格式为:USER PID PPID VSIZE RSS WCHAN PC NAME 各字段解释 USER: 进程的当前用户; PID : 毫无疑问, process ID的
fastAutoTest/core/h5/h5WebSocketDebugUrlFetcher.py:58
↓ 1 callers
Method
_fetchWeixinToolsProcessPid
(device=None)
fastAutoTest/core/wx/wxWebSocketDebugUrlFetcher.py:84
↓ 1 callers
Method
_forwardLocalPort
(localPort, pid, device=None)
fastAutoTest/core/h5/h5WebSocketDebugUrlFetcher.py:127
↓ 1 callers
Method
_forwardLocalPort
(localPort, pid, device=None)
fastAutoTest/core/wx/wxWebSocketDebugUrlFetcher.py:101
↓ 1 callers
Method
_forwardLocalPort
(localPort, pid, device=None)
fastAutoTest/core/qq/qqWebSocketDebugUrlFetcher.py:124
↓ 1 callers
Method
_getAllNodeId
获得body标签中所有的包含IFrame数据的NodeId :return:
fastAutoTest/core/h5/h5Engine.py:522
↓ 1 callers
Method
_getProcessInfo
(cmd, device)
fastAutoTest/core/h5/h5WebSocketDebugUrlFetcher.py:94
↓ 1 callers
Method
_getProcessInfo
(cmd, device)
fastAutoTest/core/qq/qqWebSocketDebugUrlFetcher.py:91
↓ 1 callers
Method
_handleAndReturnWebSocketDebugUrl
(self, responseJson)
fastAutoTest/core/wx/wxWebSocketDebugUrlFetcher.py:150
↓ 1 callers
Method
_handleAndReturnWebSocketDebugUrl
(self, responseJson)
fastAutoTest/core/qq/qqWebSocketDebugUrlFetcher.py:161
↓ 1 callers
Method
_handlePhoneCompat
(weixinProcessInfo)
fastAutoTest/core/h5/h5WebSocketDebugUrlFetcher.py:109
↓ 1 callers
Method
_handlePhoneCompat
(processInfo)
fastAutoTest/core/qq/qqWebSocketDebugUrlFetcher.py:106
↓ 1 callers
Method
_initWebSocketUrlWithThreePage
(self, responseJson)
fastAutoTest/core/wx/wxWebSocketDebugUrlFetcher.py:246
↓ 1 callers
Method
_initWebSocketUrlWithTwoPage
(self, responseJson)
fastAutoTest/core/wx/wxWebSocketDebugUrlFetcher.py:229
↓ 1 callers
Method
_onMessage
(self, message)
fastAutoTest/core/common/network/websocketdatatransfer.py:71
↓ 1 callers
Method
_selectDevice
(self)
fastAutoTest/core/h5/h5Engine.py:82
↓ 1 callers
Method
_selectDevice
(self)
fastAutoTest/core/wx/wxEngine.py:101
↓ 1 callers
Method
_selectDevice
(self)
fastAutoTest/core/qq/qqEngine.py:93
↓ 1 callers
Method
addResponse
(self, responseStr)
fastAutoTest/core/common/network/shortLiveWebSocket.py:46
↓ 1 callers
Method
clickElementByXpath
默认滑动点为屏幕的中心,且边距为整个屏幕。当有container时,传入container中任意一个当前可见item的xpath,之后会将目标滑到该可见item的位置 :param xpath: 要滑动到屏幕中控件的xpath :param visi
fastAutoTest/core/qq/qqEngine.py:228
↓ 1 callers
Method
close
(self)
fastAutoTest/core/qq/qqEngine.py:429
↓ 1 callers
Method
fetchWebSocketDebugUrl
(self, refetch=False)
fastAutoTest/core/h5/h5WebSocketDebugUrlFetcher.py:34
↓ 1 callers
Method
focusElementByXpath
调用目标的focus()方法。 :param xpath:目标的xpath
fastAutoTest/core/h5/h5Engine.py:330
↓ 1 callers
Method
focusElementByXpath
调用目标的focus()方法。 :param xpath:目标的xpath
fastAutoTest/core/qq/qqEngine.py:258
next →
1–100 of 285, ranked by callers