public class SimulatorManager extends Object implements ISimulatorManager
| Constructor and Description |
|---|
SimulatorManager() |
public List<Device> getAllSimulators(String osType) throws InterruptedException, IOException
getAllSimulators in interface ISimulatorManagerInterruptedExceptionIOExceptionpublic Device getDevice(String deviceName, String osVersion, String osType) throws InterruptedException, IOException
getDevice in interface ISimulatorManagerInterruptedExceptionIOExceptionpublic String getSimulatorUDID(String deviceName, String osVersion, String osType) throws Throwable
getSimulatorUDID in interface ISimulatorManagerThrowablepublic String getSimulatorState(String deviceName, String osVersion, String osType) throws Throwable
getSimulatorState in interface ISimulatorManagerThrowablepublic void bootSimulator(String deviceName, String osVersion, String osType) throws Throwable
bootSimulator in interface ISimulatorManagerThrowablepublic Device getSimulatorDetailsFromUDID(String UDID)
getSimulatorDetailsFromUDID in interface ISimulatorManagerpublic void captureScreenshot(String UDID, String fileName, String fileDestination, String format) throws IOException, InterruptedException
captureScreenshot in interface ISimulatorManagerIOExceptionInterruptedExceptionpublic boolean shutDownAllBootedSimulators()
throws IOException,
InterruptedException
shutDownAllBootedSimulators in interface ISimulatorManagerIOExceptionInterruptedExceptionpublic List<Device> getAllBootedSimulators(String osType) throws InterruptedException, IOException
getAllBootedSimulators in interface ISimulatorManagerInterruptedExceptionIOExceptionpublic void uploadMediaToSimulator(String deviceName, String osVersion, String osType, String filePath) throws Throwable
uploadMediaToSimulator in interface ISimulatorManagerThrowablepublic void startScreenRecording(String pathWithFileName) throws IOException
startScreenRecording in interface ISimulatorManagerIOExceptionpublic Process startScreenRecording(String UDID, String pathWithFileName) throws IOException
startScreenRecording in interface ISimulatorManagerIOExceptionpublic void stopScreenRecording()
throws IOException,
InterruptedException
stopScreenRecording in interface ISimulatorManagerIOExceptionInterruptedExceptionpublic void installAppOnSimulator(String deviceName, String osVersion, String osType, String appPath) throws Throwable
installAppOnSimulator in interface ISimulatorManagerThrowablepublic void uninstallAppFromSimulator(String deviceName, String osVersion, String osType, String bundleID) throws Throwable
uninstallAppFromSimulator in interface ISimulatorManagerThrowablepublic void createSimulator(String simName, String deviceName, String osVersion, String osType) throws Throwable
createSimulator in interface ISimulatorManagerThrowablepublic void deleteSimulator(String deviceName, String osVersion, String osType) throws Throwable
deleteSimulator in interface ISimulatorManagerThrowablepublic List<Device> getAllAvailableSimulators() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic int getPid(Process process)
Copyright © 2018. All rights reserved.