【问题标题】:iOS Automated Tests - XCTest vs KataloniOS 自动化测试 - XCTest vs Katalon
【发布时间】:2024-05-18 22:40:02
【问题描述】:

我们正在开发一个 Xamarin iOS 应用程序,我们需要自动化测试用例。目前有两种选择。 1. Xcode UI 测试 2.卡塔隆

在选择工具之前,我想了解一下您对上述工具的个人经验或建议。

目前,我们只有 iOS 版本。但在未来,我们可能不得不为 Android 做这个应用程序。此外,我们需要将 App 中显示的值与数据库或桌面版 App 中的值进行比较。

另一件事是,我们需要在云设备中运行这些测试(可能在 Visual Studio 应用中心)

【问题讨论】:

    标签: xcode-ui-testing katalon-studio katalon-recorder


    【解决方案1】:

    好吧,让我们来看看你的两个选择的一些规格

    XCTest:

    positive points:
    
    - native tool (but you obv don't care about native tools, since your app is in Xamarin)
    - a lot of support from forums/Apple etc
    - free
    - easy to use, if you have native app
    - easy to add to CI pipeline
    
    negative points:
    
    - no support for Android
    - not supporting desktop-mobile comparison (it may be done with some 3rd party tools tho )
    

    卡塔隆

    positive points:
    
    - supports iOS and Android (beware, that this does not mean, you can use the same code - you will still need to write two sets of methods etc, but Katalon can be used for Android, XCTest not)
    - free - to some point (paid support)
    - in theory supports the thing with mobile + web data comparison (not gonna be easy, but surely possible)  
    
    
    negative points:
    
    - not as much support - forums etc
    - writing complicated methods is not very easy (but if you have app with a few views, than it will work well)
    - implementation to CI is harder
    

    您必须选择更适合您的解决方案,虽然我不喜欢 3rd 方测试收费(因为正确设置它很痛苦等),但 Katalon 在您的场景中可能更适合您(iOS +网络 + 也许是安卓)。 希望这对你有帮助:-)

    【讨论】: