Forum Discussion

jayendharreddy24's avatar
jayendharreddy24
Copper Contributor
Sep 11, 2024

Running self hosted agent in interactive mode on on-prem server

I have a scenario, Where I have some UFT Developer Automation Tests cases that carry UI automation of Facets Application. I have them running on TFS release pipelines but the test cases are failing because the agent is not able to find the Facets window as it is running as a service and we need to configure the ADO agent to run in interactive mode for UI test. Instead of manually logging in to the server and trigger the agent to run in interactive how can we automate that because i need 50 agents to run in the interactive mode 

 

2 Replies

  • jayendharreddy24 

    To automate running Azure DevOps self-hosted agents in interactive mode for UI tests:

    Enable Auto-Login: Configure servers to auto-login a specific user using netplwiz or Group Policy.
    Startup Script: Add a script (run.cmd) in the user’s Startup folder to start the agent in interactive mode.
    PowerShell Deployment: Use a PowerShell script to install, configure, and start multiple agents automatically.
    Optional: Use tools like Ansible or VDI for easier scaling.
    This setup ensures agents start interactively without manual intervention.

Resources