Skip to content

Commit d85895e

Browse files
author
Alex Plischke
committed
fix: performance anchors
1 parent aa719cc commit d85895e

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

docs/performance/motion.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ In addition to testing the efficiency of your app rendering, Sauce Labs also pro
1818
### What You'll Need
1919

2020
- Google Chrome (no older than 3 versions from latest)
21-
- Test configuration must have performance enabled. See [Set Performance Capabilities](/performance/transitions#set-performance-capabilities) for instructions.
21+
- Test configuration must have performance enabled.
22+
See [Set Performance Capabilities](/performance/transitions/#setting-performance-capabilities)
23+
for instructions.
2224

2325
## What is Jankiness?
2426

docs/performance/transitions.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,13 @@ options = {browser_name: browser_name,
100100

101101
## Implementing the Performance Command Assertion
102102

103-
The custom `sauce:performance` command measures the performance output against a baseline of previously accepted performance values. If no baseline has been set, the Performance test will create one by measuring performance output 10 times to get an aggregate baseline. The command returns `pass` when the current results are within the baseline allowances or `fail` when the results fall outside the baseline. A fail result gives you the option to handle [regressions](#handle-regressions).
103+
The custom `sauce:performance` command measures the performance output against
104+
a baseline of previously accepted performance values. If no baseline has been
105+
set, the Performance test will create one by measuring performance output 10
106+
times to get an aggregate baseline. The command returns `pass` when the current
107+
results are within the baseline allowances or `fail` when the results fall
108+
outside the baseline. A fail result gives you the option to handle
109+
[regressions](#handling-regressions).
104110

105111
:::caution
106112
Enabling performance capturing can add up to 60 seconds per URL change in a test. We, therefore, advise separating your performance tests from your functional tests. See our [Performance Requirements and Recommendations](https://docs.saucelabs.com/performance/about/#sauce-performance-requirements-and-recommendations) for more advice on optimizing your performance test results.
@@ -268,7 +274,14 @@ performanceLogs[metric] < value`metric ${metric} is over the performance budget`
268274

269275
## Handling Regressions
270276

271-
When one or more metric evaluations fail because the result falls outside the established baseline, it is considered a regression and the tester has an option to either troubleshoot and resolve the source of the regression to get the test back into the baseline range or [update the baseline](/performance/analyze#reset-baselines-for-a-failed-test) with the new performance values. If new baselines are accepted, the command will measure performance against those new values until another regression is detected, when you will again have the option to troubleshoot or update the baselines.
277+
When one or more metric evaluations fail because the result falls outside the
278+
established baseline, it is considered a regression and the tester has an option
279+
to either troubleshoot and resolve the source of the regression to get the test
280+
back into the baseline range or [update the baseline](/performance/analyze/#resetting-baselines-for-a-failed-test)
281+
with the new performance values. If new baselines are accepted, the command will
282+
measure performance against those new values until another regression is
283+
detected, when you will again have the option to troubleshoot or update the
284+
baselines.
272285

273286
Since the command can be called throughout the test script, create tests that check for performance regressions across core business flows and screens. For example, evaluate pages that load following a successful login event or require multiple steps to trigger.
274287

0 commit comments

Comments
 (0)