Skip to content

microsoft/HydraLab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hydra Lab

Build your own cloud testing infrastructure

Build Status Spring Boot Appium License visitors


Logo

What is Hydra Lab?

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?

Get Started

Environment

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

Quick guide on build and run

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:

Tech Architecture

For Hydra Lab User:

For Contributor:

Who are using Hydra Lab?

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

Contribute

Your contribution to Hydra Lab will make a difference for the entire test automation ecosystem. Please refer to CONTRIBUTING.md for contribution instructions.

Contributor Hero Wall:

Contact Us

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:

Links

Microsoft Give Sponsors

Thank you for your contribution to Microsoft employee giving program in the name of Hydra Lab:

@Germey(崔庆才), @SpongeOnline(王创), @ellie-mac(陈佳佩), @Yawn(刘俊钦), @White(刘子凡), @597(姜志鹏)

Microsoft Give

License & Trademarks

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.