-
Notifications
You must be signed in to change notification settings - Fork 101
Test agent setup on Windows ARM
OliverShen edited this page Jun 8, 2023
·
2 revisions
- Register an agent in Hydra Lab Center WebSite. (Please contact hydra_lab_support@microsoft.com if you are Microsoft FTE and want to use the MS internal network)
- Create a new folder in you PC.
- Download the latest agent.jar or build the agent project as agent.jar. Then, copy the file to the folder. To build the agent, run the following command in the project root dir:
gradlew :agent:bootJar
- Unzip HydraLab_Agent_Installer_Windows.zip to the folder, the folder shows like this picture.
- Download application.yml from portal (a sample configuration is available here: sample YAML config)
- app.registry.server
- The hostname + port of the center server. For instance, if it's running on a machine with the hostname of testagent.hydralab.com and servicing on port 9886, then this value should be "testagent.hydralab.com:9886".
- app.registry.id
- app.registry.secret
- app.registry.name
- app.registry.agent-type (An int value to indicate the type of test devices for Testing)
- Value 1 represents WINDOWS PC + n * ANDROID devices -> For Android test agent.
- Value 2 represents WINDOWS PC + 1 * ANDROID device, support running Appium Test case on Windows -> For Windows-Android cross-platform agent.
- Value 3 represents WINDOWS/MAC PC + n * iOS devices -> For iOS test agent.
- management.metrics.export.prometheus.pushgateway.enabled (Optional; If true, will send metrics to our stability monitor. When an exception happens, we will receive emails.)
-
Setup log file location: modify AgentService.xml and replace {LOG_FILE_LOCATION}
-
Install it as a Windows Service: open cmd/powershell (admin), execute command : .\AgentService.exe install
- Open Windows Services and find a service named Hydra Lab Agent Service.
- You can start/stop the service.
- If it starts successfully, the agent will show up in HydraLab center portal. BTW, only the agent connected with devices will be displayed on the page.
PS. The WinAppDriver can't work normally if started by Windows Service.Issue link
- Update restartAgent.bat: comment line18,31 and uncomment line 20,29.
- Start agent directly: open cmd/powershell (admin); cd to the install folder; execute restartAgent.bat script
If you want to keep your Windows test agent awake without locking itself over time, so as to run UI tests for Windows apps, consider leveraging the PowerToy toolset - awake feature | Awake Utility to keep the Windows device active.
Introduction:
User manual:
- Deploy Center Docker Container
- Deploy Agent Docker Container
- Test agent setup
- One-Line-Installer Agent Setup
- [DEPRECATED]Deploy a test agent service
- Trigger a test task run in the Hydra Lab test service
- Create an Appium UI Test Automation Project
- Create test build and run XCTest
- Test Task Customization
- FAQ
Developer guideline:
- Start Services with Default Configuration
- Dev Environment Setup
- Technical Design
- Integrate Hydra Lab test center with Microsoft AAD authentication service
- Upgrade the test agent service from center service
News: