Forum Xamarin Test Cloud (Read Only)

About 3rd-party app use xamarin.uitest

I'm a newbie here. I'm just want to test a app which were downloaded from internet and then installed on my device.
when my code set :
app = ConfigureApp
.LaunchableActivity("apk launchable activity")
//.InstalledApp("package name")
.ApkFile(@apk path)

I can 100% confirm that parameters are right, but when I debug the test case:
public void AppLaunches()
app.Screenshot("First screen.");


It always throw me an exception:

发生了 System.Exception
Message=Timed out waiting for result of ClearAppData2
在 Xamarin.UITest.Shared.Android.Commands.CommandAdbClearAppData.ExecuteLocally(Func2 adbShell) 在 Xamarin.UITest.Shared.Android.Commands.CommandAdbClearAppData.Execute(AdbProcessRunner processRunner) 在 Xamarin.UITest.Shared.Execution.Executor.Execute[TDep1](ICommand1 command)
在 Xamarin.UITest.Shared.Android.LocalAndroidAppLifeCycle.EnsureInstalled(ApkFile appApkFile, ApkFile testServerApkFile)
在 Xamarin.UITest.Android.AndroidApp..ctor(IAndroidAppConfiguration appConfiguration, IExecutor executor)
在 Xamarin.UITest.Configuration.AndroidAppConfigurator.StartApp(AppDataMode appDataMode)
在 UITest1.Tests.BeforeEachTest() 在 C:\Users\hanzy2\source\repos\UITest1\UITest1\Tests.cs 中: 第 36 行


Xamarin.UITest Information: 0 : Skipping IDE integration as important properties are configured. To force IDE integration, add .PreferIdeSettings() to ConfigureApp.
Xamarin.UITest Information: 0 : Android test running Xamarin.UITest version: 2.1.3
“vstest.executionengine.x86.exe”(CLR v4.0.30319: test-domain-UITest1.dll): 已加载“C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\mscorlib.resources\v4.0_4.0.0.0_zh-Hans_b77a5c561934e089\mscorlib.resources.dll”。模块已生成,不包含符号。
Xamarin.UITest Information: 0 : Initializing Android app on device 0123456789ABCDEF with apk: d:\apk\gong_4.6.2.485.apk
Xamarin.UITest Information: 0 : Skipping local screenshots. Can be enabled with EnableScreenshots() when configuring app.

Xamarin.UITest Information: 0 : Signing apk with Xamarin keystore.

it show me a warning dialog menas singed check failed.

My Question is : Can I use Xamarin.Uitest to test app which I dont have any source code? of courese I can't build it and resign it at all.

thanks ,please help


Sign In or Register to comment.