appcrawler 最新版本下载地址

还有每次xpath查找控件需要10秒,可不可以减少这个时间

你是不是运行了很久,查询慢多数是appium跑的太久了,导致他自己分析控件的时候开始变慢了

问一下android11版本上能跑吗,我总是跑不动,提示连接不上
[Appium] Appium v1.22.3 creating new AndroidUiautomator2Driver (v1.70.1) session
[Appium] Applying relaxed security to ‘AndroidUiautomator2Driver’ as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure
[BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided
[BaseDriver] Creating session with W3C capabilities: {
[BaseDriver] “alwaysMatch”: {
[BaseDriver] “appium:appium”: “http://127.0.0.1:4723/wd/hub”,
[BaseDriver] “platformName”: “android”,
[BaseDriver] “appium:app”: “”,
[BaseDriver] “appium:appActivity”: “.activity.init.InitActivity”,
[BaseDriver] “appium:appPackage”: “com.baidu.homework”,
[BaseDriver] “appium:automationName”: “UiAutomator2”,
[BaseDriver] “appium:deviceName”: “7H17021000FES”,
[BaseDriver] “appium:dontStopAppOnReset”: true,
[BaseDriver] “appium:newCommandTimeout”: 120,
[BaseDriver] “appium:noReset”: “true”
[BaseDriver] },
[BaseDriver] “firstMatch”: [
[BaseDriver] {}
[BaseDriver] ]
[BaseDriver] }
[BaseDriver] Capability ‘noReset’ changed from string to boolean. This may cause unexpected behavior
[BaseDriver] The following capabilities were provided, but are not recognized by Appium:
[BaseDriver] appium
[BaseDriver] Session created with session id: a05516a5-3619-4417-ba9a-7830df92337f
[UiAutomator2] Starting ‘com.baidu.homework’ directly on the device


[ADB] Running ‘G:\Users\Administrator\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 7H17021000FES shell am force-stop io.appium.uiautomator2.server.test’

[UiAutomator2] Starting UIAutomator2 server 4.27.0

[UiAutomator2] Using UIAutomator2 server from ‘C:\Users\Administrator\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.27.0.apk’ and test from ‘C:\Users\Administrator\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk’

[UiAutomator2] Waiting up to 30000ms for UiAutomator2 to be online…

[ADB] Creating ADB subprocess with args: [“-P”,5037,“-s”,“7H17021000FES”,“shell”,“am”,“instrument”,“-w”,“-e”,“disableAnalytics”,true,“io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner”]
[WD Proxy] Matched ‘/status’ to command name ‘getStatus’

[WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8201/wd/hub/status] with no body

[WD Proxy] socket hang up

[WD Proxy] Matched ‘/status’ to command name ‘getStatus’

[WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8201/wd/hub/status] with no body

[WD Proxy] socket hang up

[WD Proxy] Matched ‘/status’ to command name ‘getStatus’

[WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8201/wd/hub/status] with no body


[WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8201/wd/hub/status] with no body
[WD Proxy] socket hang up
[UiAutomator2] The instrumentation process cannot be initialized within 30000ms timeout. Make sure the application under test does not crash and investigate the logcat output. You could also try to increase the value of ‘uiautomator2ServerLaunchTimeout’ capability
[UiAutomator2] Deleting UiAutomator2 session
[UiAutomator2] Deleting UiAutomator2 server session
[WD Proxy] Matched ‘/’ to command name ‘deleteSession’
[UiAutomator2] Did not get confirmation UiAutomator2 deleteSession worked; Error was: UnknownError: An unknown server-side error occurred while processing the command. Original error: Trying to proxy a session command without session id
[Logcat] Stopping logcat capture
[ADB] Removing forwarded port socket connection: 8201
[ADB] Running ‘G:\Users\Administrator\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 7H17021000FES forward --remove tcp:8201’
[UiAutomator2] Restoring hidden api policy to the device default configuration
[ADB] Running ‘G:\Users\Administrator\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 7H17021000FES shell ‘settings delete global hidden_api_policy_pre_p_apps;settings delete global hidden_api_policy_p_apps;settings delete global hidden_api_policy’’
[BaseDriver] Event ‘newSessionStarted’ logged at 1677135378386 (14:56:18 GMT+0800 (中国标准时间))
[W3C] Encountered internal error running command: Error: The instrumentation process cannot be initialized within 30000ms timeout. Make sure the application under test does not crash and investigate the logcat output. You could also try to increase the value of ‘uiautomator2ServerLaunchTimeout’ capability
[W3C] at Object.errorAndThrow (C:\Users\Administrator\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-support\lib\logging.js:94:35)
[W3C] at UiAutomator2Server.startSession (C:\Users\Administrator\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-uiautomator2-driver\lib\uiautomator2.js:236:15)
[W3C] at runMicrotasks ()
[W3C] at processTicksAndRejections (internal/process/task_queues.js:97:5)
[W3C] at AndroidUiautomator2Driver.startUiAutomator2Session (C:\Users\Administrator\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-uiautomator2-driver\lib\driver.js:416:5)
[W3C] at AndroidUiautomator2Driver.createSession (C:\Users\Administrator\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-uiautomator2-driver\lib\driver.js:229:7)
[W3C] at AppiumDriver.createSession (C:\Users\Administrator\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\lib\appium.js:387:35)
[HTTP] ← POST /wd/hub/session 500 39780 ms - 1151
[HTTP]
然后在android9的机器上就能跑
命令是这个:
java -jar appcrawler-2.7.4-hogwarts.jar -c config_baidu_homework.yaml --capability automationName=UiAutomator2

config_baidu_homework.yaml

capability:
appPackage: “com.baidu.homework”
appActivity: “.activity.init.InitActivity”
dontStopAppOnReset: true
deviceName: “7H17021000FES”
newCommandTimeout: 300
implicitlyWaitTestCase: 300
implicitlyWaitCrawl: 300
maxTime: 1800
maxDepth: 10

执行这个命令超时了,你去看看这个命令的执行结果是啥

G:\Users\Administrator\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 7H17021000FES shell ‘settings delete global hidden_api_policy_pre_p_apps;settings delete global hidden_api_policy_p_apps;settings delete global hidden_api_policy’

可能跟特定机型限制了权限有关系,本质属于appium的问题。

咨询下大佬,appcrawler3.0版本发布了吗?是不是需要付费,付费后再 哪里能获取到?

不好意思,因为工作太忙,拖了好久,为了方便大家,我们正在用python和java重写。

我们公司也帮一些客户打造了一些专业版本,主要是帮他们解决一些小程序、公众号、游戏、pc等特殊领域的自动化测试,通过打造一些领域特定的自动化驱动引擎来实现的,所以中间改造了下appcrawler支持插件也耽误了一些时间。

appcrawler本身是开源的,Android和Web的遍历能力也是长期支持的,我主要是对已有的架构不满意,希望大升级一次,把完整能力的自动化测试、自动遍历、数据驱动、模型驱动结合起来。下个版本的发布时间是5月前后,还得等2个月。

好滴,感谢思寒大佬答疑解惑, 5月份前后发布的appcrawler 3.0.0版本还是和之前版本一样开源免费是吧?

是的,Android iOS Web会一直是开源免费的,可以放心应用。

我们只为少数公司提供一些技术支持与类似Appium的一些自动化引擎技术。

大佬,有没有ios的模版文件

start:
  - appium:
      server: http://127.0.0.1:4723/wd/hub
      caps:
        platformName: ios
        bundleId: xxxxxx
        automationName: XCUITest
        deviceName: iPhone
        udid: ${udid}
        wdaLocalPort: ${wdaLocalPort}
        xcodeOrgId: xxxxx
        xcodeSigningId: iPhone Developer
        noReset: true
        usePrebuiltWDA: true
login:
 - xpath: //*[@type="XCUIElementTypeTextField"]
 - clear: []
 - send_keys: ${name}
 - xpath: //*[@type="XCUIElementTypeSecureTextField"]
 - send_keys: ${password}
 - xpath: //*[@type="XCUIElementTypeButton" and @label="登 录"]
 - click: []

my_application:
 # 我的应用
  - log: $(wdaLocalPort)
  - xpaths: //*[@label="我的应用"]//../../XCUIElementTypeCell
  - return: ele_num
  - len: [$(ele_num)]
  - return: len_num
  - log: ${len_num}
  - if: '${true if len_num > 1}'

会出纯java或python版吗?
scala语言看不太明白 如果能用python写plugin就更好了

我查了一下,有问题的应该是这句,[debug] [ADB] Creating ADB subprocess with args: [“-P”,5037,“-s”,“7013T11000EEY”,“shell”,“am”,“instrument”,“-w”,“-e”,“disableAnalytics”,true,“io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner”]
,你说的那个应该是appium结束的时候删除的一些缓存之类的东西

思寒大佬,之前计划5月份左右发布3.0.0版本 近期还发布吗?期待

2 个赞

思寒大佬估计太忙了,这个新版本还会发布吗

肯定会发的,内部开发中,完全用python重写了,主要是忙。。。

期待

元旦前能见到3.0.0么,期待期待

年底前还能见到3.0嘛

已经开发完了,近期会开放