- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
Mobile Application Testing allows you to test and monitor key business flows for Android and iOS applications using real devices.
Mobile app tests can run on a schedule, on-demand, or directly within your CI/CD pipelines.
You can create mobile app tests in Datadog by navigating to Digital Experience > New Test and selecting Mobile Application Test.
Flakiness is a pain point in end-to-end testing because tests occasionally fail. When a frontend team implements a change, an identifier in your test may alert on it instead of an actual application issue.
To prevent flaky tests, Datadog uses an algorithm that leverages a set of locators to target elements in mobile app tests. A small change in the UI may modify an element (for example, moving it to another location). The mobile app test automatically locates the element again based on points of reference that are not affected by the change.
When the test runs successfully, the mobile app test recomputes (or “self heals”) any broken locators with updated values. This ensures your tests do not break from simple UI updates and your tests are automatically adapting to your mobile application’s UI.
Define the configuration of your mobile app test.
<KEY>:<VALUE>
format to filter on a <VALUE>
for a given <KEY>
.To create a local variable, click Create a Local Variable. You can select one of the following available builtins to add to your variable string:
n
digits.n
letters.n
characters.n
units.n
units.To obfuscate local variable values in test results, select Hide and obfuscate variable value. Once you have defined the variable string, click Add Variable.
You can use the global variables defined in Settings in the Starting URL and Advanced Options of your mobile app test details, as well as in your test recording to define local variables. To display a list of available variables, type {{
in the desired field.
Define the variables you want to incorporate into the user journey before you start recording.
You can inject the variables available to you while recording. For more information about using variables in your mobile test recording, see Mobile App Test Steps.
You can specify how much time a test needs to fail before triggering a notification alert.
X
times after Y
ms in case of failure.By default, mobile app tests are set up for on-demand testing, meaning these tests can run directly in a CI pipeline.
You can customize alert conditions to define how often you want to send an alert and the circumstances under which you want a test to send a notification alert.
X
minutes.A notification is sent according to the set of alerting conditions. Use this section to define how and what to message your teams.
Enter a message for the mobile app test. This field allows standard Markdown formatting and supports the following conditional variables:
Conditional Variable | Description |
---|---|
{{#is_alert}} | Show when the monitor alerts. |
{{^is_alert}} | Show unless the monitor alerts. |
{{#is_recovery}} | Show when the monitor recovers from alert . |
{{^is_recovery}} | Show unless the monitor recovers from alert . |
{{#is_renotify}} | Show when the monitor renotifies. |
{{^is_renotify}} | Show unless the monitor renotifies. |
{{#is_priority}} | Show when the monitor matches priority (P1 to P5). |
{{^is_priority}} | Show unless the monitor matches priority (P1 to P5). |
Notification messages include the message defined in this section and information about the failing locations.
Choose team members and services to notify.
Specify a renotification frequency. To prevent renotification on failing tests, leave the option as Never renotify if the monitor has not been resolved
.
Click Save & Edit Recording to save your test configuration and record your mobile app test steps.
For more information, see Using Synthetic Test Monitors.
You can run mobile app tests in a CI pipeline by defining the mobileApplicationVersionFilePath
option in a test synthetics.json
file and a global configuration synthetics-ci.config
file as needed. Global configuration file options take precedence over test configuration file options.
In this example, the test aaa-aaa-aaa
runs with the override application version found in application/path
.
// myTest.synthetics.json
{
"tests": [
{
"id": "aaa-aaa-aaa",
"config": {
"mobileApplicationVersionFilePath": "application/path"
}
}
]
}
Then, run $ datadog-ci synthetics run-tests --config synthetics-ci.config
.
For more information, see Continuous Testing and CI/CD.
By default, only users with the Datadog Admin and Datadog Standard roles can create, edit, and delete Synthetic mobile app tests. To get create, edit, and delete access to Synthetic mobile app tests, upgrade your user to one of those two default roles.
If you are using the custom role feature, add your user to any custom role that includes synthetics_read
and synthetics_write
permissions.
Access restriction is available for customers using custom roles on their accounts.
You can restrict access to a mobile app test based on the roles in your organization. When creating a mobile app test, choose which roles (in addition to your user) can read and write your test.