最近在研究 AppCrawler,但是在运行过程中发现了几个问题,麻烦大佬们帮忙解答一下~
1.运行过程中会跳到其他 APP
能否让 AppCrawler 仅在指定 APP 内操作?
2.运行了几十条后,APP 界面就不动了,一直停留在某个页面
结束运行,生成报告后,在报告处也没看出来哪里报错了
3.怎么才能看到它失败呢?
虽然我现在没有写 testcase,但是也应该可以检测出来 crash 吧?即使我后台杀死 APP,查看报告还都是正常的,不知道是怎么回事
---
pluginList: []
saveScreen: true
reportTitle: "AppCrawler自动遍历测试报告"
resultDir: ""
waitLoading: 500
waitLaunch: 6000
showCancel: true
maxTime: 10800
maxDepth: 5
capability:
noReset: "true"
fullReset: "false"
appium: "http://127.0.0.1:4723/wd/hub"
appPackage: "*****"
appActivity: "activity.StartUpActivity"
automationName: uiautomator2
autoGrantPermissions: true
dontStopAppOnReset: true
testcase:
name: "TesterHome AppCrawler"
steps:
- given: []
when: null
then: []
xpath: "/*"
action: "Thread.sleep(5000)"
actions: []
times: 0
selectedList:
- {xpath: "//*[@clickable='true']", action: click }
firstList:
- { xpath: "//*[contains(@text, '运动')]", action: click }
lastList:
- { xpath: "//*[contains(@text, '课程')]", action: click }
- { xpath: "//*[contains(@text, '社区')]", action: click }
- { xpath: "//*[contains(@text, '发现')]", action: click }
- { xpath: "//*[contains(@text, '我的')]", action: click }
backButton: []
triggerActions:
- xpath: et_username
action: ***
times: 1
- xpath: et_password
action: ***
times: 1
xpathAttributes:
- "name"
- "label"
- "value"
- "resource-id"
- "content-desc"
- "instance"
- "text"
sortByAttribute:
- "depth"
- "list"
- "selected"
findBy: "default"
defineUrl: []
baseUrl: []
appWhiteList: []
urlBlackList: []
urlWhiteList: []
blackList:
- given: []
when: null
then: []
xpath: ".*[0-9]{2}.*"
action: null
actions: []
times: 0
beforeRestart: []
beforeElement:
- given: []
when: null
then: []
xpath: "/*"
action: "Thread.sleep(500)"
actions: []
times: 0
afterElement: []
afterPage: []
afterPageMax: 5
tagLimitMax: 3
tagLimit:
- {xpath: "//*[contains(@class, 'List')]//*", times: 1}
assertGlobal: []