Hi,
I tried to run the sample from :
and get that exception:
System.Exception : ApkFile or InstalledApp has not been configured.
bei Xamarin.UITest.Configuration.AndroidAppConfiguration.Verify()
bei Xamarin.UITest.Android.LocalAndroidAppInitializer.VerifyConfiguration()
bei Xamarin.UITest.Android.AndroidApp..ctor(IAndroidAppConfiguration appConfiguration)
bei Xamarin.UITest.Configuration.AndroidAppConfigurator.StartApp(AppDataMode appDataMode)
bei CreditCardValidator.Droid.UITests.Tests.BeforeEachTest() in d:\tmp\CreditCardValidator.Droid\CreditCardValidator.Droid.UITests\Tests.cs:Zeile 19.
WARNING: Tests created using NUnit 3.5.0.0 cannot be uploaded to Test Cloud. The recommended version is 2.6.4.
Full log file: C:\Users\brunneer\AppData\Local\Temp\uitest\log-2016-10-10_02-29-26-454.txt
Skipped IDE integration, connection failed.
Any idea?
thanks,
Eric
@EricBrunner . Are you saying this failure occurs if we run on Debug Mode?. I am currently facing the same failure.
Answers
Hi @EricBrunner ,
Xamarin.UITest works just with nunit 2.6.3. (and you have installed nunit 3.5.0).
In the file "packages.config", modified the line :
and refresh your package in the Reference's file
Anthony M.
Hi Anthony,
Thanks but that was not the only issue I had to solve. The sample from here doesn't work.
I had to do that:
I had to Configure it like that:
[TestFixture]
public class Tests
{
AndroidApp app;
}
So now it is working on a real device in Release Mode. I still struggle with that I running on an Emulator.
thanks
Eric
@EricBrunner . Are you saying this failure occurs if we run on Debug Mode?. I am currently facing the same failure.
@Arvind.5724 Yeah. I ran it in debug mode.
EricBrunnter, thank you very much.
Your solution worked for me.
Regards MarekQ
@MarekQ Great !!!
Thanks Eric Brunner , its working
I am running it in release mode still I am getting below error:
Potential Android SDK location: C:\Users\Malik\AppData\Local\Android\android-sdk - Valid SDK. [ Source: ANDROID_HOME ]
\MeethaqWallet\MeethaqWallet\bin\Release\MeethaqWallet.DLL.
Using Android SDK: C:\Users\Malik\AppData\Local\Android\android-sdk
Using JDK: C:\Program Files\Java\jdk1.8.0_151 [ Source: JAVA_HOME ]
Attempting IDE connection for Android:
No named pipe value found in environment variable XTC_IDE.
Skipped IDE integration, connection failed.
Do we need to change something here (in below screen) ?
Screen shot
I have been able to run UITest for Android in VS 2017 (Windows) in debug mode on the VS Emulator as follows:
I hope this will help someone.