Xamarin.iOS UITest Visual studio

EmyMa341EmyMa341 USMember ✭✭
edited April 2016 in Xamarin.iOS

Hi coders,

I am using following setup

1) iOS, Android App development on visual studio on Mac with windows running in virtual machine.

2) I have these projects (Shared) in my solution
a) Xamarin.Android
b) Xamarin.Android.UItest
c) Xamarin.Android.UnitTest

d) Xamarin.iOS
e) Xamarin.iOS.UITest

For Android everything works fine but in iOS it says

Result Message: SetUp : System.Exception : iOS tests are not supported on Windows. Result StackTrace: at Xamarin.UITest.iOS.iOSApp..ctor(IiOSAppConfiguration appConfiguration) at Xamarin.UITest.Configuration.iOSAppConfigurator.StartApp(AppDataMode appDataMode)

So this link says ( https://developer.xamarin.com/guides/testcloud/uitest/working-with/testing-on-devices/ios/ )

" It is not possible to run UITests on iOS devices in Windows. You can only run UITests for iOS devices on Mac OS X."

Okay I want to run test on iOS offcourse so how will I run tests on mac while writing tests in visual studio because there is a project availbale in visual studio ios, I am bit confuse can someone clarify my doubts ? If its not possible what this kind of project is doing here please see screenshot

So how can I create UITest for iOS in Xamarin Visual Studio ?

Well on more informaiton I am confused my created says following

" TODO: If the iOS app being tested is included in the solution then open
// the Unit Tests window, right click Test Apps, select Add App Project
// and select the app projects that should be tested."

Where is that windows?

Finally if anyone can give a quick solution to start iOS test or Can tell me from where should I start, I followed documentation and implemented the same UITest for android. Due to some reason I want to create a separate UITest for iOS thats why I did not provide reference in Android UITest. Well Also there is something strange, reference is grayed out here.

Best Answer

Answers

  • donnibdonnib DKMember ✭✭

    I have exact same issue, did you find a solution to this ?

  • AraHakobyanAraHakobyan USMember
    edited May 2017

    I have the same problem and can't solve it. I have tested my iOS app only on mac using Xamarin studio.

  • ShantimohanElchuriShantimohanElchuri USMember ✭✭✭✭✭

    @EmyMa341 OK agreed. But is there any guide on how to run UITest for iOS in Xamarin Studio? It appears it is not recognizing the iOS project.

  • EdwinSEdwinS USMember ✭✭

    Having the same issue, how come Microsoft lets the test project in visual studio projects template but we can't run it on windows. that's embarrassing.

  • MarkZhukovskyMarkZhukovsky USMember ✭✭

    For being able to run Xamarin.UITest iOS tests locally on a simulator via VS on WINDOWS (connected to a mac):** express your interest here**: https://github.com/microsoft/appcenter/issues/574

Sign In or Register to comment.