Retrieving the bundleID of installed applications on your iOS device
When configuring a iOS device and app for testing, Silk Test generates a connection string. A connection string consists of a number of component parts which define the device, mobile platform and app to be used for testing. In general, Silk Test will always generate a connection string which specifies an app file, for example:-
sConnectionString = "deviceName=iPad;platformName=iOS;host=MacTesting;app=C:\MyMobileApps\InsuranceMobile.ipa"
If you do not wish to either specify a .ipa file and do not have access to one or you simply wish to test an already installed application, you can use the bundleId. This article will demonstrate how you can retrieve your bundleId with commands using Terminal on your MAC machine.
When testing native mobile applications, you would traditionally receive a debug/enterprise version of the application either via a .ipa or .zip (for iOS Simulators) file. If you don't have the files, your developer would instead provide the bundleId for the application. However, if you don't know this, you can use the below steps to retrieve a list of all bundleId for installed apps on the connected device.
Using the following command in Terminal on your MAC, you can return a list of bundleId's for installed applications on the device.
ideviceinstaller -U <udid> -l
You would replace the <udid> with the udid of your iOS device. You can retrieve a list of udids for any connected device by running the following command:
As a demonstration, we can retrieve the bundleId against our sample application 'Insurance Mobile' as shown in the screenshot below.
The retrieved bundleId = silktest.InsuranceMobile
Using the bundleId, we are able to specify this within our connectionString, and launch the application directly with Silk Test.
sConnectionString = "deviceName=iPad;platformName=iOS;host=MacTesting;bundleId=silktest.InsuranceMobile"