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.