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
:alt:Screenshot showing how to set up a synthetic test with basic authentication through an API request header.
57
+
:alt:Screenshot showing how to set up a synthetic test with basic authentication through an HTML form.
58
58
59
59
#. Create global variables for this test target's username and password. Best practice is to conceal the global variable you create for the password. For more information, see :ref:`global-variables`.
60
60
@@ -434,6 +434,10 @@ There are two ways to create a global variable:
434
434
#. Expand the :guilabel:`Variables` panel on the right, scroll to :guilabel:`Global variables` and select :guilabel:`Add`.
:alt:Screenshot showing how to create a global variable.
440
+
437
441
In the :guilabel:`Add global variable` dialog box, enter the following:
438
442
439
443
#. In the :guilabel:`Variable` type pull-down menu, select either :guilabel:`TOTP` or :guilabel:`TOTP`.
@@ -468,6 +472,11 @@ Set up a browser test that uses a TOTP
468
472
* If you saved the secret key as a global variable, set :guilabel:`Type` to :guilabel:`ENV` and enter the name of the global variable as as ``{{env.<variable-name>}}``.
469
473
* If you didn't save the secret key as a variable, set :guilabel:`Type` to :guilabel:`TEXT` and paste the secret key.
#. To verify that the login succeeded, add a step of type :guilabel:`Assert text present`, and set it up as follows:
472
481
473
482
#. In :guilabel:`Text`, enter a string that should be visible on the test target page only when login is successful.
@@ -478,4 +487,7 @@ Set up a browser test that uses a TOTP
478
487
479
488
To verify that the login is working, select :guilabel:`Try now`. Results may take a while. The :guilabel:`Try now result` pane should display each screen that your test navigated to on the target page, plus the message :guilabel:`Success`.
0 commit comments