-
Notifications
You must be signed in to change notification settings - Fork 101
Test agent setup
If you are a Microsoft FTE and want to onboard to the internal Hydra Lab testing service, please visit our SharePoint site to learn more about the internal Hydra Lab service instance.
If you don't know what is a test agent, visit Glossary to learn common concepts in the Hydra Lab project.
Depending on your auto-testing demands and device status, there are several types of Hydra Lab test agent you can set up, so please choose the right agent setup instructions according to your requirements:
Test Agent Machine OS | Test Framework Support | Instruction |
---|---|---|
Windows(X86/X64) | Android Espresso | Link |
Windows(X86/X64) | Appium Android | Link |
Windows(X86/X64) | Appium Cross Device E2E Test | Link |
Windows(X86/X64) | Appium iOS | Link |
MacOS | Appium iOS | Link |
Linux | Android Espresso | Link |
Linux | Appium | WIP |
Windows(ARM64) | Appium Cross Device E2E Test | Link |
You need to download the application.yml
which contains your agent identity token and put it under the same folder with agent.jar
as the additional application configuration. And in this YAML file, you can also customize your agent test lifecycle according to this wiki. Please navigate to the below page in your center portal, create a new agent, and follow the steps illustrated by the screenshots to download the application.yml
that belongs to your agent.
- JDK (11 and above).
To ensure your Android Test Phone can be stably connected to the agent/center service, please follow the below 2 steps as onboarding guides:
- Turn on the Android Debug mode on your phone and connect the phone to the PC with cable or ADB wireless mode (Another guideline for wireless setup).
- Set the phone lock mode as 'None' in the Phone lock screen setting page: Settings > Security > Screen Lock, and if prompted, enter your current lock screen code > None > Delete.
After a successful test run, you will find that a new app is installed on the phone called "HydraLab Client", which chiefly helps record test run videos on the phone. For some phones with customized rom (e.g.: Xiaomi), you may need to manually allow the HydarLab Client app display over other apps:
You can also add the app to the battery save mode whitelist to secure the recording service running consistently. We have pragmatically enabled it with this relevant code and this, but on some phones with customized rom you may need to configure it manually in the Setting, e.g.: Settings > Battery > Battery Optimization.
After connecting the iPhone and PC with a USB wire, you need to Choose "trust the computer" on the phone. And then you need to install the WebDriverAgent(WDA) on the phone, which is the same one used in Appium iOS testing. We offer internal support for this integration within Microsoft. Please contact Nathan or Millard to get the internal integration wiki.
- Requires a Windows device with a battery, such as a laptop.
- Need to disable UAC popup manually since the elevated privileges is required which would blocking the performance testing.
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: