Article Overview:
This article will cover how you can achieve the following:
How to create End-to-End Journeys covering multiple AUTs in Virtuoso.
Problem Statement:
How can I create journeys that integrate numerous separate online applications end to end.
Solution:
While authoring tests in Virtuoso, it doesn't matter how many applications are integrated into a journey as long as they are web applications.
You can use as many "Navigate to" NLP commands in Virtuoso to navigate to as many new websites as required.
Below is an example of end to end use case covering multiple AUTs:
- User logs in to an e-commerce website
- User purchases a product
- user receives an email confirmation of order placement
- User opens a second application of the e-commerce company dedicated to checking and tracking the status of orders
Virtuoso Journey Example:
- Navigate to “https://demoecommerce.com”
- <NLP steps to perform login and checkout process>
- …
- <NLP steps to perform login and checkout process>
- Navigate to “https://www.mailinator.com/” in a new tab
- <NLP steps to assert email notification>
- …
- <NLP steps to assert email notification>
- Navigate to “https://demoecommerce-status.com” in a new tab
- <NLP steps to track the status of the order>
In the above journey, the Navigate to “https://demoecommerce-status.com” in a new tab test step will open the URL in a new tab, keeping the existing tab open, so the users can switch between tabs and perform actions on both the AUTs as needed.
How to switch between multiple browser tabs in Virtuoso:
There are two methods for switching between browser tabs:
- Switch to the Previous/Next Tab:
- This method allows you to switch to the tab immediately before or after the current browser tab, as per the order of tabs displayed.
- Switch to the previous tab: This command moves the focus to the tab immediately before the current one. For example, if you are currently on the "Order Status" tab, switching to the previous tab will take you to the "Mailinator" tab.
- Switch to the next tab: This command moves the focus to the tab immediately after the current one. For example, if you are on the "Mailinator" page, switching to the next tab will take you back to the next tab i.e. “Order Status” tab.
- Switch to Tab by Index:
- This method allows you to switch between tabs using their index numbers.
- Tab indexes start from 0 and increase sequentially (0, 1, 2, etc.).
- For example, if you have the following tabs open:
- Tab 0: Product Ordering page
- Tab 1: Mailinator page
- Tab 2: Order Status page
- Switch to tab 0: This command will switch the focus from any current tab to the tab at index 0, which in this case is the Product Ordering page.
- Switch to tab 1: This command will switch the focus to the Mailinator page.
- Switch to tab 2: This command will switch the focus to the Order Status page.
These methods provide flexible options for navigating between multiple tabs during the test journey in Virtuoso, ensuring you can quickly and efficiently access the pages you need.
Comments
0 comments
Please sign in to leave a comment.