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.

Getting UDIDs of devices to use different login credentials for each device (Android and iOS)

Hi! I'm wondering whether it is possible to get UDID of the device which was chosen for testing
Or at least to get the UDIDs for several devices which I will use for testing. The purpose is to recognize the device for using different login credentials in app for different devices. (Each device = 1 separate user)
Or may be any ideas how to achieve that?

Posts

  • AlisonFernandesAlisonFernandes USMember ✭✭

    In TestCloud, you can fetch the value of XTC_DEVICE_INDEX environment variable, which you can then use in the test to diferentiate between credentials. Example:

        string index = Environment.GetEnvironmentVariable("XTC_DEVICE_INDEX");
        switch(index){
                case "0": return "password1";
                break;
        }
    

    Source

Sign In or Register to comment.