Deep link (mobile)
Add a deep link to a specific location inside an app
Deep link is a link that launches an app and opens a specific page, sending the user directly to a specific location inside an app, rather than a generic app homepage or mobile website. The deep link can open any application that is installed on the mobile device, including apps that are part of the mobile OS, as well as the mobile web browser. Deep links can include parameters. For example, a deep link that opens the phone app, while dialing a phone number that is passed as a parameter.
The Deep Link step can be used to test that the deep link works. The step will open the specified app at a specified location inside the app and will optionally pass a specified parameter.
In some cases opening another app after clicking a deep link displays a notification, which requires the user's confirmation. In this case, you will need to record a step that taps the button to confirm this notice.
![](https://files.readme.io/58d5cba-open.png)
Adding a Deep Link Step to your Test
- Hover over the (arrow symbol) where you want to add the Deep Link step. The action options are displayed.
- Click on the “M” (Testim predefined steps). The Predefined steps menu opens.
- Expand the Actions menu and select the Deep link step.
![](https://files.readme.io/213c463-deeplink.png)
Note:
Alternatively, you can use the search box at the top of the menu to search for Deep link.
The following dialog is displayed:
![](https://files.readme.io/fdd1fcc-deeplink2.png)
- In the Value field, enter the Deep link value as follows:
- Syntax:
schemeName://parameterValue
- schemeName - the scheme name is the name of the app that the deep link will open. It can be one of the OS internal applications, such as
tel
,sms
,mailto
,facetime
, etc. or the name of a regular mobile app. - parameter - the value that will be passed to the app. For example, a mobile phone number.
- The value is a JS expression string, so make sure to add quotes.
- Examples -
'sms://12354'
,mailto://[email protected]
,facetime://1-408-555-1212
3rd party apps might support only URL-based schemes. For example: https://byby.dev/ios-deep-linking. Spotify, for example, supports only the following types of deep links: https://open.spotify.com/artist/1rSGNXhhYuWoq9BEz5DZGO
- Adding a parameter to the deep link value - it is possible to add a regular Testim parameter just like any JS expression. For example -
'sms://12354' + myParam
- Syntax:
- Click OK.
The step is added. - In the step's Properties panel, optionally specify the following properties:
- When this step fails – Specify what to do if this step fails.
- When to run step – Specify conditions for when to run the step. For more information, see Conditions.
- Override timeout – Allows you to override the default time lapse setting which causes Testim to register a fail for a test step, and specify a different time lapse value (in milliseconds). Failed steps will be retried until there is insufficient remaining time for a successful run.
Updated about 1 month ago