Forum Xamarin Test Cloud (Read Only)
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

How to run test using VS on iOS simulator(on mac)

Hello
Just started investigate the Xamarin Test Cloud.
I want to write a simple test using VS and run this test on iOS simulator, which is running on Mac machine.
I've connected to Xamarin Mac Agent. Agent run on the same Mac machine as the iOS simulator.

I've faced with exception "iOS tests are not supported on Windows" when i'm trying to use something like this:
app = ConfigureApp.iOS.StartApp();

I'm understand that I can't run iOS tests on Windows, but I want to run it on iOS simulator on Mac.

Could someone explain me how can I do this? Is it possible?

And a have another question. As a said I've just started with the xamarin and tests. I'm not shure that I undertand difference between Xamarin Test Cloud and Xamarin UI Test. Could someone explain that?

Answers

  • jacky22jacky22 BYMember

    Nobody knows?

  • JitendraSenJitendraSen USMember

    Hi @jacky22

    Did you get the solution for the above problem ?
    I am also trying to run iOS tests from VisualStudio(Windows) to iPhone Simulator(its running on MAC machine).
    Your help will be much appreciated.

    And Xamarin Test cloud is a service, where you can run your Tests on Cloud using multiple devices provides by them AND UITest is a framework in which you write your tests.

  • jacky22jacky22 BYMember

    Hi @JitendraSen,
    Nope, I am still not find the solution:(

  • Glenn.WilsonGlenn.Wilson USXamarin Team Xamurai

    I've connected to Xamarin Mac Agent. Agent run on the same Mac machine as the iOS simulator.

    I've faced with exception "iOS tests are not supported on Windows" when i'm trying to use something like this:
    app = ConfigureApp.iOS.StartApp();

    I'm understand that I can't run iOS tests on Windows, but I want to run it on iOS simulator on Mac.

    Could someone explain me how can I do this? Is it possible?

    Running iOS Xamarin.UITests from Windows using the Mac Agent is not supported. You can instead run them directly on the Mac using Xamarin Studio.

  • Hi,
    I'd tried the Xamarin Mac Agent about 6 month ago, to no avail. Plan to revisit this at some point. My current workaround is to use Xamarin Studio on the Mac through which I can then run tests on IOS simulators.

  • alexmatsiukalexmatsiuk USMember

    @Glenn.Wilson said:

    I've connected to Xamarin Mac Agent. Agent run on the same Mac machine as the iOS simulator.

    I've faced with exception "iOS tests are not supported on Windows" when i'm trying to use something like this:
    app = ConfigureApp.iOS.StartApp();

    I'm understand that I can't run iOS tests on Windows, but I want to run it on iOS simulator on Mac.

    Could someone explain me how can I do this? Is it possible?

    Running iOS Xamarin.UITests from Windows using the Mac Agent is not supported. You can instead run them directly on the Mac using Xamarin Studio.

    Does the Xamarin plan to add this feature in the future?

  • MatthewMizziMatthewMizzi FRMember ✭✭

    https://testcloud.ideas.aha.io/ideas/XTA-I-39> @alexmatsiuk said:

    @Glenn.Wilson said:

    I've connected to Xamarin Mac Agent. Agent run on the same Mac machine as the iOS simulator.

    I've faced with exception "iOS tests are not supported on Windows" when i'm trying to use something like this:
    app = ConfigureApp.iOS.StartApp();

    I'm understand that I can't run iOS tests on Windows, but I want to run it on iOS simulator on Mac.

    Could someone explain me how can I do this? Is it possible?

    Running iOS Xamarin.UITests from Windows using the Mac Agent is not supported. You can instead run them directly on the Mac using Xamarin Studio.

    Does the Xamarin plan to add this feature in the future?

    Vote here: https://testcloud.ideas.aha.io/ideas/XTA-I-39

Sign In or Register to comment.