- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
Web applications can embed a lot of logic, and although end-to-end tests are often mostly made of basic interactions (for example, clicks and input forms) for testing your website, you sometimes need to go one step further and verify complex interactions to ensure key business transactions can be performed on your application.
You can upload a file to validate the final step of a functional workflow to test a profile creation. When uploading a file at the test recorder level, Datadog Synthetic browser tests automatically identify the uploaded file and create the Upload file
associated step. It is then able to upload that file again at test execution.
Downloading files is another common action users take on web applications: downloading an order confirmation from an e-commerce website or the PDF or CSV export history of bank account transactions.
Datadog’s browser tests and the Test a downloaded file
assertion allow you to verify that downloadable files from your web application are correctly being served (for example, from your FTP server). With this assertion, downloadable files can be tested to ensure they have the correct file name, size, and data.
To setup a browser test with this assertion:
Record the step that generates the file download in your browser test. The example below shows how to record a click on a button that triggers the download of a .docx
file. The file size must be below 250Mb.
Add a Test a downloaded file
assertion to confirm that the file was correctly downloaded:
If needed, you can perform some more advanced verifications, for instance on your filename, on its size, and even on its integrity using a md5 string:
See the full list of Browser test assertions to learn more on the Test a downloaded file
assertion.
Confirm that the file was downloaded and matched the requirements you set up in your assertion by looking at the generated test result: