Build your own cloud testing infrastructure
- What is Hydra Lab?
- Get Started
- Who are using Hydra Lab?
- Contribute
- Contact Us
- Links
- Microsoft Give Sponsors
- License & Trademarks
Hydra Lab is a framework that can help you easily build a cloud testing platform utilizing the test devices/machines in hand. It enables dev team to quickly build a self-manageable and intelligent cloud testing infrastructure. With the help of Hydra Lab, you can:
- Either: Create a new cloud testing network.
- Or: Onboard your test device to an existing network with a minimized effort.
Capabilities of Hydra Lab include:
- Scalable test device management under the center-agent distributed design; Test task management and test result visualization.
- Powering Android Espresso Test
- Appium(Java) test on different platforms: Windows/iOS/Android/Browser/Cross-platform
- Case-free test automation: Monkey test, Smart exploratory test
For more details, see Introduction: What is Hydra Lab?
Supported platform for Hydra Lab agent: Windows, Mac OSX, and Linux (docker).
Supported platform and framework for test devices:
Appium(Java) | Espresso | |
---|---|---|
Android | ✔ | ✔ |
iOS | ✔ | x |
Windows | ✔ | x |
Web (Browser) | ✔ | x |
Install required packages: Set Up PC Environment
Hydra Lab uses Azure Blob Storage as cloud file storage solution to persist log files, video, app package, etc. Please go to your Azure portal and open an Azure blob storage account, and get the connection string, and place it in the env var with the name of BLOB_CONNECTION_STR. Then you can run the center java with the following command:
Step 1: build and run Hydra Lab center service.
# In project root, switch to react folder to build the Web front.
cd react
npm ci
npm run pub
# Get back to the project root, and build the center runnable Jar
cd ..
gradlew :center:bootJar
# Run it, and then visit http://localhost:9886/portal/index.html#/
java -jar center/build/libs/center.jar
# Then visit http://localhost:9886/portal/index.html#/auth to generate a new agent ID and agent secret.
Step 2: build and run Hydra Lab agent service.
# In project root, copy the sample config file and update the YOUR_AGENT_NAME, YOUR_REGISTERED_AGENT_ID, and YOUR_REGISTERED_AGENT_SECRET.
cp agent/application-sample.yml application.yml
# Then build agent jar and run it
gradlew :agent:bootJar
java -jar agent/build/libs/center.jar
Technical design overview:
- Develop and Package a Test Project
- Run a Test Task in Hydra Lab
- How to Deploy an Agent
- How to Develop Appium Test Project
- How to Contribute to Hydra Lab
- The example Hydra Lab network front page hosted by Microsoft MaX team (AAD login required)
It's already powering the UI test automation of the following Microsoft products:
- Microsoft Phone Link (Windows UWP app) and Link to Windows (Android app)
- Microsoft Launcher (Android)
- Microsoft Outlook/Edge (Android/iOS)
- Microsoft Yammer/Fluent UI Android
Your contribution to Hydra Lab will make a difference for the entire test automation ecosystem. Please refer to CONTRIBUTING.md for contribution instructions.
Feel free to dive in! If you have questions about Hydra Lab, or you would like to reach out to us about an issue you're having, you can reach us as follows:
- Open an issue or submit PRs.
- Email us: [email protected].
- Hydra Lab Release Notes
- Secure a Java web app using the Spring Boot Starter for Azure Active Directory.
- Appium: Cross-platform automation framework for all kinds of your apps built on top of W3C WebDriver protocol.
- Google Android Tools Ddmlib: A ddmlib jar that provides APIs for talking with Dalvik VM.
Thank you for your contribution to Microsoft employee giving program in the name of Hydra Lab:
@Germey(崔庆才), @SpongeOnline(王创), @ellie-mac(陈佳佩), @Yawn(刘俊钦), @White(刘子凡), @597(姜志鹏)
The entire codebase is under MIT license.
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft’s Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party’s policies.