Can I create a test scenario that switches between two screens (e.g. user account and admin account)?
  • 17 Jan 2023
  • 1 Minute to read
  • Contributors
  • Dark
    Light

Can I create a test scenario that switches between two screens (e.g. user account and admin account)?

  • Dark
    Light

Yes, you can.
You can switch between multiple screens by adding a Go to URL step.

Currently, you can't run tests across multiple scenarios, such as checking whether an action taken in one scenario is reflected in another. However, you can switch between multiple screens within a scenario by using a Go to URL Step.

For example, this is useful when you want to verify whether a setting on the admin screen is reflected on the user's screen (display/hide items, change the wording, etc.).
In this case, you will need to add a step to switch accounts. You can do this efficiently by creating a couple of Step Groups in advance. For example, you could have a Step Group that signs in with an Admin account and a Step Group that signs out and signs back in as a regular user on the user screen. An example is shown below.
SwitchWindow_en.png

If you overuse Go to URL steps, there will be an excessive number of steps in the scenario, making the scenario hard to maintain (for example, if the test fails, Autify may be unable to verify subsequent steps).
For this reason, we recommend keeping scenarios as simple as possible.


Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.