-
Notifications
You must be signed in to change notification settings - Fork 1.2k
✨ (feat) [SYNTHETICS]: adding Step Replay functionality on the extension (first version, debugger free) #30411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
48148d3
e1e4e8e
ae273f6
43f2cf5
fab8f82
c1a8e7d
9d0753b
1a6ee2b
ea97408
6cbdd53
54f28b6
732faf8
f12c48b
d2be5ca
18314cc
ff727c8
7f0a753
df5b572
f6aa352
855f812
b23ec46
eaec3b3
aaf6a81
b89eee7
3fe4916
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -43,7 +43,7 @@ | |||||
| {{< img src="/synthetics/browser_tests/synthetics_templates_browser.mp4" alt="Video of Synthetics Browser Test landing page with templates" video="true" >}} | ||||||
|
|
||||||
| ### Build a test from scratch | ||||||
|
|
||||||
| 1. Click the **+** template to start a new Browser Test from scratch. | ||||||
| 1. Enter a **Starting URL**: The URL from which your browser test starts the scenario. | ||||||
| 1. Add a **name**: The name of your browser test. | ||||||
|
|
@@ -226,6 +226,82 @@ | |||||
| Datadog recommends ending your browser test with an **[assertion][12]** to confirm the journey executed by the browser test resulted in the expected state. | ||||||
| 6. Once you have finished your scenario, click **Save and Launch Test**. | ||||||
|
|
||||||
| ## Step Replay | ||||||
|
|
||||||
| Step Replay lets you re-run one or more steps of your browser test directly from the Datadog Synthetics Chrome extension. This feature is designed to help you quickly set up the right state when adding or editing steps in the middle of a long test, without having to manually replay the entire journey from scratch. | ||||||
|
Check warning on line 231 in content/en/synthetics/browser_tests/_index.md
|
||||||
GuilhermeBorges marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| <div class="alert alert-warning"> | ||||||
| <p>The current version of the extension<strong> <span style="font-weight: bold;">does not have Chrome’s debugger permission</span></strong>, as a result:</p> | ||||||
GuilhermeBorges marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| <ul> | ||||||
| <li>Some advanced actions are <strong>not yet supported</strong>.</li> | ||||||
| <li>Certain steps (like <strong>click</strong> or <strong>hover</strong>) may behave <strong>differently</strong> than in a full Synthetics test run.</li> | ||||||
GuilhermeBorges marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| <li><strong>JavaScript-based assertions or extractions, keystroke simulations, and email interactions</strong> are <strong>currently unavailable</strong>.</li> | ||||||
GuilhermeBorges marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| </ul> | ||||||
| </div> | ||||||
|
|
||||||
| ### How to use Step Replay | ||||||
GuilhermeBorges marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| You can replay steps in three ways: | ||||||
|
|
||||||
| <strong>1. Single Step Replay:</strong> Re-execute a single step: | ||||||
GuilhermeBorges marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| {{< img src="synthetics/browser_tests/recording__replay--replay-one-step.mp4" alt="Single Step Replay" video="true" height="400px" >}} | ||||||
| <p style="text-align: center;"><em>Hover the step, click on the play button to replay only this step</em></p> | ||||||
|
|
||||||
| <strong>2. Replay All Steps:</strong> Run the entire sequence of steps as currently defined in the recorder: | ||||||
GuilhermeBorges marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| {{< img src="synthetics/browser_tests/recording__replay--replay-all-steps.mp4" alt="Replay All Steps" video="true" height="400px" >}} | ||||||
| <p style="text-align: center;"><em>Click on the replay all icon (⏩︎) on top of the step list to replay all steps</em></p> | ||||||
GuilhermeBorges marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| <strong>3. Replay Selected Steps:</strong> Run a subset of steps you select in the step list: | ||||||
GuilhermeBorges marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| {{< img src="synthetics/browser_tests/recording__replay--replay-selected-steps.mp4" alt="Replay Selected Steps" video="true">}} | ||||||
| <p style="text-align: center;"><em>Select the steps you want to replay then click on the replay selected icon (⏩︎) on top of the step list.</em></p> | ||||||
|
|
||||||
| ### Fully Supported Steps | ||||||
GuilhermeBorges marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| These steps are fully supported in the current version of Step Replay, and behave consistently with the Synthetics platform: | ||||||
GuilhermeBorges marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| - Extract Variable | ||||||
GuilhermeBorges marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| - Go to URL | ||||||
| - Refresh | ||||||
| - Scroll | ||||||
| - Select Option | ||||||
GuilhermeBorges marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| - Wait | ||||||
| - Assert Checkbox State | ||||||
GuilhermeBorges marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| - Assert Current URL | ||||||
GuilhermeBorges marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| - Assert Element Attribute | ||||||
GuilhermeBorges marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| - Assert Element Content | ||||||
GuilhermeBorges marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| - Assert Element Present | ||||||
GuilhermeBorges marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| - Assert File Download | ||||||
GuilhermeBorges marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| - Assert Page Contains | ||||||
GuilhermeBorges marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| - Assert Page Lacks | ||||||
GuilhermeBorges marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| ### Debugger Permissions & Upcoming Improvements | ||||||
|
||||||
| ### Debugger Permissions & Upcoming Improvements | |
| ### Debugger permissions |
We try to not use wording that implies "future" focused features so just re-wording this
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Currently, the Step Replay feature runs without Chrome’s debugger permission. This means some advanced user actions are either not yet supported or may behave differently compared to full Synthetics test runs. | |
| Currently, the step replay feature runs without Chrome's debugger permission. This means some advanced user actions are either not yet supported or may behave differently compared to full Synthetic Monitoring test runs. |
This implies some future change in functionality but I think this is ok to state.
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| An upcoming release of the Chrome extension will enable debugger permission, bringing Step Replay much closer to full feature compatibility with the Synthetics platform, providing: |
we should remove this whole section as again we try not to discuss future features just in case they don't happen :) and instead we can add this list to the supported features list once they are available.
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - **More accurate simulation of user behavior:** Complex interactions like keystrokes, dynamic page updates, and UI transitions will match the behavior observed in full test runs on the Synthetics platform. |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - **Support for advanced Step Types:** Steps previously unsupported or limited will become fully functional: |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - Assert from JavaScript |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - Extract from JavaScript |
Uh oh!
There was an error while loading. Please reload this page.