🖋️
QualityMate
  • QualityMate
  • Getting Started
    • Introduction
    • Why QualityMate
    • Architecture
    • Supported Web Browsers
    • Glossary
  • Components
    • UI Player
      • Basic Concepts
      • UiPlayer
      • MSTest Integration
      • Samples
        • QualityMate Sample Desktop
        • QualityMate Sample Web
        • QualityMate MSTest Integration Sample Desktop
        • QualityMate MSTest Integration Sample Web
        • QualityMate Integration with Test Frameworks
        • Web Authentication Sample
      • QualityMate Project Template
    • UI Recorder
      • Basic Concepts
      • Setting Up the Recorder
      • Validating an Element
      • Generating QualityMate Solution
  • Tools
    • File Comparators
    • Image Processor
    • Project Merger
    • Test Case Generator
      • Filters
      • Rename Recorded Controls
  • Basic Concepts
    • Page Object
      • Work Guide
    • Controls
      • Control Types
        • Generic Types
        • Desktop types
        • Web Types
        • WebMap types
          • Kendo PowerBuilder
          • Kendo WinForms
          • Kendo Silverlight
      • Interactions
        • SendKeys
        • Validate
    • Selectors
      • Selectors in Code
      • Default Selector
      • Shared Selector
      • Selectors Category
        • CSS Selector
        • XPath Selector
        • Image Selector
        • Frame Selector
      • Identifying Selector
        • Identify for Windows Desktop
        • Identify for Web
  • How to Guides
    • Setting Up the Configuration
      • Parameters
      • Context
      • Loading External Data
    • Awaiting for the Application
      • Busy Loaders
      • Retries
    • Defining Controls
      • Extending Controls
      • Control Slice
      • Control Collection
    • Logging on Tests
      • QualityMate Reports
      • Logging
  • Help
    • Best Practices
      • Environment
      • Tests
      • Page Objects
      • Validations
      • Interactions
      • Image Comparisons
    • Known Issues
    • Continuous Integration
      • Agents Session
    • Upgrading QualityMate
      • From version 7 to version 8
      • Previous Versions
      • How to switch from TestFeature to UiTest
    • VS Test
      • Command Line
      • Generate Reports
  • API
    • Control Interfaces
      • IButton
      • ICheckBox
      • IComboBox
      • IControl
      • IControlSlice
      • IDateTimePicker
      • IElement
      • IGrid
      • IGroupBox
      • ILabel
      • IListBox
      • IMenu
      • INumericUpDown
      • IPageObject
      • IProgressBar
      • IRadioButton
      • IRadioButtonGroup
      • ISplitButton
      • IStatusStrip
      • ITab
      • ITextBox
      • IToggleButton
      • IToolBar
      • ITreeView
    • Behavior
      • ICheckableControl
      • IList
      • ITextControl
    • Enums
      • ClickType
      • KeyModifiers
      • MouseButton
  • Changelog
    • Changelog
      • Version 8
      • Version 7
      • Version 6
      • Version 5
      • Version 4
      • Version 3
Powered by GitBook
On this page
  • Considerations to run correctly
  • Locally on agents
  • On remote connection

Was this helpful?

  1. Help
  2. Continuous Integration

Agents Session

Run QualityMate on Interactive mode agents

PreviousContinuous IntegrationNextUpgrading QualityMate

Last updated 4 years ago

Was this helpful?

Some QualityMate interactions use the operative system API to perform them; thus, it requires an active user session. When there is no active session, the operative system could prevent some calls from being executed, producing unexpected results, or even test crashes on the following scenarios:

  • The user locks the PC when QualityMate is running.

  • The PC enters sleep or hibernate mode when idle.

Considerations to run correctly

Locally on agents

  • Disable screensaver by typing the following shortcut on the Run window (Win + R) control desk.cpl,,1

  • Disable sleep mode by running the following command in a console as admin: Powercfg /x -standby-timeout-ac 0

  • Disable screen sleep by running the following command in a console as admin: powercfg /x -monitor-timeout-ac 0

  • Disable Hibernate by running the following command in a console as admin: powercfg /x -hibernate-timeout-ac 0

On remote connection

When using an interactive agent that uses a , the remote session will work as a local one, and the operative system will provide privileges to perform UI interactions. If the remote session is closed abruptly or finished by clicking the close button, the agent's session will lock, preventing the interactions from executing correctly.

The user needs to end the connection correctly to avoid the session being locked. On Windows OS, this can be achieved by using located at the%windir%\system32 folder.

The following script example can be used to prevent the issue at hand; this can be copied and pasted in a CLI or saved into a file.

@echo off
echo Session...
query session

for /f "skip=1 tokens=3" %%s in ('query user %USERNAME%') do (        
    echo SessionID: %%s
    %windir%\System32\tscon.exe %%s /dest:console
)
%windir%\System32\qres.exe /x 1920 /y 1080
echo. 
pause

For more information, visit .

Remote Desktop Protocol (RDP)
tscon.exe
Microsoft UI test considerations
351B
EndRemoteSession.zip
archive
The script can be downloaded here.