Target Technology
- Citrix Cloud, Virtual Apps and Desktops, XenApp, XenDesktop, and Presentation Server. In this article, we help you to choose between the LoadGen - Citrix Basic and Enhanced - Load Profiles.
- Microsoft Azure RemoteApp, and Remote Desktop Services.
- Windows Virtual Desktop.
- VMware Horizon.
- Fat Client (Windows 7 and later, and Windows Server 2008 R2 and higher).
Target Server
For Citrix Virtual Apps and Desktops environments, LoadGen supports Storefront and PNAgent technologies to connect to the target environment. You can also use an ICA file. If you choose to use a Storefront or PNAgent connection, this wizard also needs to know which Published Application to connect to. You can use any of the test users' accounts to connect to the target environment and retrieve a list of available Published Applications to choose from. From LoadGen Q3 2020 release it's also possible to use the Citrix External Logon option. With this option, LoadGen supports authenticating Citrix sessions via a NetScaler, Azure AD, or an Active Directory Federation Server (Azure AD via ADFS).
For Microsoft Remote Desktop Services environments, LoadGen can use an RDS Gateway server to connect. You can configure the connection parameters for the RDS Gateway server in this wizard or connect to the RDS server directly.
Fat Clients
Testusers, test users or vUsers
Workloads, Flows, test script, or vUser simulation
- Flow / Workload: The Flow, also known as the Workload, forms the backbone of the testing process. It represents the sequence of actions that simulated users will undertake during the test. It's the main item that encapsulates everything that will happen in a given test scenario, from the applications that will be used to the types of users that will be simulated.
- Usertype: The Usertype serves as a placeholder to define specific sets of users who will run a particular application. The Usertype can be determined based on a percentage of total test users, specific test usernames, or those defined in the LoadGen Director active canvas (test users). Notably, definitions in the LoadGen Director supersede the others. This enables a more granified control over the distribution of user types in the testing process.
- (LoadGen) Application: This is the specific application you want to test. In the context of web testing, it's the placeholder for testing a specific site or test case. You must choose the specific browser you want to test with and can add multiple applications (therefore, multiple different browsers in one usertype). Furthermore, you can override the proxy settings on an application as well. These LoadGen applications are interchangeable, providing flexibility in how you structure your testing scenarios.
- Application Blocks: Application blocks are used to split applications into manageable sections for better debugging. These blocks are often used for different actions such as starting an application, entering text, or saving a document. Application blocks can also be used for defining essential measurements you want to take, such as the time it takes to load a program, a webpage, or open a specific file. This division into blocks facilitates a more structured and organized approach to testing.
- Actions: Actions represent the specific tasks that the simulated users will perform during the test. They aim to replicate real user interactions with the system, providing an accurate picture of how the system will perform under realistic conditions.
Iterations
When running a load test, it's crucial to understand the dynamics of user interaction with the application. The application's load is not static; it fluctuates as users start and finish their interactions. The first user might still be generating load when the last user begins their test, creating a simultaneous load that the application needs to handle.
One way to ensure that all users contribute to the nominal load during the test period is by setting a high enough iteration for the flow. The iteration is essentially the number of times the applications in the flow are repeated. You have a couple of options when setting this:
- Specific Number of Times: If you know the exact number of repetitions you want to simulate, you can set a specific number of iterations.
- Until a File is Removed from a Shared Location: If you want the load test to run until a specific condition is met - such as the removal of a file from a shared location - this option would be appropriate. The test will continue to repeat until the specified file is no longer present.
- Specific Time: If you prefer to run the load test for a certain period, you can set a specific time duration for the iteration. The applications in the flow will continue to repeat for the duration set.
One important aspect to consider when setting up the iterations is the duration of the load test. For instance, the first user might still be generating a load when the last user starts their test. Thus, it's crucial to ensure that the iteration count or duration is high enough to allow all users to generate a nominal load. This ensures that the load test accurately represents the system performance under maximum load.
Transaction or Application
Sub-transaction or Measurement
Validations in LoadGen
Validations are the most critical components in LoadGen test actions, ensuring that a specific condition or state is met during a test. These validations allow you to verify the expected behavior of the application or system under test. We offer several types of validations that can be used depending on the application environment, including OCR and QR validations. Below are the supported validation types:
1. Caption of Foreground Window
- Description: This validation checks the title of the active (foreground) window. It is useful when the window's caption, such as "Notepad" or a part of it like "Word – Document", needs to be validated to ensure the correct application window is in focus.
2. Control in Foreground Window
- Description: Some applications like Chrome, SAP, Java, and even browsers like Microsoft Edge and Internet Explorer expose their controls to the operating system. This validation helps in web testing by allowing the LoadGen test to interact directly with and validate controls (buttons, text fields, etc.) from a user perspective.
3. Image Validation
- Description: This is a powerful and fast method to find and validate a specific image on the desktop or within a particular area of the desktop. When a control or text isn’t available or cannot be validated via traditional methods, image validation ensures that an expected visual element is present.
4. Single Pixel Validation
- Description: Similar to image validation, but focuses on validating a single pixel at a specific location on the desktop. This can be used to check if a UI element is in the correct position, or if a specific color is present in a particular spot.
5. OCR (Optical Character Recognition) Validation
-
Description: OCR validation allows for the detection and validation of text displayed on the screen, even if it’s part of an image. This is useful in scenarios where the text cannot be selected or exposed as a control. The OCR engine reads the text directly from the screen and compares it to the expected result. This is especially beneficial when dealing with non-selectable text in virtualized environments like Citrix.
-
Use Case: For example, if an error message or confirmation text is displayed within an image, the OCR validation can extract and verify the text, ensuring the correct information is displayed to the user.
6. QR Code Validation
-
Description: QR validation allows LoadGen to read and validate QR codes that appear on the screen. This feature can be used in environments where QR codes are generated as part of the application workflow, such as for login processes, two-factor authentication, or any other situation where QR codes are used.
-
Use Case: In scenarios where a QR code is presented for scanning, the validation ensures the correct QR code is displayed by comparing the extracted data to the expected content. This can be useful for validating secure logins or application workflows involving QR codes.
Systems under Test
LoadGen Load & Performance Testing
Load Scenario
Load Ramp-Up
LoadGen End-to-End Monitoring
Monitoring schedule
Other options include the daily start and end times and which days of the week to monitor.
Microsoft SQL Server instance
Please ask your administrator to provide you with a Microsoft SQL Server instance. Microsoft offers a free Express edition of SQL Server that you can use (it has a size limit of 4GB).
You can create new databases in your SQL Server instance from this wizard if your SQL Server account has the privileges to do so.
LoadGen Agents