Xamarin-UITest-CrossPlatform:使用 Autofac IoC 为 iOS 和 Android 编写的跨平台测试示例

时间:2021-07-06 21:56:50
【文件属性】:
文件名称:Xamarin-UITest-CrossPlatform:使用 Autofac IoC 为 iOS 和 Android 编写的跨平台测试示例
文件大小:22.4MB
文件格式:ZIP
更新时间:2021-07-06 21:56:50
C# 使用 Xamarin.UITest 的跨平台测试示例 此示例使用 Xamarin Store 应用程序的 iOS 和 Android 版本以及一些使跨平台测试变得容易的关键因素。 此示例使用在需要的地方注入 IApp。 这可以防止您不得不到处传递它。 它还允许测试套件根据当前平台环境为 iOS 或 Android 配置自身。 查找 ApiKey.cs 并从 Xamarin 测试云帐户设置页面添加您的 API 密钥。 您可以为 iOS 应用程序和 Android 应用程序上传完全相同的测试集,而无需更改任何代码。 在 Test.cs 中有一个名为localPlatform的变量。 根据您的本地开发偏好选择 iOS 或 Android。
【文件预览】:
Xamarin-UITest-CrossPlatform-master
----XamStore.XPlat.Tests()
--------ContainerConfig.cs(1KB)
--------packages.config(275B)
--------Pages()
--------Environment.cs(540B)
--------Test.cs(2KB)
--------XamarinStoreiOS.app()
--------XamarinStoreiOS.ipa(5.15MB)
--------com.xamarin.XamStore.apk(8.77MB)
--------ApiKey.cs(130B)
--------XamStore.XPlat.Tests.csproj(3KB)
--------PagePlatform.cs(88B)
----XamStore.XPlat.Tests.sln.DotSettings(414B)
----XamStore.XPlat.Tests.userprefs(1KB)
----.gitignore(3KB)
----XamStore.XPlat.Tests.sln(991B)
----README.md(792B)

网友评论