现象确实是这样的,而且测试过多次,页面基本覆盖了,但是遍历完后一直不会停止,会继续去遍历桌面其他的App。版本信息如下:
-
appium版本信息:1.21.0
-
appcrawler:2.4.0
-
命令:java -jar appcrawler-2.4.0-jar-with-dependencies.jar -c demo.yml appcrawler.yml
-
appcrawler.yml文件配置如下:
---
pluginList: []
saveScreen: true
reportTitle: ""
resultDir: "20211027095159"
waitLoading: 500
waitLaunch: 6000
showCancel: true
maxTime: 10800
maxDepth: 10
capability:
noReset: "true"
autoLaunch: "true"
fullReset: "false"
platformName: "Android"
platformVersion: ""
appium: "http://127.0.0.1:4723/wd/hub"
deviceName: "oppo"
appPackage: "com.jlpay.merch"
appActivity: ".ui.start.SplashActivity"
app: ""
testcase:
name: "TesterHome AppCrawler"
steps:
- xpath: "同意"
action: click
- xpath: "//*[@resource-id='com.jlpay.merch:id/et_login_account']"
action: "84931015812A00N"
time: "1"
- xpath: "//*[@resource-id='com.jlpay.merch:id/et_login_password']"
action: "123456Aa"
time: "1"
- xpath: "//*[@resource-id='com.jlpay.merch:id/btn_login']"
action: click
time: "1"
- xpath: "//*[@resource-id='com.jlpay.merch:id/btn_confirm']"
action: click
time: "1"
selectedList:
- given: []
when: null
then: []
xpath: "//*[contains(name(), 'Button')]"
action: null
actions: []
times: 0
- given: []
when: null
then: []
xpath: "//*[contains(name(), 'Text') and @clickable='true' and string-length(@text)<10]"
action: null
actions: []
times: 0
- given: []
when: null
then: []
xpath: "//*[@clickable='true']/*[contains(name(), 'Text') and string-length(@text)<10]"
action: null
actions: []
times: 0
- given: []
when: null
then: []
xpath: "//*[contains(name(), 'Image') and @clickable='true']"
action: null
actions: []
times: 0
- given: []
when: null
then: []
xpath: "//*[@clickable='true']/*[contains(name(), 'Image')]"
action: null
actions: []
times: 0
- given: []
when: null
then: []
xpath: "//*[contains(name(), 'Image') and @name!='']"
action: null
actions: []
times: 0
- given: []
when: null
then: []
xpath: "//*[contains(name(), 'Text') and @name!='' and string-length(@label)<10]"
action: null
actions: []
times: 0
firstList: []
lastList: []
backButton:
- xpath: //*[contains(@resource-id, "im_back")]
- xpath: //*[contains(@text,'返回')]
triggerActions:
- given: []
when: null
then: []
xpath: "好"
action: click
actions: []
times: 10
- given: []
when: null
then: []
xpath: "允许"
action: click
actions: []
times: 10
xpathAttributes:
- "name"
- "label"
- "value"
- "resource-id"
- "content-desc"
- "instance"
- "text"
sortByAttribute:
- "depth"
- "list"
- "selected"
findBy: "xpath"
defineUrl: []
baseUrl: []
appWhiteList: []
urlBlackList: []
urlWhiteList: []
blackList:
- xpath: //*[contains(@resource-id,'btn_loginout')and contains(@text,'退出登录')]
- xpath: "分享至微信"
- xpath: "拍照.*"
- xpath: "相机"
- xpath: "解绑"
beforeRestart: []
beforeElement:
- given: []
when: null
then: []
xpath: "/*"
action: "Thread.sleep(500)"
actions: []
times: 0
afterElement: []
afterPage: []
afterPageMax: 2
tagLimitMax: 4
tagLimit:
- given: []
when: null
then: []
xpath: "确定"
action: null
actions: []
times: 1000
- given: []
when: null
then: []
xpath: "取消"
action: null
actions: []
times: 1000
- given: []
when: null
then: []
xpath: "share_comment_guide_btn_name"
action: null
actions: []
times: 1000
assertGlobal: []