Abhijith
Abhijith

Reputation: 156

Xamerin UI Test project is not executing in Visual Studio 2017

I'm trying to automate UI testing of Xamarin forms (Android app emulator) using Xamarin.UI.Tests and Visual Studio 2017.

I created a "Xamarin.UI.Test" project and write a test cases. But Xamarin.UI.Tests are not running when I trying to run the test using visual studio 2017. When trying to run "debug all test" project will start in debug mode and stop immediately. There is no error in error console or output window of VS2017

Upvotes: 0

Views: 685

Answers (1)

Abhijith
Abhijith

Reputation: 156

Test not running issue is fix.

I have added ".apk" file path in Test setup method. Now the Test will run and got another error regarding the android sdk not found.

        [SetUp]
        public void BeforeEachTest()
        {
            app = ConfigureApp
              .Android
              .ApkFile(@"..\..\..\HelloWorldXamarinForm\HelloWorldXamarinForm.Android\
                        bin\Debug\App.HelloWorldXamarinForm.apk")
              .StartApp();
        }

Hope this solution will fix the Android SDK path issue

Upvotes: 1

Related Questions