Microsoft Edge (Multiple Tabs) Start script
Microsoft Edge (Multiple Tabs) Run script
Optional Configurations in the Microsoft Edge Workload
Configuring the Microsoft Edge (Multiple Tabs) Start script
Configuring the Microsoft Edge (Multiple Tabs) Run script
Uploading the Microsoft Edge (Multiple Tabs) scripts to an Appliance
Linking the Microsoft Edge (Multiple Tabs) scripts to a Test
Running a Test with Microsoft Edge (Multiple Tabs) scripts
Overview
Browsers have become a heavy consumer of computational resources in a digital workspace. The more tabs that are open in the browser, the more CPU and Memory will be consumed. This workload is intended to be more aligned with a modern approach to browser utilization... lots of tabs, and always open. This workload is composed using 2 scripts, one that opens and prepares the Microsoft Edge Browser, and the other that allows the virtual user to interact with the browser, switching tabs and scrolling.
The Microsoft Edge (Multiple Tabs) Start script launches Microsoft Edge with multiple preconfigured tabs and handles tasks such as timing.
The Microsoft Edge (Multiple Tabs) Run script simulates user activity by switching between tabs and scrolling.
Both workloads offer configurable settings, allowing you to define URL lists, wait times, and scrolling parameters to suit your testing needs.
✅ These workloads are ready to use as provided.
The download files for the workloads are attached at the bottom of this page.
Microsoft Edge (Multiple Tabs) Start script
Launches Microsoft Edge, opens multiple tabs with preconfigured URLs, and prepares for testing by setting up necessary folders and copying a PDF file.
Features
- PDF File Preparation: Retrieves the system TEMP folder, creates a subdirectory for LoginEnterprise, and copies a predefined PDF file into this directory.
- URL List Construction: Defines a list of URLs (e.g., websites, video streams, and a local PDF) and distributes these URLs across the desired number of tabs (default: 10).
- Browser Launch: Builds a command that launches Edge with the defined tabs and waits for the browser to initialize.
- Timers: Uses start/stop timers to measure the time to start the browser.
Microsoft Edge (Multiple Tabs) Run script
Manages ongoing interactions within Microsoft Edge by simulating user behavior—switching tabs, refreshing pages, and scrolling—thus ensuring that the browser remains active and responsive.
Features
- Browser Window Management: Locates and manipulates the Edge window (minimize, maximize, focus) to prepare for interaction.
-
Tab Iterations: Runs through a series of iterations (default: 5) where it:
- Waits for page loads.
- Switches tabs using Ctrl+Tab.
- Scrolling Operations: Implements mouse scrolling with configurable scroll down and up counts and delays to simulate natural user scrolling.
- Timers and Logging: Includes configurable wait times before and after scrolling, and logs each step for traceability.
Optional Configurations in the Microsoft Edge Multiple Tabs Workload
Each variable or array is editable at the top of the workload files. To edit the workloads, such as the variables, use the Login Enterprise Script Editor.
Configuring the Microsoft Edge (Multiple Tabs) Start script
Modifiable variables/arrays:
-
tabsToOpen (int):
- Purpose: Sets the number of tabs to open (default: 10).
- Effect: Adjust this value to increase or decrease the number of tabs launched during the session.
-
waitMessageboxInSeconds (int):
- Purpose: Duration for on-screen wait messages.
- Effect: Modifying this value changes how long users see the wait messages during execution.
-
globalWaitInSeconds (int):
- Purpose: Sets the standard wait time between actions (default: 3 seconds).
- Effect: Altering this can speed up or slow down overall execution, based on performance needs.
-
waitTimeoutInSecondsMsedgeLaunch (int):
- Purpose: Maximum time to wait for the browser to appear (default: 60 seconds).
- Effect: Increase this if your environment needs more time for the browser to launch.
-
waitInSecondsBrowserInitialize (int):
- Purpose: Wait time to allow the browser to fully load all tabs/URLs (default: 15 seconds).
- Effect: Adjusting this ensures that the pages have enough time to load before further interactions occur.
-
URL List (urlsDefined string):
- Purpose: Contains a semicolon-delimited list of URLs to be opened in browser tabs.
- Effect: Editing this list allows customization of which sites are opened. The script cycles through these URLs to fill the number of tabs defined by tabsToOpen.
Note: If you wanted to configure the array or URLs to 3 URLs, it would be edited as this:
Each URL is in double quotes, and each ends in a semicolon character before the ending double quotes. Each URL gets a plus character after it, unless it is the last URL (last line) in the array.
Configuring the Microsoft Edge (Multiple Tabs) Run script
Modifiable variables:
-
ctrlTabIterations (int):
- Purpose: Determines the number of iterations for tab switching and scrolling (default: 5).
- Effect: Changing this value will adjust how many cycles of tab interaction occur.
-
ctrlTabWaitSecondsBeforeScroll (int):
- Purpose: Wait time before scrolling begins in each iteration (default: 3 seconds).
- Effect: Increasing this gives pages more time to load before scrolling is initiated.
-
ctrlTabWaitSecondsAfterScroll (int):
- Purpose: Wait time after scrolling before proceeding to the next iteration (default: 1 second).
- Effect: Adjusting this can help ensure that actions don’t overlap too quickly.
-
browserProcessName (string):
- Purpose: Indicates the process name for Microsoft Edge (default: "msedge").
- Effect: Useful for targeting a different process name if a custom build or a different version of the browser is used.
-
Scrolling Parameters:
-
scrollDownCount (int) & scrollUpCount (int):
- Purpose: Define how many scroll events occur in each direction (default: 15 for both).
- Effect: Changing these values will alter the extent of scrolling on the page.
-
scrollWaitTime (double):
- Purpose: Sets the delay between each scroll event (default: 0.2 seconds).
- Effect: Adjusting this can speed up or slow down the scrolling process.
- How many lines are scrolled at once per scroll action is a Windows setting (“Choose how many lines to scroll with the mouse wheel”)
-
scrollDownCount (int) & scrollUpCount (int):
-
Additional Global Wait Variables:
-
globalWaitInSeconds (int):
- Purpose: Standard wait time between actions (default: 3 seconds).
- Effect: Affects the overall pacing of the workload.
-
waitMessageboxInSeconds (int):
- Purpose: Duration for on-screen wait messages (default: 2 seconds).
- Effect: Changes how long the informational messages are displayed.
-
startMenuWaitInSeconds (int):
- Purpose: Time allocated for Start Menu interactions (default: 5 seconds).
- Effect: Adjusting this can help ensure that OS-level interactions complete before moving on.
-
globalWaitInSeconds (int):
Uploading the Microsoft Edge (Multiple Tabs) scripts to an Appliance
For details on uploading the workloads to an Appliance, consult Uploading scripts.
For instructions on adding these workloads to a Group, refer to Application Groups.
The Microsoft Edge (Multiple Tabs) Start script needs the 'Leave Application Running' and 'Run Once' settings configured, such as:
For more information, see Application configurations: Run Once and Leave Application Running.
Linking the Microsoft Edge (Multiple Tabs) scripts to a Test
To add application workloads or application workload groups to a Load Test, see Adding Applications to a Load Test.
Running a Test with Microsoft Edge (Multiple Tabs) scripts
To run the Test with workloads linked to it, see Starting a Load Test.
- KW25 Edge Run.cs7 KB
- KW25 Edge Start.cs6 KB