Skip to content

设置安卓相关参数后,运行appcrawler报错,执行命令 java -jar appcrawler-2.7.4-hogwarts.jar -c cb_base.yml #39

@ritalee11

Description

@ritalee11

`参数信息

logLevel: "TRACE"
saveScreen: true
showCancel: true
reportTitle: AppCrawler_cb内部版
tagLimitMax: 500
currentDriver: "android"
maxTime: 10800
capability:
newCommandTimeout: 120
launchTimeout: 120000
platformVersion: "12"
platformName: "Android"
autoWebview: "false"
autoLaunch: "true"
noReset: "false"
androidCapability:
deviceName: "8BPY11Y2K"
appPackage: "com.opera.cryptobrowser.test" #"crypto-browser-0.15.1-35bf9be.apk"
appActivity: ".MainActivity"
app: “”
appium: "http://127.0.0.1:4723/wd/hub"
fullReset: false
noReset: true
automationName: uiautomator2

maxDepth: 8
selectedList:

  • xpath: //*[@Class='android.widget.ImageButton']
  • xpath: //*[@Class='android.view.View']
  • xpath: //*[@Class='android.widget.TextView']
  • xpath: //android.view.View[@content-desc="More coins"]/android.widget.TextView
  • xpath: //android.widget.Button[@text="編輯"]
  • xpath: //android.widget.Button[@text="價格"]
  • xpath: //android.widget.Button[@text="活動"]
    tagLimit:
  • xpath: //*[@Clickable='true']
    count: 5
  • xpath: //*[@Clickable='true']
    count: 5

afterElementWaitDescription: "在遍历每个控件之后默认等待的时间,用于等待新页面加载"
afterElementWait: 500
afterAllMaxDescription: "afterAll的最大重试次数,比如连续滑动2次都没新元素即取消"
afterAllMax: 2
reportTitleDescription: "报告的title"
reportTitle: "AppCrawler"
resultDirDescription: "结果目录,如果为空会自动创建对应时间戳_报名的结果目录"
resultDir: ""`

报错信息
Capabilities {app: , appium: http://127.0.0.1:4723/wd/hub, autoLaunch: true, autoWebview: false, deviceName: demo, launchTimeout: 120000, newCommandTimeout: 120, noReset: false, platformName: Android, platformVersion: 12}
Exception in thread "main" scala.MatchError: [app, appium, autoLaunch, autoWebview, deviceName, launchTimeout, newCommandTimeout, noReset, platformName, platformVersion] (of class java.util.Collections$UnmodifiableSet)
at com.ceshiren.appcrawler.driver.AppiumClient.(AppiumClient.scala:46)
at com.ceshiren.appcrawler.core.Crawler.setupDriver(Crawler.scala:347)
at com.ceshiren.appcrawler.core.Crawler.setupCrawler(Crawler.scala:301)
at com.ceshiren.appcrawler.core.Crawler.start(Crawler.scala:138)
at com.ceshiren.appcrawler.AppCrawler$.startCrawl(AppCrawler.scala:319)
at com.ceshiren.appcrawler.AppCrawler$.parseParams(AppCrawler.scala:286)
at com.ceshiren.appcrawler.AppCrawler$.main(AppCrawler.scala:73)
at com.ceshiren.appcrawler.AppCrawler.main(AppCrawler.scala)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions