locked
Xamarin.iOS UITest Visual studio RRS feed

  • Question

  • User137947 posted

    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.

    Monday, April 18, 2016 2:41 PM

Answers

  • User137947 posted

    Not yet, unit test for iOS can be coded just on Xamarin studio. Yes in visual studio its there but quite long time ago Xamarin support told me you can only write unit test for iOS on Xamarin studio.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Monday, August 29, 2016 4:32 PM

All replies

  • User38584 posted

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

    Wednesday, July 27, 2016 7:04 AM
  • User137947 posted

    Not yet, unit test for iOS can be coded just on Xamarin studio. Yes in visual studio its there but quite long time ago Xamarin support told me you can only write unit test for iOS on Xamarin studio.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Monday, August 29, 2016 4:32 PM
  • User295698 posted

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

    Wednesday, May 10, 2017 3:30 PM
  • User42522 posted

    @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.

    Saturday, June 3, 2017 5:13 PM
  • User107995 posted

    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.

    Saturday, December 9, 2017 9:29 PM
  • User272075 posted

    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

    Saturday, August 24, 2019 4:18 AM