- 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-commons
atmosphere-agent-device-lib
atmosphere-server-agent-lib
atmosphere-client-server-lib
atmosphere-bitmap-comparison
atmosphere-ime
atmosphere-service
atmosphere-uiautomator-bridge
atmosphere-client
atmosphere-agent
atmosphere-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-server
root 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-agent
root 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.port
property in theserver.properties
file in theatmosphere-server
root directory.
You should now be set to run Atmosphere tests.