IMPORTANT NOTICE: As of 21 February, anything posted in this community WILL NOT BE MIGRATED to our new community site. We have pulled all user information and data from this site and are now in an approximately week long process of importing users, roles, and data to our new site. We are leaving this site open and active so you can post and hopefully get a response until the migration is complete. Once complete, the URL that currently takes you to this site will take you to our new site so your bookmarks will work as always. Please read the information on a New Login Process
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"