TestProject Forum
Powered by leading experts in the test automation community

Obtain the device model


Is there a way to obtain the device model at runtime?

Hello @carmelo.gascon
If it is an android device you can use the Execute ADB command with the value of
devices -l which will list all available devices.
You then do another ADB command action with the value of
-s 'DEVICE NAME THAT WAS LISTED' shell getprop ro.product.model
It will return the model name of the device selected.

Hi @ran.tzur,

I’d like to know for iOS too.

That requires an additional action in code.
Please reach out to me in the chat or support@testproject.io and I will send you the Jar to upload as an new addon.