Skip to content

Test agent setup on MacOS

OliverShen edited this page Jun 8, 2023 · 14 revisions

Step 1:

Download the application.yml following the Guideline: Download the agent configuration.

Step 2:

Run installer.sh: Unzip this HydraLab_Agent_Installer_Mac.zip , copy the application.yml to the uncompressed folder, and run the installer.sh:

chmod 755 installer.sh
./installer.sh

And after the install finished, you should be able to see the agent service running and registered to your Hydra Lab center service.


Note: To restart the service, run the restartAgent.sh script in the same folder.

chmod 755 restartAgent.sh
./restartAgent.sh

Other references:

  • installer.sh details: installer.sh, the shell will automatically:
    • Install dependencies like appium, Node.JS, OpenJDK11, Android SDK, supervisor, etc., leveraging the brew package manager.
    • Copy the jar, sh, (executables), ini, and YAML (configurations) files to $userHome/Library/Server/HydraLab.
    • And register the java -jar agent.jar as a MacOS supervisor service, and then start it.
  • Running a JAR file as a background service in MAC OS
Clone this wiki locally