com.testvagrant.mdb.core.Mobile Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of optimus-cloud-monitor Show documentation
Show all versions of optimus-cloud-monitor Show documentation
The Java Client provides access to Optimus cloud for all java based projects.
The newest version!
package com.testvagrant.mdb.core;
import com.testvagrant.mdb.utils.Commands;
import com.testvagrant.monitor.entities.device.Platform;
import java.util.List;
public abstract class Mobile {
protected CommandExecutor commandExecutor;
protected Mobile() {
commandExecutor = new CommandExecutor();
}
public List collectDevicesOutput(Platform platform) {
String command = null;
switch (platform) {
case ANDROID:
command = Commands.AndroidCommands.LIST_ALL_DEVICES;
break;
case IOS:
command = Commands.Instruments.LIST_ALL_DEVICES;
break;
}
List devices = new CommandExecutor().exec(command).asList();
return devices;
}
protected abstract void collectDeviceDetails();
}