All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.testvagrant.mdb.core.Mobile Maven / Gradle / Ivy

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();


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy