我对Xamarin Test Cloud有疑问。我的项目文件夹中有app,名称为“anyapp.apk”。我的设备与其他项目运行良好。而且我看到该应用程序在设备上加载,而且任何测试都没有运行。该应用程序测试了samsung g 3和nexus 6.如果有人在运行测试期间点击应用程序测试通过。
我的测试设置
Tests.cs
using System;
using System.IO;
using System.Linq;
using NUnit.Framework;
using Xamarin.UITest;
using Xamarin.UITest.Android;
using Xamarin.UITest.Queries;
namespace AnyAppAndroid_Tests
{
[TestFixture]
public class Tests
{
AndroidApp app;
[SetUp]
public void BeforeEachTest ()
{
app = ConfigureApp
.Android
.ApiKey("my_key")
.ApkFile ("anyapp.apk")
.StartApp ();
}
[Test]
public void AppLaunches ()
{
app.Screenshot ("First screen.");
}
}
}
我的例外
SetUp : System.TimeoutException : Timed out waiting...
Trace of stack
at Xamarin.UITest.Shared.WaitForHelper.WaitFor (System.Func`1 predicate, System.String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) [0x00000] in <filename unknown>:0
at Xamarin.UITest.Android.AndroidApp..ctor (IAndroidAppConfiguration appConfiguration) [0x00000] in <filename unknown>:0
at Xamarin.UITest.Configuration.AndroidAppConfigurator.StartApp (AppDataMode appDataMode) [0x00000] in <filename unknown>:0
at Anyapp_Tests.Tests.BeforeEachTest () [0x0001c] in /Users/myuser/Desktop/projects/app/anyapp/AnyAppAndroid_Tests/AnyAppAndroid_Tests/Tests.cs:28
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00054] in /private/tmp/source-mono-mac-4.0.0-branch-c5sr2/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.2/mcs/class/corlib/System.Reflection/MonoMethod.cs:230
我与互联网有联系。我的线路运行良好和设备(我在两个设备上测试)。我尝试了接近xamarin并反复开始几次。
干杯