appcrawler ios系统执行后,but we could not find any '.apk,.apks'

UnknownError: An unknown server-side error occurred while processing the command. Original error: App unzipped OK, but we could not find any ‘.apk,.apks’ bundles in it. Make sure your archive contains at least one package having ‘.apk,.apks’ extensions

你的配置文件怎么写的

你用appium试试这个包,这个报错是appium的报错。

java -jar /Users/yangpengli/APP稳定性测试/APP稳定性测试工具/appcrawler/appcrawler-2.7.4-hogwarts.jar -a /Users/yangpengli/feifanqiche_qa.ipa

你是不是写成了android的测试,贴下配置

没有使用配置文件,就只使用了jar包 -a命令启动了; java -jar /Users/yangpengli/APP稳定性测试/APP稳定性测试工具/appcrawler/appcrawler-2.7.4-hogwarts.jar -a /Users/yangpengli/feifanqiche_qa.ipa;思寒老师, 请问有ios的配置文件模板吗?

可以用 java -jar appcrawlerxxx.jar --demo 生成demo文件,然后修改 automationName 改成 XCUITest,这些和appium做ios自动化参数是一样的

将apppackage换成bundleId可以了

有iOS的模版吗?

start:

  • appium:
    server: http://127.0.0.1:4723/wd/hub
    caps:
    platformName: ios
    bundleId: xxxxxx
    automationName: XCUITest
    deviceName: iPhone
    udid: ${udid}
    wdaLocalPort: ${wdaLocalPort}
    xcodeOrgId: xxxxx
    xcodeSigningId: iPhone Developer
    noReset: true
    usePrebuiltWDA: true
    login:
  • xpath: //*[@type=“XCUIElementTypeTextField”]
  • clear:
  • send_keys: ${name}
  • xpath: //*[@type=“XCUIElementTypeSecureTextField”]
  • send_keys: ${password}
  • xpath: //*[@type=“XCUIElementTypeButton” and @label=“登 录”]
  • click:

my_application:

我的应用

  • log: $(wdaLocalPort)
  • xpaths: //*[@label=“我的应用”]//…/…/XCUIElementTypeCell
  • return: ele_num
  • len: [$(ele_num)]
  • return: len_num
  • log: ${len_num}
  • if: ‘${true if len_num > 1}’