iOS自动化测试-XCTest与Katalon

时间:2019-03-11 07:30:33

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

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

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

当前,我们只有iOS版本。但是将来,我们可能必须为Android开发此应用。另外,我们需要将应用程序中显示的值与应用程序的数据库或桌面版本中的值进行比较。

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

1 个答案:

答案 0 :(得分: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

您必须选择哪种解决方案更适合您,尽管我不喜欢第三方测试收费(因为设置正确等会很痛苦),但Katalon在您的情况下可能更适合您(iOS +网络+ Android)。 希望这对您有帮助:-)