Skip to content

Test agent setup on MacOS

Nathan Bu edited this page Mar 15, 2023 · 14 revisions

Step 1:

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

Step 2:

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

chmod 755 installer.sh
./installer.sh

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

Other references:

  • Running a JAR file as a background service in MAC OS
  • 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 files to $userHome/Library/Server/HydraLab.
    • And register the java -jar agent.jar as a MacOS supervisor service, and then start it.

Clone this wiki locally