Skip to documentation content
How do I prepare a Windows test agent?
Install the application and the Qate agent on a Windows machine and keep an interactive desktop available for each run.
How do I run a Windows desktop test from CI?Azure Windows VM Setup
Azure is one option for hosting a Windows test machine. You can also use another Windows machine with the Qate test agent and your application installed. Keep an interactive, unlocked desktop session available for UI tests.
Prerequisites
- Azure subscription with appropriate permissions
- Access to Azure Portal or Azure CLI
- Your Windows desktop application installer
Step 1: Create Windows VM
Azure Portal
Code example
1. Click "Create a resource" → "Virtual Machine"
2. Configure instance detailsRecommended Configuration
ConfigurationInstance Details
Code example
Virtual machine name: vm-qate-01
Region: Choose closest to your users
Image: Windows 10/11 Pro or Enterprise (or Windows Server if preferred)
Size: Standard_B2s (2 vCPU, 4 GiB RAM) - Minimum recommended
Administrator account:
Username: azureadmin
Password: [Strong password - save securely]
Inbound access: Restrict RDP to your trusted IP or use Azure BastionStep 2: Connect and Install Agent
Connect via RDP
Code example
1. Go to your VM in Azure Portal
2. Click "Connect" → "RDP"
3. Download and open the RDP file
4. Enter admin credentialsInstall Qate Agent
Code example
1. Open browser
2. Download: https://app.qate.ai/downloads/qate-desktop-agent-windows.exe
3. Right-click → Run as administrator
4. Follow installation prompts
5. Complete configuration in browser when it opensSecurity Note
Keep Windows protection enabled. Download the installer from your Qate application setup screen. If Windows blocks it, verify the download and contact support before continuing.
Step 3: Install Your Application
Code example
1. Copy your application installer to the VM
2. Install your Windows desktop application
3. Verify the application launches correctly
4. Configure any required settings or licensesStep 4: Create Reusable Image (Optional)
Create an image to quickly deploy additional test VMs:
Run Sysprep
Code example
1. Open Command Prompt as Administrator
2. cd C:\Windows\System32\Sysprep
3. sysprep.exe /generalize /oobe /shutdown /mode:vm
⚠️ VM will shut down - DO NOT restart manually!Capture Image
Code example
1. In Azure Portal, verify VM status is "Stopped (deallocated)"
2. Click "Capture" on VM overview page
3. Configure:
- Name: img-qate-v1
- Resource group: Select target
4. Click "Create"
Image creation takes 10-15 minutesCost Optimization
- Deallocate VMs when not in use - stops compute charges
- Use B-series VMs for intermittent workloads
- Consider reserved instances for always-on test infrastructure
- Use Azure Spot VMs for non-critical test environments