You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: synthetics/browser-test/set-up-browser-test.rst
+43-3Lines changed: 43 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ Follow these steps to set up a Browser test:
36
36
37
37
#. To add steps and synthetic transactions to your Browser test, select :guilabel:`Edit steps or synthetic transactions`. See :ref:`add-transactions` to learn more.
38
38
39
-
#. As you build your test, you can use :guilabel:`Try now` to check that the configuration of your test is valid. Try now results are ephemeral and don’t impact persisted run metrics. For more, see :ref:`try-now`.
39
+
#. As you build your test, you can use :guilabel:`Try now` to check that the configuration of your test is valid. Try now results are ephemeral and don't impact persisted run metrics. For more, see :ref:`try-now`.
40
40
41
41
#. (Optional) Add a wait time before a step executes. See, :ref:`browser-wait-times`.
42
42
#. (Optional) Turn on automatic test retry in the event a test initially fails.
@@ -528,6 +528,46 @@ Here are the limits for each type of wait time. The maximum limit for a run is 3
528
528
529
529
530
530
531
+
Excluded files
532
+
------------------------------
533
+
534
+
You can configure your browser test to ignore specific file types or patterns so that it skips all HTTP requests that match those file types or patterns.
535
+
536
+
Exclusion rules are useful to:
537
+
538
+
539
+
* Prevent false alerts from test analytics.
540
+
* Test the performance of a page with or without specific resources loading.
541
+
* Prevent specific third party services from loading, such as random pop-ups from third party services.
542
+
* Ignore files that are known to cause performance problems.
543
+
544
+
545
+
To create an exclusion rule:
546
+
547
+
#. On the browser test's configuration page, select the :guilabel:`Advanced toggle`.
548
+
#. Scroll down to the :guilabel:`Custom content` section.
:alt:This image shows an exclusion rule for all files of type Crazy Egg.
555
+
556
+
* To exclude all files of a common predefined type, select that type.
557
+
* To exclude all file types except those that match the value you specify, select :guilabel:`All Except` and specify a value or regular expression.
558
+
* To use regular expressions, select :guilabel:`Custom` and specify a value or regular expression.
559
+
For example:
560
+
561
+
* To exclude specific domains, enter ``domainname\.com``
562
+
* To exclude specific subdomains, enter ``.+\.domainname\.com``
563
+
* To exclude a JavaScript app, enter ``domainname\.com/appname\.js``
564
+
* To exclude entire directories, enter ``domainname\.com/scripts\/.+``
565
+
566
+
.. note::
567
+
If you use multiple exclusions or multiple :guilabel:`All Except` rules, the :guilabel:`All Except` inclusions always take precedence over other exclusions. Order is always ignored unless you are using a combination :guilabel:`All Except` and :guilabel:`Custom` exclusions.
568
+
569
+
570
+
531
571
Chrome flags
532
572
----------------
533
573
Google Chrome flags are a helpful tool for troubleshooting. Activate browser features that are not available by default to test custom browser configurations and specialized use cases, like a proxy server.
@@ -568,14 +608,14 @@ Add custom properties in the test creation page in advanced settings. Use key-va
568
608
:alt:This image shows two custom property key value pairs, env:prod and role:developer.
569
609
570
610
571
-
Custom properties are single-valued and don’t support multiple values, like ``region:eu, us``. For each test, you can only use one and unique key. For example, you can have ``env1:test`` and ``env:test`` in the same test, but you can't have ``env:test``, and ``env:prod``.
611
+
Custom properties are single-valued and don't support multiple values, like ``region:eu, us``. For each test, you can only use one and unique key. For example, you can have ``env1:test`` and ``env:test`` in the same test, but you can't have ``env:test``, and ``env:prod``.
572
612
573
613
574
614
Key requirements:
575
615
576
616
* Keys must start with an uppercase or lowercase letter. Keys can't start with special characters or numbers.
577
617
* The remainder of the key can contain letters, numbers, underscores and hyphens.
0 commit comments