AppCrawler断言失败,报告中却显示成功

我在使用AppCrawler的时候遇到了一个问题:在testcase里写了一个断言,判断该界面是否存在某个字段,cmd 的运行记录里显示没有找到该字段,但是在最终生成的报告里显示每一条用例都是成功的没有报错,这个问题怎么解决呢?
企业微信截图_16142289724958

@seveniruby 能帮忙看看吗~感谢!

xpath和action应该在when的里面,或者你直接去掉when也可以。
如果还有报错,把节目目录中的appcrawler.log上传下

刚刚按照你说的改了一下,还是一样的结果,看到appcrawler.log里面好像没有出现断言相关的信息,麻烦再帮我看看~内容如下:

2021-02-25 16:24:56 INFO [Crawler.147.start] waiting for app load
2021-02-25 16:25:02 INFO [Crawler.149.start] driver=null
2021-02-25 16:25:02 INFO [Crawler.150.start] get screen info
2021-02-25 16:25:02 INFO [AppiumClient.120.getDeviceInfo] screenWidth=1080 screenHeight=2160
2021-02-25 16:25:02 INFO [Crawler.627.refreshPage] refresh page
2021-02-25 16:25:02 INFO [AppiumClient.102.getPageSourceWithRetry] start to get page source from appium
2021-02-25 16:25:03 INFO [AppiumClient.117.$anonfun$getPageSourceWithRetry$1] xml format
2021-02-25 16:25:03 INFO [Crawler.645.parsePageContext] appName =
2021-02-25 16:25:03 INFO [Crawler.649.parsePageContext] url=MainActivity
2021-02-25 16:25:03 INFO [Crawler.673.parsePageContext] currentContentHash=77ff727ad388629a9f5830a3a4d10318 lastContentHash=77ff727ad388629a9f5830a3a4d10318
2021-02-25 16:25:03 INFO [Crawler.677.parsePageContext] ui not change
2021-02-25 16:25:03 INFO [Crawler.230.firstRefresh] first refresh
2021-02-25 16:25:03 INFO [Crawler.996.doElementAction] current element = MainActivity.tag=start.id=start
2021-02-25 16:25:03 INFO [Crawler.997.doElementAction] current index = 0
2021-02-25 16:25:03 INFO [Crawler.998.doElementAction] current action =
2021-02-25 16:25:03 INFO [Crawler.999.doElementAction] current xpath = Start-Start-0
2021-02-25 16:25:03 INFO [Crawler.1000.doElementAction] current url = MainActivity
2021-02-25 16:25:03 INFO [Crawler.1001.doElementAction] current tag path =
2021-02-25 16:25:03 INFO [Crawler.1002.doElementAction] current file name = MainActivity.tag=start.id=start
2021-02-25 16:25:03 INFO [Crawler.1014.doElementAction] just log
2021-02-25 16:25:03 INFO [Crawler.1015.doElementAction] {
“url” : “MainActivity”,
“tag” : “start”,
“id” : “start”,
“name” : “”,
“text” : “”,
“instance” : “”,
“depth” : “”,
“valid” : “true”,
“selected” : “false”,
“xpath” : “Start-Start-0”,
“ancestor” : “”,
“x” : 0,
“y” : 0,
“width” : 0,
“height” : 0
}
2021-02-25 16:25:03 INFO [Crawler.1126.doElementAction] mark image exist
2021-02-25 16:25:03 INFO [Crawler.1130.doElementAction] sleep 500 for loading
2021-02-25 16:25:04 INFO [Crawler.627.refreshPage] refresh page
2021-02-25 16:25:04 INFO [AppiumClient.102.getPageSourceWithRetry] start to get page source from appium
2021-02-25 16:25:04 INFO [AppiumClient.117.$anonfun$getPageSourceWithRetry$1] xml format
2021-02-25 16:25:04 INFO [Crawler.645.parsePageContext] appName =
2021-02-25 16:25:04 INFO [Crawler.649.parsePageContext] url=MainActivity
2021-02-25 16:25:04 INFO [Crawler.673.parsePageContext] currentContentHash=77ff727ad388629a9f5830a3a4d10318 lastContentHash=77ff727ad388629a9f5830a3a4d10318
2021-02-25 16:25:04 INFO [Crawler.677.parsePageContext] ui not change
2021-02-25 16:25:04 INFO [Crawler.931.saveDom] save to 20210225162444/0_MainActivity.tag=start.id=start.dom
2021-02-25 16:25:04 INFO [Crawler.953.saveScreen] start screenshot
2021-02-25 16:25:04 INFO [Crawler.956.$anonfun$saveScreen$2] ui change screenshot again
2021-02-25 16:25:06 INFO [Crawler.977.saveScreen] screenshot success
2021-02-25 16:25:06 INFO [Crawler.159.start] append current app name to appWhiteList
2021-02-25 16:25:06 INFO [Crawler.163.start] run steps
2021-02-25 16:25:06 INFO [Crawler.237.runSteps] run testcases
2021-02-25 16:25:06 INFO [Crawler.996.doElementAction] current element = Steps.tag=TextView.13.depth=10.id=tv_setting.text=我的
2021-02-25 16:25:06 INFO [Crawler.997.doElementAction] current index = 1
2021-02-25 16:25:06 INFO [Crawler.998.doElementAction] current action = click
2021-02-25 16:25:06 INFO [Crawler.999.doElementAction] current xpath = //[@resource-id=“cn.aishu.anyshare:id/action_bar_root”]//[@resource-id=“android:id/content”]//[@resource-id=“cn.aishu.anyshare:id/bottomBar_main”]//[@resource-id=“cn.aishu.anyshare:id/rl_setting”]//[@text=“我的” and @resource-id=“cn.aishu.anyshare:id/tv_setting”]
2021-02-25 16:25:06 INFO [Crawler.1000.doElementAction] current url = Steps
2021-02-25 16:25:06 INFO [Crawler.1001.doElementAction] current tag path = hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.view.ViewGroup/android.widget.LinearLayout/android.widget.RelativeLayout/android.widget.TextView
2021-02-25 16:25:06 INFO [Crawler.1002.doElementAction] current file name = Steps.tag=TextView.13.depth=10.id=tv_setting.text=我的
2021-02-25 16:25:06 INFO [Crawler.1071.doElementAction] need input click
2021-02-25 16:25:06 INFO [AppiumClient.53.findElementByURI] find by uri element= Steps.tag=TextView.13.depth=10.id=tv_setting.text=我的
2021-02-25 16:25:06 INFO [AppiumClient.245.findElementsByURI] findElementByAndroidUIAutomator new UiSelector().className(“android.widget.TextView”).text(“我的”).resourceId(“cn.aishu.anyshare:id/tv_setting”)
2021-02-25 16:25:06 INFO [AppiumClient.60.findElementByURI] find by xpath success
2021-02-25 16:25:06 INFO [Crawler.1080.doElementAction] mark 20210225162444/0_MainActivity.tag=start.id=start.clicked.png to 20210225162444/1_Steps.tag=TextView.13.depth=10.id=tv_setting.text=我的.click.png
2021-02-25 16:25:06 INFO [AppiumClient.141.mark] read from 20210225162444/0_MainActivity.tag=start.id=start.clicked.png
2021-02-25 16:25:06 INFO [AppiumClient.154.mark] write png 20210225162444/0_MainActivity.tag=start.id=start.clicked.png
2021-02-25 16:25:06 INFO [AppiumClient.161.mark] ImageIO.write newImageName 20210225162444/1_Steps.tag=TextView.13.depth=10.id=tv_setting.text=我的.click.png
2021-02-25 16:25:07 INFO [Crawler.1095.$anonfun$doElementAction$5] click element
2021-02-25 16:25:07 INFO [AppiumClient.174.click] [[io.appium.java_client.android.AndroidDriver, Capabilities: {app=E:\appcrawler\AnyShare_All_Android_All-7.0.1.1-20210208-Release-1489.apk, appActivity=cn.aishu.anyshare.AppStartActivity, appPackage=cn.aishu.anyshare, appWaitActivity=cn.aishu.anyshare.AppStartActivity, appWaitPackage=cn.aishu.anyshare, appium=http://127.0.0.1:4723/wd/hub, automationName=UiAutomator1, databaseEnabled=false, desired={platformName=android, appium=http://127.0.0.1:4723/wd/hub, app=E:\appcrawler\AnyShare_All_Android_All-7.0.1.1-20210208-Release-1489.apk, appPackage=cn.aishu.anyshare, automationName=UiAutomator1, deviceName=demo, fullReset=false, noReset=true}, deviceManufacturer=HUAWEI, deviceModel=BLA-AL00, deviceName=LKX0218104004206, deviceScreenSize=1080x2160, deviceUDID=LKX0218104004206, fullReset=false, javascriptEnabled=true, locationContextEnabled=false, networkConnectionEnabled=true, noReset=true, platform=LINUX, platformName=Android, platformVersion=10, takesScreenshot=true, warnings={}, webStorageEnabled=false}] -> -android uiautomator: new UiSelector().className(“android.widget.TextView”).text(“我的”).resourceId(“cn.aishu.anyshare:id/tv_setting”)]
2021-02-25 16:25:07 INFO [Crawler.1126.doElementAction] mark image exist
2021-02-25 16:25:07 INFO [Crawler.1130.doElementAction] sleep 500 for loading
2021-02-25 16:25:07 INFO [Crawler.627.refreshPage] refresh page
2021-02-25 16:25:07 INFO [AppiumClient.102.getPageSourceWithRetry] start to get page source from appium
2021-02-25 16:25:08 INFO [AppiumClient.117.$anonfun$getPageSourceWithRetry$1] xml format
2021-02-25 16:25:08 INFO [Crawler.645.parsePageContext] appName =
2021-02-25 16:25:08 INFO [Crawler.649.parsePageContext] url=MainActivity
2021-02-25 16:25:08 INFO [Crawler.673.parsePageContext] currentContentHash=73498c1dc61b501701be94a3c3eae782 lastContentHash=77ff727ad388629a9f5830a3a4d10318
2021-02-25 16:25:08 INFO [Crawler.675.parsePageContext] ui change
2021-02-25 16:25:08 INFO [Crawler.931.saveDom] save to 20210225162444/1_Steps.tag=TextView.13.depth=10.id=tv_setting.text=我的.dom
2021-02-25 16:25:08 INFO [Crawler.953.saveScreen] start screenshot
2021-02-25 16:25:08 INFO [Crawler.956.$anonfun$saveScreen$2] ui change screenshot again
2021-02-25 16:25:09 INFO [Crawler.977.saveScreen] screenshot success
2021-02-25 16:25:09 INFO [Crawler.996.doElementAction] current element = Steps.tag=LinearLayout.6.depth=15
2021-02-25 16:25:09 INFO [Crawler.997.doElementAction] current index = 2
2021-02-25 16:25:09 INFO [Crawler.998.doElementAction] current action = click
2021-02-25 16:25:09 INFO [Crawler.999.doElementAction] current xpath = //
[@resource-id=“cn.aishu.anyshare:id/action_bar_root”]//[@resource-id=“android:id/content”]//[@resource-id=“cn.aishu.anyshare:id/vp_main_container”]//*[@resource-id=“cn.aishu.anyshare:id/ll_personal_userinfo”]
2021-02-25 16:25:09 INFO [Crawler.1000.doElementAction] current url = Steps
2021-02-25 16:25:09 INFO [Crawler.1001.doElementAction] current tag path = hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.view.ViewGroup/androidx.viewpager.widget.ViewPager/androidx.recyclerview.widget.RecyclerView/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.ScrollView/android.widget.LinearLayout/android.widget.LinearLayout/android.widget.LinearLayout
2021-02-25 16:25:09 INFO [Crawler.1002.doElementAction] current file name = Steps.tag=LinearLayout.6.depth=15
2021-02-25 16:25:09 INFO [Crawler.1071.doElementAction] need input click
2021-02-25 16:25:09 INFO [AppiumClient.53.findElementByURI] find by uri element= Steps.tag=LinearLayout.6.depth=15
2021-02-25 16:25:09 INFO [AppiumClient.245.findElementsByURI] findElementByAndroidUIAutomator new UiSelector().className(“android.widget.LinearLayout”).instance(6)
2021-02-25 16:25:09 INFO [AppiumClient.60.findElementByURI] find by xpath success
2021-02-25 16:25:09 INFO [Crawler.1080.doElementAction] mark 20210225162444/1_Steps.tag=TextView.13.depth=10.id=tv_setting.text=我的.clicked.png to 20210225162444/2_Steps.tag=LinearLayout.6.depth=15.click.png
2021-02-25 16:25:09 INFO [AppiumClient.141.mark] read from 20210225162444/1_Steps.tag=TextView.13.depth=10.id=tv_setting.text=我的.clicked.png
2021-02-25 16:25:09 INFO [AppiumClient.154.mark] write png 20210225162444/1_Steps.tag=TextView.13.depth=10.id=tv_setting.text=我的.clicked.png
2021-02-25 16:25:09 INFO [AppiumClient.161.mark] ImageIO.write newImageName 20210225162444/2_Steps.tag=LinearLayout.6.depth=15.click.png
2021-02-25 16:25:09 INFO [Crawler.1095.$anonfun$doElementAction$5] click element
2021-02-25 16:25:09 INFO [AppiumClient.174.click] [[io.appium.java_client.android.AndroidDriver, Capabilities: {app=E:\appcrawler\AnyShare_All_Android_All-7.0.1.1-20210208-Release-1489.apk, appActivity=cn.aishu.anyshare.AppStartActivity, appPackage=cn.aishu.anyshare, appWaitActivity=cn.aishu.anyshare.AppStartActivity, appWaitPackage=cn.aishu.anyshare, appium=http://127.0.0.1:4723/wd/hub, automationName=UiAutomator1, databaseEnabled=false, desired={platformName=android, appium=http://127.0.0.1:4723/wd/hub, app=E:\appcrawler\AnyShare_All_Android_All-7.0.1.1-20210208-Release-1489.apk, appPackage=cn.aishu.anyshare, automationName=UiAutomator1, deviceName=demo, fullReset=false, noReset=true}, deviceManufacturer=HUAWEI, deviceModel=BLA-AL00, deviceName=LKX0218104004206, deviceScreenSize=1080x2160, deviceUDID=LKX0218104004206, fullReset=false, javascriptEnabled=true, locationContextEnabled=false, networkConnectionEnabled=true, noReset=true, platform=LINUX, platformName=Android, platformVersion=10, takesScreenshot=true, warnings={}, webStorageEnabled=false}] -> -android uiautomator: new UiSelector().className(“android.widget.LinearLayout”).instance(6)]
2021-02-25 16:25:10 INFO [Crawler.1126.doElementAction] mark image exist
2021-02-25 16:25:10 INFO [Crawler.1130.doElementAction] sleep 500 for loading
2021-02-25 16:25:10 INFO [Crawler.627.refreshPage] refresh page
2021-02-25 16:25:10 INFO [AppiumClient.102.getPageSourceWithRetry] start to get page source from appium
2021-02-25 16:25:10 INFO [AppiumClient.117.$anonfun$getPageSourceWithRetry$1] xml format
2021-02-25 16:25:10 INFO [Crawler.645.parsePageContext] appName =
2021-02-25 16:25:10 INFO [Crawler.649.parsePageContext] url=PersonalActivity
2021-02-25 16:25:10 INFO [Crawler.673.parsePageContext] currentContentHash=f0af1eb3e7f6c1325c77816284265a41 lastContentHash=73498c1dc61b501701be94a3c3eae782
2021-02-25 16:25:10 INFO [Crawler.675.parsePageContext] ui change
2021-02-25 16:25:10 INFO [Crawler.931.saveDom] save to 20210225162444/2_Steps.tag=LinearLayout.6.depth=15.dom
2021-02-25 16:25:11 INFO [Crawler.953.saveScreen] start screenshot
2021-02-25 16:25:11 INFO [Crawler.956.$anonfun$saveScreen$2] ui change screenshot again
2021-02-25 16:25:12 INFO [Crawler.977.saveScreen] screenshot success
2021-02-25 16:25:12 INFO [Crawler.627.refreshPage] refresh page
2021-02-25 16:25:12 INFO [AppiumClient.102.getPageSourceWithRetry] start to get page source from appium
2021-02-25 16:25:13 INFO [AppiumClient.117.$anonfun$getPageSourceWithRetry$1] xml format
2021-02-25 16:25:13 INFO [Crawler.645.parsePageContext] appName =
2021-02-25 16:25:13 INFO [Crawler.649.parsePageContext] url=PersonalActivity
2021-02-25 16:25:13 INFO [Crawler.673.parsePageContext] currentContentHash=f0af1eb3e7f6c1325c77816284265a41 lastContentHash=f0af1eb3e7f6c1325c77816284265a41
2021-02-25 16:25:13 INFO [Crawler.677.parsePageContext] ui not change
2021-02-25 16:25:13 INFO [Crawler.1213.handleCtrlC] add shutdown hook
2021-02-25 16:25:13 INFO [Crawler.772.crawl]

crawl next
2021-02-25 16:25:13 INFO [Crawler.425.needReturn] urlStack=Stack(PersonalActivity) baseUrl=List() maxDepth=20
2021-02-25 16:25:13 INFO [Crawler.834.crawl] no need to back
2021-02-25 16:25:13 INFO [Crawler.487.getAvailableElement] selected nodes size = 2
2021-02-25 16:25:13 INFO [Crawler.499.getAvailableElement] all - black elements size = 2
2021-02-25 16:25:13 INFO [Crawler.528.getAvailableElement] all - first - last elements size = 2
2021-02-25 16:25:13 INFO [Crawler.590.getAvailableElement] all - backButton size=2
2021-02-25 16:25:13 INFO [Crawler.598.getAvailableElement] all - clicked size=2
2021-02-25 16:25:13 INFO [Crawler.605.getAvailableElement] all - skiped fresh elements size=2
2021-02-25 16:25:13 INFO [Crawler.843.crawl] found PersonalActivity.tag=ImageView.0.depth=11 by first available element
2021-02-25 16:25:13 INFO [Crawler.728.setElementAction] set action to click
2021-02-25 16:25:13 INFO [Crawler.996.doElementAction] current element = PersonalActivity.tag=ImageView.0.depth=11
2021-02-25 16:25:13 INFO [Crawler.997.doElementAction] current index = 3
2021-02-25 16:25:13 INFO [Crawler.998.doElementAction] current action = click
2021-02-25 16:25:13 INFO [Crawler.999.doElementAction] current xpath = //[@resource-id=“cn.aishu.anyshare:id/action_bar_root”]//[@resource-id=“android:id/content”]//*[@resource-id=“cn.aishu.anyshare:id/tb_personal”]
2021-02-25 16:25:13 INFO [Crawler.1000.doElementAction] current url = PersonalActivity
2021-02-25 16:25:13 INFO [Crawler.1001.doElementAction] current tag path = hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.LinearLayout/android.widget.ImageView
2021-02-25 16:25:13 INFO [Crawler.1002.doElementAction] current file name = PersonalActivity.tag=ImageView.0.depth=11
2021-02-25 16:25:13 INFO [Crawler.1071.doElementAction] need input click
2021-02-25 16:25:13 INFO [AppiumClient.53.findElementByURI] find by uri element= PersonalActivity.tag=ImageView.0.depth=11
2021-02-25 16:25:13 INFO [AppiumClient.245.findElementsByURI] findElementByAndroidUIAutomator new UiSelector().className(“android.widget.ImageView”).instance(0)
2021-02-25 16:25:13 INFO [AppiumClient.60.findElementByURI] find by xpath success
2021-02-25 16:25:13 INFO [Crawler.1080.doElementAction] mark 20210225162444/2_Steps.tag=LinearLayout.6.depth=15.clicked.png to 20210225162444/3_PersonalActivity.tag=ImageView.0.depth=11.click.png
2021-02-25 16:25:13 INFO [AppiumClient.141.mark] read from 20210225162444/2_Steps.tag=LinearLayout.6.depth=15.clicked.png
2021-02-25 16:25:13 INFO [AppiumClient.154.mark] write png 20210225162444/2_Steps.tag=LinearLayout.6.depth=15.clicked.png
2021-02-25 16:25:13 INFO [AppiumClient.161.mark] ImageIO.write newImageName 20210225162444/3_PersonalActivity.tag=ImageView.0.depth=11.click.png
2021-02-25 16:25:14 INFO [Crawler.1095.$anonfun$doElementAction$5] click element
2021-02-25 16:25:14 INFO [AppiumClient.174.click] [[io.appium.java_client.android.AndroidDriver, Capabilities: {app=E:\appcrawler\AnyShare_All_Android_All-7.0.1.1-20210208-Release-1489.apk, appActivity=cn.aishu.anyshare.AppStartActivity, appPackage=cn.aishu.anyshare, appWaitActivity=cn.aishu.anyshare.AppStartActivity, appWaitPackage=cn.aishu.anyshare, appium=http://127.0.0.1:4723/wd/hub, automationName=UiAutomator1, databaseEnabled=false, desired={platformName=android, appium=http://127.0.0.1:4723/wd/hub, app=E:\appcrawler\AnyShare_All_Android_All-7.0.1.1-20210208-Release-1489.apk, appPackage=cn.aishu.anyshare, automationName=UiAutomator1, deviceName=demo, fullReset=false, noReset=true}, deviceManufacturer=HUAWEI, deviceModel=BLA-AL00, deviceName=LKX0218104004206, deviceScreenSize=1080x2160, deviceUDID=LKX0218104004206, fullReset=false, javascriptEnabled=true, locationContextEnabled=false, networkConnectionEnabled=true, noReset=true, platform=LINUX, platformName=Android, platformVersion=10, takesScreenshot=true, warnings={}, webStorageEnabled=false}] -> -android uiautomator: new UiSelector().className(“android.widget.ImageView”).instance(0)]
2021-02-25 16:25:14 INFO [Crawler.1126.doElementAction] mark image exist
2021-02-25 16:25:14 INFO [Crawler.1130.doElementAction] sleep 500 for loading
2021-02-25 16:25:15 INFO [Crawler.627.refreshPage] refresh page
2021-02-25 16:25:15 INFO [AppiumClient.102.getPageSourceWithRetry] start to get page source from appium
2021-02-25 16:25:15 INFO [AppiumClient.117.$anonfun$getPageSourceWithRetry$1] xml format
2021-02-25 16:25:15 INFO [Crawler.645.parsePageContext] appName =
2021-02-25 16:25:15 INFO [Crawler.649.parsePageContext] url=MainActivity
2021-02-25 16:25:15 INFO [Crawler.673.parsePageContext] currentContentHash=73498c1dc61b501701be94a3c3eae782 lastContentHash=f0af1eb3e7f6c1325c77816284265a41
2021-02-25 16:25:15 INFO [Crawler.675.parsePageContext] ui change
2021-02-25 16:25:15 INFO [Crawler.931.saveDom] save to 20210225162444/3_PersonalActivity.tag=ImageView.0.depth=11.dom
2021-02-25 16:25:15 INFO [Crawler.953.saveScreen] start screenshot
2021-02-25 16:25:15 INFO [Crawler.956.$anonfun$saveScreen$2] ui change screenshot again
2021-02-25 16:25:16 INFO [Crawler.977.saveScreen] screenshot success
2021-02-25 16:25:16 INFO [Crawler.709.afterElementAction] backRetry=0
2021-02-25 16:25:16 INFO [Crawler.712.afterElementAction] afterElementAction eval
2021-02-25 16:25:16 INFO [ReportPlugin.36.afterElementAction] clickedElementsList size = 4
2021-02-25 16:25:16 INFO [Crawler.772.crawl]

crawl next
2021-02-25 16:25:16 INFO [Crawler.425.needReturn] urlStack=Stack(MainActivity, PersonalActivity) baseUrl=List() maxDepth=20
2021-02-25 16:25:16 INFO [Crawler.834.crawl] no need to back
2021-02-25 16:25:16 INFO [Crawler.487.getAvailableElement] selected nodes size = 16
2021-02-25 16:25:16 INFO [Crawler.499.getAvailableElement] all - black elements size = 16
2021-02-25 16:25:16 INFO [Crawler.528.getAvailableElement] all - first - last elements size = 16
2021-02-25 16:25:16 INFO [Crawler.590.getAvailableElement] all - backButton size=16
2021-02-25 16:25:16 INFO [Crawler.598.getAvailableElement] all - clicked size=16
2021-02-25 16:25:16 INFO [Crawler.605.getAvailableElement] all - skiped fresh elements size=16
2021-02-25 16:25:16 INFO [Crawler.843.crawl] found MainActivity.tag=TextView.4.depth=15.text=设置 by first available element
2021-02-25 16:25:16 INFO [Crawler.728.setElementAction] set action to click
2021-02-25 16:25:16 INFO [Crawler.996.doElementAction] current element = MainActivity.tag=TextView.4.depth=15.text=设置
2021-02-25 16:25:16 INFO [Crawler.997.doElementAction] current index = 4
2021-02-25 16:25:16 INFO [Crawler.998.doElementAction] current action = click
2021-02-25 16:25:16 INFO [Crawler.999.doElementAction] current xpath = //[@resource-id=“cn.aishu.anyshare:id/action_bar_root”]//[@resource-id=“android:id/content”]//[@resource-id=“cn.aishu.anyshare:id/vp_main_container”]//[@resource-id=“cn.aishu.anyshare:id/rl_setting”]//*[@text=“设置”]
2021-02-25 16:25:16 INFO [Crawler.1000.doElementAction] current url = MainActivity
2021-02-25 16:25:16 INFO [Crawler.1001.doElementAction] current tag path = hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.view.ViewGroup/androidx.viewpager.widget.ViewPager/androidx.recyclerview.widget.RecyclerView/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.ScrollView/android.widget.LinearLayout/android.widget.RelativeLayout/android.widget.TextView
2021-02-25 16:25:16 INFO [Crawler.1002.doElementAction] current file name = MainActivity.tag=TextView.4.depth=15.text=设置
2021-02-25 16:25:16 INFO [Crawler.1071.doElementAction] need input click
2021-02-25 16:25:16 INFO [AppiumClient.53.findElementByURI] find by uri element= MainActivity.tag=TextView.4.depth=15.text=设置
2021-02-25 16:25:16 INFO [AppiumClient.245.findElementsByURI] findElementByAndroidUIAutomator new UiSelector().className(“android.widget.TextView”).text(“设置”)
2021-02-25 16:25:16 INFO [AppiumClient.60.findElementByURI] find by xpath success
2021-02-25 16:25:16 INFO [Crawler.1080.doElementAction] mark 20210225162444/3_PersonalActivity.tag=ImageView.0.depth=11.clicked.png to 20210225162444/4_MainActivity.tag=TextView.4.depth=15.text=设置.click.png
2021-02-25 16:25:16 INFO [AppiumClient.141.mark] read from 20210225162444/3_PersonalActivity.tag=ImageView.0.depth=11.clicked.png
2021-02-25 16:25:16 INFO [AppiumClient.154.mark] write png 20210225162444/3_PersonalActivity.tag=ImageView.0.depth=11.clicked.png
2021-02-25 16:25:16 INFO [AppiumClient.161.mark] ImageIO.write newImageName 20210225162444/4_MainActivity.tag=TextView.4.depth=15.text=设置.click.png
2021-02-25 16:25:17 INFO [Crawler.1095.$anonfun$doElementAction$5] click element
2021-02-25 16:25:17 INFO [AppiumClient.174.click] [[io.appium.java_client.android.AndroidDriver, Capabilities: {app=E:\appcrawler\AnyShare_All_Android_All-7.0.1.1-20210208-Release-1489.apk, appActivity=cn.aishu.anyshare.AppStartActivity, appPackage=cn.aishu.anyshare, appWaitActivity=cn.aishu.anyshare.AppStartActivity, appWaitPackage=cn.aishu.anyshare, appium=http://127.0.0.1:4723/wd/hub, automationName=UiAutomator1, databaseEnabled=false, desired={platformName=android, appium=http://127.0.0.1:4723/wd/hub, app=E:\appcrawler\AnyShare_All_Android_All-7.0.1.1-20210208-Release-1489.apk, appPackage=cn.aishu.anyshare, automationName=UiAutomator1, deviceName=demo, fullReset=false, noReset=true}, deviceManufacturer=HUAWEI, deviceModel=BLA-AL00, deviceName=LKX0218104004206, deviceScreenSize=1080x2160, deviceUDID=LKX0218104004206, fullReset=false, javascriptEnabled=true, locationContextEnabled=false, networkConnectionEnabled=true, noReset=true, platform=LINUX, platformName=Android, platformVersion=10, takesScreenshot=true, warnings={}, webStorageEnabled=false}] -> -android uiautomator: new UiSelector().className(“android.widget.TextView”).text(“设置”)]
2021-02-25 16:25:17 INFO [Crawler.1126.doElementAction] mark image exist
2021-02-25 16:25:17 INFO [Crawler.1130.doElementAction] sleep 500 for loading
2021-02-25 16:25:17 INFO [Crawler.627.refreshPage] refresh page
2021-02-25 16:25:17 INFO [AppiumClient.102.getPageSourceWithRetry] start to get page source from appium
2021-02-25 16:25:18 INFO [AppiumClient.117.$anonfun$getPageSourceWithRetry$1] xml format
2021-02-25 16:25:18 INFO [Crawler.645.parsePageContext] appName =
2021-02-25 16:25:18 INFO [Crawler.649.parsePageContext] url=SettingActivity
2021-02-25 16:25:18 INFO [Crawler.673.parsePageContext] currentContentHash=f6f0cdd0fa570d887e592f26dc03f446 lastContentHash=73498c1dc61b501701be94a3c3eae782
2021-02-25 16:25:18 INFO [Crawler.675.parsePageContext] ui change
2021-02-25 16:25:18 INFO [Crawler.931.saveDom] save to 20210225162444/4_MainActivity.tag=TextView.4.depth=15.text=设置.dom
2021-02-25 16:25:18 INFO [Crawler.953.saveScreen] start screenshot
2021-02-25 16:25:18 INFO [Crawler.956.$anonfun$saveScreen$2] ui change screenshot again
2021-02-25 16:25:19 INFO [Crawler.977.saveScreen] screenshot success
2021-02-25 16:25:19 INFO [Crawler.709.afterElementAction] backRetry=0
2021-02-25 16:25:19 INFO [Crawler.712.afterElementAction] afterElementAction eval
2021-02-25 16:25:19 INFO [ReportPlugin.36.afterElementAction] clickedElementsList size = 5
2021-02-25 16:25:19 INFO [Crawler.772.crawl]

crawl next
2021-02-25 16:25:19 INFO [Crawler.425.needReturn] urlStack=Stack(SettingActivity, MainActivity, PersonalActivity) baseUrl=List() maxDepth=20
2021-02-25 16:25:19 INFO [Crawler.834.crawl] no need to back
2021-02-25 16:25:19 INFO [Crawler.487.getAvailableElement] selected nodes size = 13
2021-02-25 16:25:19 INFO [Crawler.499.getAvailableElement] all - black elements size = 12
2021-02-25 16:25:19 INFO [Crawler.528.getAvailableElement] all - first - last elements size = 12
2021-02-25 16:25:19 INFO [Crawler.590.getAvailableElement] all - backButton size=12
2021-02-25 16:25:19 INFO [Crawler.598.getAvailableElement] all - clicked size=12
2021-02-25 16:25:19 INFO [Crawler.605.getAvailableElement] all - skiped fresh elements size=12
2021-02-25 16:25:19 INFO [Crawler.843.crawl] found SettingActivity.tag=TextView.1.depth=11.text=清除缓存 by first available element
2021-02-25 16:25:19 INFO [Crawler.728.setElementAction] set action to click
2021-02-25 16:25:19 INFO [Crawler.996.doElementAction] current element = SettingActivity.tag=TextView.1.depth=11.text=清除缓存
2021-02-25 16:25:19 INFO [Crawler.997.doElementAction] current index = 5
2021-02-25 16:25:19 INFO [Crawler.998.doElementAction] current action = click
2021-02-25 16:25:19 INFO [Crawler.999.doElementAction] current xpath = //[@resource-id=“cn.aishu.anyshare:id/action_bar_root”]//[@resource-id=“android:id/content”]//[@resource-id=“cn.aishu.anyshare:id/ll_clear_cache”]//[@text=“清除缓存”]
2021-02-25 16:25:19 INFO [Crawler.1000.doElementAction] current url = SettingActivity
2021-02-25 16:25:19 INFO [Crawler.1001.doElementAction] current tag path = hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.ScrollView/android.widget.LinearLayout/android.widget.LinearLayout/android.widget.TextView
2021-02-25 16:25:19 INFO [Crawler.1002.doElementAction] current file name = SettingActivity.tag=TextView.1.depth=11.text=清除缓存
2021-02-25 16:25:19 INFO [Crawler.1071.doElementAction] need input click
2021-02-25 16:25:19 INFO [AppiumClient.53.findElementByURI] find by uri element= SettingActivity.tag=TextView.1.depth=11.text=清除缓存
2021-02-25 16:25:19 INFO [AppiumClient.245.findElementsByURI] findElementByAndroidUIAutomator new UiSelector().className(“android.widget.TextView”).text(“清除缓存”)
2021-02-25 16:25:19 INFO [AppiumClient.60.findElementByURI] find by xpath success
2021-02-25 16:25:19 INFO [Crawler.1080.doElementAction] mark 20210225162444/4_MainActivity.tag=TextView.4.depth=15.text=设置.clicked.png to 20210225162444/5_SettingActivity.tag=TextView.1.depth=11.text=清除缓存.click.png
2021-02-25 16:25:19 INFO [AppiumClient.141.mark] read from 20210225162444/4_MainActivity.tag=TextView.4.depth=15.text=设置.clicked.png
2021-02-25 16:25:19 INFO [AppiumClient.154.mark] write png 20210225162444/4_MainActivity.tag=TextView.4.depth=15.text=设置.clicked.png
2021-02-25 16:25:19 INFO [AppiumClient.161.mark] ImageIO.write newImageName 20210225162444/5_SettingActivity.tag=TextView.1.depth=11.text=清除缓存.click.png
2021-02-25 16:25:19 INFO [Crawler.1198.stop] ctrl c interval = 0
2021-02-25 16:25:19 INFO [Crawler.917.saveLog] save log to 20210225162444/elements.yml
2021-02-25 16:25:19 INFO [Crawler.1095.$anonfun$doElementAction$5] click element
2021-02-25 16:25:19 INFO [AppiumClient.174.click] [[io.appium.java_client.android.AndroidDriver, Capabilities: {app=E:\appcrawler\AnyShare_All_Android_All-7.0.1.1-20210208-Release-1489.apk, appActivity=cn.aishu.anyshare.AppStartActivity, appPackage=cn.aishu.anyshare, appWaitActivity=cn.aishu.anyshare.AppStartActivity, appWaitPackage=cn.aishu.anyshare, appium=http://127.0.0.1:4723/wd/hub, automationName=UiAutomator1, databaseEnabled=false, desired={platformName=android, appium=http://127.0.0.1:4723/wd/hub, app=E:\appcrawler\AnyShare_All_Android_All-7.0.1.1-20210208-Release-1489.apk, appPackage=cn.aishu.anyshare, automationName=UiAutomator1, deviceName=demo, fullReset=false, noReset=true}, deviceManufacturer=HUAWEI, deviceModel=BLA-AL00, deviceName=LKX0218104004206, deviceScreenSize=1080x2160, deviceUDID=LKX0218104004206, fullReset=false, javascriptEnabled=true, locationContextEnabled=false, networkConnectionEnabled=true, noReset=true, platform=LINUX, platformName=Android, platformVersion=10, takesScreenshot=true, warnings={}, webStorageEnabled=false}] -> -android uiautomator: new UiSelector().className(“android.widget.TextView”).text(“清除缓存”)]
2021-02-25 16:25:21 INFO [FreeMind.17.stop] genereate freemind file freemind.mm
2021-02-25 16:25:21 INFO [Crawler.1207.stop] generate report finish

你把配置文件和完整的日志文件,直接上传下吧

我现在是新用户,还无法直接上传文件,所以配置文件就上传图片了,appcrawler.log是完整地复制粘贴进来的~
配置文件完整内容:
配置文件

日志文件完整内容:

2021-02-26 13:34:30 INFO [Crawler.130.start] set xpath attribute with List(name, label, value, resource-id, content-desc, text)
2021-02-26 13:34:30 INFO [Crawler.135.start] set xpath
2021-02-26 13:34:30 INFO [Crawler.89.$anonfun$loadPlugins$2] com.testerhome.appcrawler.plugin.TagLimitPlugin@440e3ce6
2021-02-26 13:34:30 INFO [Crawler.89.$anonfun$loadPlugins$2] com.testerhome.appcrawler.plugin.ReportPlugin@4527f70a
2021-02-26 13:34:30 INFO [Crawler.89.$anonfun$loadPlugins$2] com.testerhome.appcrawler.plugin.FreeMind@7132a9dc
2021-02-26 13:34:30 INFO [TagLimitPlugin.19.init] com.testerhome.appcrawler.plugin.TagLimitPlugin init
2021-02-26 13:34:30 INFO [ReportPlugin.19.init] com.testerhome.appcrawler.plugin.ReportPlugin init
2021-02-26 13:34:30 INFO [FreeMind.19.init] com.testerhome.appcrawler.plugin.FreeMind init
2021-02-26 13:34:30 INFO [ReportPlugin.21.start] reportPath=E:\appcrawler\20210226133429
2021-02-26 13:34:30 INFO [ReportPlugin.24.start] create E:\appcrawler\20210226133429/tmp/ directory
2021-02-26 13:34:30 INFO [Crawler.138.start] prepare setup Appium
2021-02-26 13:34:30 INFO [Crawler.250.setupAppium] afterPageMax=5
2021-02-26 13:34:31 INFO [Crawler.273.setupAppium] use AppiumClient
2021-02-26 13:34:31 INFO [Crawler.274.setupAppium] Map(automationName → UiAutomator1, appium → http ://127.0.0.1:4723/wd/hub, noReset → true, app → E:\appcrawler\AnyShare_All_Android_All-7.0.1.1-20210208-Release-1489.apk, appPackage → cn.aishu.anyshare, fullReset → false)
2021-02-26 13:34:37 INFO [AppiumClient.120.getDeviceInfo] screenWidth=1080 screenHeight=2160
2021-02-26 13:34:37 INFO [AppiumClient.112.appium] capture dir = E:\appcrawler.
2021-02-26 13:34:37 INFO [Crawler.278.setupAppium] com.testerhome.appcrawler.driver.AppiumClient@209f3887
2021-02-26 13:34:37 INFO [Crawler.145.start] platformName= driver=com.testerhome.appcrawler.driver.AppiumClient@209f3887
2021-02-26 13:34:37 INFO [Crawler.146.start]

AppCrawler 2.4.0 [霍格沃兹测试学院特别纪念版]
Appium 1.8.1 Java8 tested
app爬虫, 用于自动遍历测试. 支持Android和iOS, 支持真机和模拟器
项目地址: https ://github.com/seveniruby/AppCrawler
移动测试技术交流: https ://testerhome.com
联络作者: seveniruby@testerhome.com (思寒)
致谢: 晓光 泉龙 杨榕 恒温 mikezhou yaming116 沐木


2021-02-26 13:34:37 INFO [Crawler.147.start] waiting for app load
2021-02-26 13:34:43 INFO [Crawler.149.start] driver=null
2021-02-26 13:34:43 INFO [Crawler.150.start] get screen info
2021-02-26 13:34:43 INFO [AppiumClient.120.getDeviceInfo] screenWidth=1080 screenHeight=2160
2021-02-26 13:34:43 INFO [Crawler.627.refreshPage] refresh page
2021-02-26 13:34:43 INFO [AppiumClient.102.getPageSourceWithRetry] start to get page source from appium
2021-02-26 13:34:43 INFO [AppiumClient.117.$anonfun$getPageSourceWithRetry$1] xml format
2021-02-26 13:34:43 INFO [Crawler.645.parsePageContext] appName =
2021-02-26 13:34:44 INFO [Crawler.649.parsePageContext] url=MainActivity
2021-02-26 13:34:44 INFO [Crawler.673.parsePageContext] currentContentHash=77ff727ad388629a9f5830a3a4d10318 lastContentHash=77ff727ad388629a9f5830a3a4d10318
2021-02-26 13:34:44 INFO [Crawler.677.parsePageContext] ui not change
2021-02-26 13:34:44 INFO [Crawler.230.firstRefresh] first refresh
2021-02-26 13:34:44 INFO [Crawler.996.doElementAction] current element = MainActivity.tag=start.id=start
2021-02-26 13:34:44 INFO [Crawler.997.doElementAction] current index = 0
2021-02-26 13:34:44 INFO [Crawler.998.doElementAction] current action =
2021-02-26 13:34:44 INFO [Crawler.999.doElementAction] current xpath = Start-Start-0
2021-02-26 13:34:44 INFO [Crawler.1000.doElementAction] current url = MainActivity
2021-02-26 13:34:44 INFO [Crawler.1001.doElementAction] current tag path =
2021-02-26 13:34:44 INFO [Crawler.1002.doElementAction] current file name = MainActivity.tag=start.id=start
2021-02-26 13:34:44 INFO [Crawler.1014.doElementAction] just log
2021-02-26 13:34:44 INFO [Crawler.1015.doElementAction] {
“url” : “MainActivity”,
“tag” : “start”,
“id” : “start”,
“name” : “”,
“text” : “”,
“instance” : “”,
“depth” : “”,
“valid” : “true”,
“selected” : “false”,
“xpath” : “Start-Start-0”,
“ancestor” : “”,
“x” : 0,
“y” : 0,
“width” : 0,
“height” : 0
}
2021-02-26 13:34:44 INFO [Crawler.1126.doElementAction] mark image exist
2021-02-26 13:34:44 INFO [Crawler.1130.doElementAction] sleep 500 for loading
2021-02-26 13:34:44 INFO [Crawler.627.refreshPage] refresh page
2021-02-26 13:34:44 INFO [AppiumClient.102.getPageSourceWithRetry] start to get page source from appium
2021-02-26 13:34:44 INFO [AppiumClient.117.$anonfun$getPageSourceWithRetry$1] xml format
2021-02-26 13:34:44 INFO [Crawler.645.parsePageContext] appName =
2021-02-26 13:34:44 INFO [Crawler.649.parsePageContext] url=MainActivity
2021-02-26 13:34:44 INFO [Crawler.673.parsePageContext] currentContentHash=77ff727ad388629a9f5830a3a4d10318 lastContentHash=77ff727ad388629a9f5830a3a4d10318
2021-02-26 13:34:44 INFO [Crawler.677.parsePageContext] ui not change
2021-02-26 13:34:44 INFO [Crawler.931.saveDom] save to 20210226133429/0_MainActivity.tag=start.id=start.dom
2021-02-26 13:34:45 INFO [Crawler.953.saveScreen] start screenshot
2021-02-26 13:34:45 INFO [Crawler.956.$anonfun$saveScreen$2] ui change screenshot again
2021-02-26 13:34:45 INFO [Crawler.977.saveScreen] screenshot success
2021-02-26 13:34:45 INFO [Crawler.159.start] append current app name to appWhiteList
2021-02-26 13:34:45 INFO [Crawler.163.start] run steps
2021-02-26 13:34:45 INFO [Crawler.237.runSteps] run testcases
2021-02-26 13:34:46 INFO [Crawler.996.doElementAction] current element = Steps.tag=TextView.13.depth=10.id=tv_setting.text=我的
2021-02-26 13:34:46 INFO [Crawler.997.doElementAction] current index = 1
2021-02-26 13:34:46 INFO [Crawler.998.doElementAction] current action = click
2021-02-26 13:34:46 INFO [Crawler.999.doElementAction] current xpath = //[@resource-id=“cn.aishu.anyshare:id/action_bar_root”]//[@resource-id=“android:id/content”]//[@resource-id=“cn.aishu.anyshare:id/bottomBar_main”]//[@resource-id=“cn.aishu.anyshare:id/rl_setting”]//[@text=“我的” and @resource-id=“cn.aishu.anyshare:id/tv_setting”]
2021-02-26 13:34:46 INFO [Crawler.1000.doElementAction] current url = Steps
2021-02-26 13:34:46 INFO [Crawler.1001.doElementAction] current tag path = hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.view.ViewGroup/android.widget.LinearLayout/android.widget.RelativeLayout/android.widget.TextView
2021-02-26 13:34:46 INFO [Crawler.1002.doElementAction] current file name = Steps.tag=TextView.13.depth=10.id=tv_setting.text=我的
2021-02-26 13:34:46 INFO [Crawler.1071.doElementAction] need input click
2021-02-26 13:34:46 INFO [AppiumClient.53.findElementByURI] find by uri element= Steps.tag=TextView.13.depth=10.id=tv_setting.text=我的
2021-02-26 13:34:46 INFO [AppiumClient.245.findElementsByURI] findElementByAndroidUIAutomator new UiSelector().className(“android.widget.TextView”).text(“我的”).resourceId(“cn.aishu.anyshare:id/tv_setting”)
2021-02-26 13:34:46 INFO [AppiumClient.60.findElementByURI] find by xpath success
2021-02-26 13:34:46 INFO [Crawler.1080.doElementAction] mark 20210226133429/0_MainActivity.tag=start.id=start.clicked.png to 20210226133429/1_Steps.tag=TextView.13.depth=10.id=tv_setting.text=我的.click.png
2021-02-26 13:34:46 INFO [AppiumClient.141.mark] read from 20210226133429/0_MainActivity.tag=start.id=start.clicked.png
2021-02-26 13:34:46 INFO [AppiumClient.154.mark] write png 20210226133429/0_MainActivity.tag=start.id=start.clicked.png
2021-02-26 13:34:46 INFO [AppiumClient.161.mark] ImageIO.write newImageName 20210226133429/1_Steps.tag=TextView.13.depth=10.id=tv_setting.text=我的.click.png
2021-02-26 13:34:46 INFO [Crawler.1095.$anonfun$doElementAction$5] click element
2021-02-26 13:34:46 INFO [AppiumClient.174.click] [[io.appium.java_client.android.AndroidDriver, Capabilities: {app=E:\appcrawler\AnyShare_All_Android_All-7.0.1.1-20210208-Release-1489.apk, appActivity=cn.aishu.anyshare.AppStartActivity, appPackage=cn.aishu.anyshare, appWaitActivity=cn.aishu.anyshare.AppStartActivity, appWaitPackage=cn.aishu.anyshare, appium=http://127.0.0.1:4723/wd/hub, automationName=UiAutomator1, databaseEnabled=false, desired={platformName=android, appium=http://127.0.0.1:4723/wd/hub, app=E:\appcrawler\AnyShare_All_Android_All-7.0.1.1-20210208-Release-1489.apk, appPackage=cn.aishu.anyshare, automationName=UiAutomator1, deviceName=demo, fullReset=false, noReset=true}, deviceManufacturer=HUAWEI, deviceModel=BLA-AL00, deviceName=LKX0218104004206, deviceScreenSize=1080x2160, deviceUDID=LKX0218104004206, fullReset=false, javascriptEnabled=true, locationContextEnabled=false, networkConnectionEnabled=true, noReset=true, platform=LINUX, platformName=Android, platformVersion=10, takesScreenshot=true, warnings={}, webStorageEnabled=false}] → -android uiautomator: new UiSelector().className(“android.widget.TextView”).text(“我的”).resourceId(“cn.aishu.anyshare:id/tv_setting”)]
2021-02-26 13:34:46 INFO [Crawler.1126.doElementAction] mark image exist
2021-02-26 13:34:46 INFO [Crawler.1130.doElementAction] sleep 500 for loading
2021-02-26 13:34:47 INFO [Crawler.627.refreshPage] refresh page
2021-02-26 13:34:47 INFO [AppiumClient.102.getPageSourceWithRetry] start to get page source from appium
2021-02-26 13:34:47 INFO [AppiumClient.117.$anonfun$getPageSourceWithRetry$1] xml format
2021-02-26 13:34:47 INFO [Crawler.645.parsePageContext] appName =
2021-02-26 13:34:47 INFO [Crawler.649.parsePageContext] url=MainActivity
2021-02-26 13:34:47 INFO [Crawler.673.parsePageContext] currentContentHash=73498c1dc61b501701be94a3c3eae782 lastContentHash=77ff727ad388629a9f5830a3a4d10318
2021-02-26 13:34:47 INFO [Crawler.675.parsePageContext] ui change
2021-02-26 13:34:47 INFO [Crawler.931.saveDom] save to 20210226133429/1_Steps.tag=TextView.13.depth=10.id=tv_setting.text=我的.dom
2021-02-26 13:34:47 INFO [Crawler.953.saveScreen] start screenshot
2021-02-26 13:34:47 INFO [Crawler.956.$anonfun$saveScreen$2] ui change screenshot again
2021-02-26 13:34:48 INFO [Crawler.977.saveScreen] screenshot success
2021-02-26 13:34:48 INFO [Crawler.996.doElementAction] current element = Steps.tag=LinearLayout.6.depth=15
2021-02-26 13:34:48 INFO [Crawler.997.doElementAction] current index = 2
2021-02-26 13:34:48 INFO [Crawler.998.doElementAction] current action = click
2021-02-26 13:34:48 INFO [Crawler.999.doElementAction] current xpath = //
[@resource-id=“cn.aishu.anyshare:id/action_bar_root”]//[@resource-id=“android:id/content”]//[@resource-id=“cn.aishu.anyshare:id/vp_main_container”]//*[@resource-id=“cn.aishu.anyshare:id/ll_personal_userinfo”]
2021-02-26 13:34:48 INFO [Crawler.1000.doElementAction] current url = Steps
2021-02-26 13:34:48 INFO [Crawler.1001.doElementAction] current tag path = hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.view.ViewGroup/androidx.viewpager.widget.ViewPager/androidx.recyclerview.widget.RecyclerView/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.ScrollView/android.widget.LinearLayout/android.widget.LinearLayout/android.widget.LinearLayout
2021-02-26 13:34:48 INFO [Crawler.1002.doElementAction] current file name = Steps.tag=LinearLayout.6.depth=15
2021-02-26 13:34:48 INFO [Crawler.1071.doElementAction] need input click
2021-02-26 13:34:48 INFO [AppiumClient.53.findElementByURI] find by uri element= Steps.tag=LinearLayout.6.depth=15
2021-02-26 13:34:48 INFO [AppiumClient.245.findElementsByURI] findElementByAndroidUIAutomator new UiSelector().className(“android.widget.LinearLayout”).instance(6)
2021-02-26 13:34:48 INFO [AppiumClient.60.findElementByURI] find by xpath success
2021-02-26 13:34:48 INFO [Crawler.1080.doElementAction] mark 20210226133429/1_Steps.tag=TextView.13.depth=10.id=tv_setting.text=我的.clicked.png to 20210226133429/2_Steps.tag=LinearLayout.6.depth=15.click.png
2021-02-26 13:34:48 INFO [AppiumClient.141.mark] read from 20210226133429/1_Steps.tag=TextView.13.depth=10.id=tv_setting.text=我的.clicked.png
2021-02-26 13:34:48 INFO [AppiumClient.154.mark] write png 20210226133429/1_Steps.tag=TextView.13.depth=10.id=tv_setting.text=我的.clicked.png
2021-02-26 13:34:48 INFO [AppiumClient.161.mark] ImageIO.write newImageName 20210226133429/2_Steps.tag=LinearLayout.6.depth=15.click.png
2021-02-26 13:34:49 INFO [Crawler.1095.$anonfun$doElementAction$5] click element
2021-02-26 13:34:49 INFO [AppiumClient.174.click] [[io.appium.java_client.android.AndroidDriver, Capabilities: {app=E:\appcrawler\AnyShare_All_Android_All-7.0.1.1-20210208-Release-1489.apk, appActivity=cn.aishu.anyshare.AppStartActivity, appPackage=cn.aishu.anyshare, appWaitActivity=cn.aishu.anyshare.AppStartActivity, appWaitPackage=cn.aishu.anyshare, appium=http://127.0.0.1:4723/wd/hub, automationName=UiAutomator1, databaseEnabled=false, desired={platformName=android, appium=http://127.0.0.1:4723/wd/hub, app=E:\appcrawler\AnyShare_All_Android_All-7.0.1.1-20210208-Release-1489.apk, appPackage=cn.aishu.anyshare, automationName=UiAutomator1, deviceName=demo, fullReset=false, noReset=true}, deviceManufacturer=HUAWEI, deviceModel=BLA-AL00, deviceName=LKX0218104004206, deviceScreenSize=1080x2160, deviceUDID=LKX0218104004206, fullReset=false, javascriptEnabled=true, locationContextEnabled=false, networkConnectionEnabled=true, noReset=true, platform=LINUX, platformName=Android, platformVersion=10, takesScreenshot=true, warnings={}, webStorageEnabled=false}] → -android uiautomator: new UiSelector().className(“android.widget.LinearLayout”).instance(6)]
2021-02-26 13:34:49 INFO [Crawler.1126.doElementAction] mark image exist
2021-02-26 13:34:49 INFO [Crawler.1130.doElementAction] sleep 500 for loading
2021-02-26 13:34:49 INFO [Crawler.627.refreshPage] refresh page
2021-02-26 13:34:49 INFO [AppiumClient.102.getPageSourceWithRetry] start to get page source from appium
2021-02-26 13:34:49 INFO [AppiumClient.117.$anonfun$getPageSourceWithRetry$1] xml format
2021-02-26 13:34:49 INFO [Crawler.645.parsePageContext] appName =
2021-02-26 13:34:50 INFO [Crawler.649.parsePageContext] url=PersonalActivity
2021-02-26 13:34:50 INFO [Crawler.673.parsePageContext] currentContentHash=f0af1eb3e7f6c1325c77816284265a41 lastContentHash=73498c1dc61b501701be94a3c3eae782
2021-02-26 13:34:50 INFO [Crawler.675.parsePageContext] ui change
2021-02-26 13:34:50 INFO [Crawler.931.saveDom] save to 20210226133429/2_Steps.tag=LinearLayout.6.depth=15.dom
2021-02-26 13:34:50 INFO [Crawler.953.saveScreen] start screenshot
2021-02-26 13:34:50 INFO [Crawler.956.$anonfun$saveScreen$2] ui change screenshot again
2021-02-26 13:34:51 INFO [Crawler.977.saveScreen] screenshot success
2021-02-26 13:34:51 INFO [Crawler.627.refreshPage] refresh page
2021-02-26 13:34:51 INFO [AppiumClient.102.getPageSourceWithRetry] start to get page source from appium
2021-02-26 13:34:51 INFO [AppiumClient.117.$anonfun$getPageSourceWithRetry$1] xml format
2021-02-26 13:34:51 INFO [Crawler.645.parsePageContext] appName =
2021-02-26 13:34:51 INFO [Crawler.649.parsePageContext] url=PersonalActivity
2021-02-26 13:34:51 INFO [Crawler.673.parsePageContext] currentContentHash=f0af1eb3e7f6c1325c77816284265a41 lastContentHash=f0af1eb3e7f6c1325c77816284265a41
2021-02-26 13:34:51 INFO [Crawler.677.parsePageContext] ui not change
2021-02-26 13:34:51 INFO [Crawler.1213.handleCtrlC] add shutdown hook
2021-02-26 13:34:51 INFO [Crawler.772.crawl]

crawl next
2021-02-26 13:34:51 INFO [Crawler.425.needReturn] urlStack=Stack(PersonalActivity) baseUrl=List() maxDepth=20
2021-02-26 13:34:51 INFO [Crawler.834.crawl] no need to back
2021-02-26 13:34:51 INFO [Crawler.487.getAvailableElement] selected nodes size = 2
2021-02-26 13:34:51 INFO [Crawler.499.getAvailableElement] all - black elements size = 2
2021-02-26 13:34:51 INFO [Crawler.528.getAvailableElement] all - first - last elements size = 2
2021-02-26 13:34:51 INFO [Crawler.590.getAvailableElement] all - backButton size=2
2021-02-26 13:34:51 INFO [Crawler.598.getAvailableElement] all - clicked size=2
2021-02-26 13:34:51 INFO [Crawler.605.getAvailableElement] all - skiped fresh elements size=2
2021-02-26 13:34:51 INFO [Crawler.843.crawl] found PersonalActivity.tag=ImageView.0.depth=11 by first available element
2021-02-26 13:34:51 INFO [Crawler.728.setElementAction] set action to click
2021-02-26 13:34:51 INFO [Crawler.996.doElementAction] current element = PersonalActivity.tag=ImageView.0.depth=11
2021-02-26 13:34:51 INFO [Crawler.997.doElementAction] current index = 3
2021-02-26 13:34:51 INFO [Crawler.998.doElementAction] current action = click
2021-02-26 13:34:51 INFO [Crawler.999.doElementAction] current xpath = //[@resource-id=“cn.aishu.anyshare:id/action_bar_root”]//[@resource-id=“android:id/content”]//*[@resource-id=“cn.aishu.anyshare:id/tb_personal”]
2021-02-26 13:34:51 INFO [Crawler.1000.doElementAction] current url = PersonalActivity
2021-02-26 13:34:51 INFO [Crawler.1001.doElementAction] current tag path = hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.LinearLayout/android.widget.ImageView
2021-02-26 13:34:51 INFO [Crawler.1002.doElementAction] current file name = PersonalActivity.tag=ImageView.0.depth=11
2021-02-26 13:34:51 INFO [Crawler.1071.doElementAction] need input click
2021-02-26 13:34:51 INFO [AppiumClient.53.findElementByURI] find by uri element= PersonalActivity.tag=ImageView.0.depth=11
2021-02-26 13:34:51 INFO [AppiumClient.245.findElementsByURI] findElementByAndroidUIAutomator new UiSelector().className(“android.widget.ImageView”).instance(0)
2021-02-26 13:34:51 INFO [AppiumClient.60.findElementByURI] find by xpath success
2021-02-26 13:34:51 INFO [Crawler.1080.doElementAction] mark 20210226133429/2_Steps.tag=LinearLayout.6.depth=15.clicked.png to 20210226133429/3_PersonalActivity.tag=ImageView.0.depth=11.click.png
2021-02-26 13:34:51 INFO [AppiumClient.141.mark] read from 20210226133429/2_Steps.tag=LinearLayout.6.depth=15.clicked.png
2021-02-26 13:34:51 INFO [AppiumClient.154.mark] write png 20210226133429/2_Steps.tag=LinearLayout.6.depth=15.clicked.png
2021-02-26 13:34:51 INFO [AppiumClient.161.mark] ImageIO.write newImageName 20210226133429/3_PersonalActivity.tag=ImageView.0.depth=11.click.png
2021-02-26 13:34:51 INFO [Crawler.1095.$anonfun$doElementAction$5] click element
2021-02-26 13:34:51 INFO [AppiumClient.174.click] [[io.appium.java_client.android.AndroidDriver, Capabilities: {app=E:\appcrawler\AnyShare_All_Android_All-7.0.1.1-20210208-Release-1489.apk, appActivity=cn.aishu.anyshare.AppStartActivity, appPackage=cn.aishu.anyshare, appWaitActivity=cn.aishu.anyshare.AppStartActivity, appWaitPackage=cn.aishu.anyshare, appium=http://127.0.0.1:4723/wd/hub, automationName=UiAutomator1, databaseEnabled=false, desired={platformName=android, appium=http://127.0.0.1:4723/wd/hub, app=E:\appcrawler\AnyShare_All_Android_All-7.0.1.1-20210208-Release-1489.apk, appPackage=cn.aishu.anyshare, automationName=UiAutomator1, deviceName=demo, fullReset=false, noReset=true}, deviceManufacturer=HUAWEI, deviceModel=BLA-AL00, deviceName=LKX0218104004206, deviceScreenSize=1080x2160, deviceUDID=LKX0218104004206, fullReset=false, javascriptEnabled=true, locationContextEnabled=false, networkConnectionEnabled=true, noReset=true, platform=LINUX, platformName=Android, platformVersion=10, takesScreenshot=true, warnings={}, webStorageEnabled=false}] → -android uiautomator: new UiSelector().className(“android.widget.ImageView”).instance(0)]
2021-02-26 13:34:52 INFO [Crawler.1198.stop] ctrl c interval = 0
2021-02-26 13:34:52 INFO [Crawler.917.saveLog] save log to 20210226133429/elements.yml
2021-02-26 13:34:52 INFO [FreeMind.17.stop] genereate freemind file freemind.mm
2021-02-26 13:34:52 INFO [Crawler.1207.stop] generate report finish

目前最新的版本是2.6吗,我现在用的是2.4,有2.6的下载地址吗