【问题标题】:How to running XCUItest in Firebase testlab via fastlane?如何通过 fastlane 在 Firebase 测试实验室中运行 XCUItest?
【发布时间】:2022-01-22 02:37:26
【问题描述】:

在 firebase 中使用 testlab,我希望自动测试 ui 测试。为了将此流程集成到 CI/CD 流程中,我将下面的通道添加到我的 fastfile 中。但我收到错误“找不到动作、车道或变量‘firebase_test_lab_ios_xctest’”。错误的原因可能是什么?

desc "Firebase Test"
   lane :test do |options|
     scan(
       clean: true,
       skip_detect_devices: true,
       build_for_testing: true,
       sdk: 'iphoneos',
       should_zip_build_products: true
     )
    
     firebase_test_lab_ios_xctest(
       gcp_project: 'xxxx-24b103', #Google Cloud project name
       devices: [
         {
           ios_model_id: 'iphone11',
           ios_version_id: '14.5',
           locale: 'en_US',
           orientation: 'portrait'
         }
        ]
      )
    end

【问题讨论】:

    标签: swift fastlane firebase-test-lab


    【解决方案1】:

    您需要先安装fastlane-plugin-firebase_test_lab。运行this command

    gem install fastlane-plugin-firebase_test_lab
    

    【讨论】:

    • 我添加了它,但我一直收到同样的错误。我写的那条车道会不会有缺陷或错误?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-11
    相关资源
    最近更新 更多