- Install JDK and set JAVA_HOME as an Environment variable
- Download Android SDK and set ANDROID_HOME as an Environment variable
- Install Maven and setup the Maven Android SDK Deployer
- Clone the following repositories from the Musala GitHub account:
atmosphere-commonsatmosphere-agent-device-libatmosphere-server-agent-libatmosphere-client-server-libatmosphere-bitmap-comparisonatmosphere-imeatmosphere-serviceatmosphere-uiautomator-bridgeatmosphere-clientatmosphere-agentatmosphere-server
-
Following the order of the above list, run:
gradlew build(on Windows) or./gradlew build(on Linux/macOS),
and if the build is successful:
gradlew publishToMavenLocal(on Windows) or./gradlew publishToMavenLocal(on Linux/macOS)
in the root directory of each of the downloaded repositories. -
Run the Server by executing:
gradlew run(on Windows) or./gradlew run(on Linux/macOS)
in theatmosphere-serverroot directory and wait until you see an output similar to this:
>> com.musala.atmosphere.server.state.RunningServer$InnerRunThread.run(RunningServer.java:47) 24 Aug 2016 11:08:49 - Running Server...
Leave the terminal open. -
Connect a physical device or run an Android emulator.
-
Run the Agent by executing:
gradlew run(on Windows) or./gradlew run(on Linux/macOS)
in theatmosphere-agentroot directory and wait until you see an output similar to this:
com.musala.atmosphere.agent.AgentManager.createWrapperForDevice(AgentManager.java:378) 24 Aug 2016 12:53:43 - Created wrapper for device with bindingId = 0149BCA70C01D00F -
Connect the Agent to the Server by running
connect <port>in the Agent terminal. By default the Server port is set to1980. It could be changed by editing thepool.manager.rmi.portproperty in theserver.propertiesfile in theatmosphere-serverroot directory.
You should now be set to run Atmosphere tests.