Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ritalee11 opened this issue Aug 4, 2022 · 0 comments

Comments

@ritalee11
Copy link

ritalee11 commented Aug 4, 2022

`参数信息

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant