cancel
Showing results for 
Search instead for 
Did you mean: 

Is possible to get displayName in Appium cloud side test

MildaGenius
New Contributor

Is possible to get displayName in Appium cloud side test

Hello,

I use Python tests with Appium cloud side automated test of Unity game. To obtain device name we use UnityEngine.SystemInfo.deviceName, whitch returns something like iPhone instead of displayName Apple iPhone 12 Pro Max A2411 14.1.

 

Is any possibility to get displayName in test enviroment (shell, Apppium)?

 

I checked Appium capabilities, APPIUM_DEVICE enviroment variable, but nothing useful.

3 REPLIES 3
vinniew
Staff

Re: Is possible to get displayName in Appium cloud side test

Hi @MildaGenius 

 

I am not certain of whether or not we can change the device name, that being said if we were to create device group and change the name of the group would that work. 


Check out creating device groups here 

 

https://support.smartbear.com/bitbar/docs/testing-with-bitbar/organizing-tests-and-devices/managing-...

 

KR 

Vincent

MildaGenius
New Contributor

Re: Is possible to get displayName in Appium cloud side test

Hi,

I dont ask for rename device name or device group.

 

Mayby better question. Is possible set displayName to OS enviroment in the same way as UDID for iOS?

 

So then is possible to pick up it from test script like: echo "UDID set to ${IOS_UDID}".

 

Now I must generate test zip for each device with its name.

BITBAR_DEVICE_NAME="Apple_iPhone_12_Pro_Max_A2411_14.1"

vinniew
Staff

Re: Is possible to get displayName in Appium cloud side test

ah ok, so your running cloud side on set of devices...

 

Have you tried storing the output from the below command in String array and retrieve the required information

(from Stack Overflow) 

 

For android -
adb -s " + deviceID + " shell getprop ro.build.version.release
For iOS -
instruments -s devices

 

you could either drop to the command line to run those commands, or if there's a library (e.g. python-adb ) you can do it within the script.
 

 

New Here?
Join us and watch the welcome video:
Follow the Poll
Create your own user feedback survey
Watch Bitbar Videos
Subscribe to the Youtube Bitbar channel to always get the latest and exclusive videos