Skip to content

Commit 36cb307

Browse files
author
ada
committed
Added screenshots
1 parent f037fc7 commit 36cb307

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed
33.9 KB
Loading
88 KB
Loading
492 KB
Loading

synthetics/test-config/auth.rst

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ If your test target provides an HTML form for entering username and password, co
5454

5555
.. image:: /_images/synthetics/auth-basic-html-steps.png
5656
:width: 90%
57-
: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.
5858

5959
#. 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`.
6060

@@ -434,6 +434,10 @@ There are two ways to create a global variable:
434434
#. Expand the :guilabel:`Variables` panel on the right, scroll to :guilabel:`Global variables` and select :guilabel:`Add`.
435435

436436

437+
.. image:: /_images/synthetics/auth-multifactor-totp-add-variable.png
438+
:width: 90%
439+
:alt: Screenshot showing how to create a global variable.
440+
437441
In the :guilabel:`Add global variable` dialog box, enter the following:
438442

439443
#. 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
468472
* 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>}}``.
469473
* If you didn't save the secret key as a variable, set :guilabel:`Type` to :guilabel:`TEXT` and paste the secret key.
470474

475+
.. image:: /_images/synthetics/auth-multifactor-totp-fillinfield.png
476+
:width: 70%
477+
:alt: Screenshot showing the "Fill in field" step.
478+
479+
471480
#. To verify that the login succeeded, add a step of type :guilabel:`Assert text present`, and set it up as follows:
472481

473482
#. 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
478487

479488
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`.
480489

490+
.. image:: /_images/synthetics/auth-multifactor-totp-trynow.png
491+
:width: 70%
492+
:alt: Screenshot showing the "Try now" step.
481493

0 commit comments

Comments
 (0)