GALIAF95
GALIAF95

Reputation: 637

Way to stop iOS simulator from rebooting with appium

Is there way to stop iOS simulator from rebooting with appium? So every test simulator is rebooted. It takes a lot of time. I tries noReset option as true, but did not help. I have macmini with latest os (10.12.6) and latest appium (1.2.7), XCode (9.2). What can I do?

desired_caps = {
    'platformName': 'iOS',
    'platformVersion': '11.2',
    'deviceName': 'iPad Air',
    'browserName': "Safari",
    'nativeWebTap': True,
    'safariIgnoreFraudWarning': True,
    'showXcodeLog': True,
    'clearSystemFiles': True,
    'newCommandTimeout': 600,
    'wdaLocalPort': 8100,
    'launchTimeout': 120000,
    'wdaLaunchTimeout': 120000,
    'sessionOverride': True
}

Tried to add noReset=True and fullReset=False options but it did not change anything.

It seems like it's done on purpose and can not be disabled, unfortunatelly. I have rather not so fast computer, and restarting ios simulator takes a lot of time.

Upvotes: 0

Views: 933

Answers (1)

arul christopher
arul christopher

Reputation: 219

Sim Resetting

By default, this driver will create a new iOS simulator and run tests on it, deleting the simulator afterward.

If you specify a specific simulator using the udid capability, this driver will boot the specified simulator and shut it down afterwards.

If a udid is provided and the simulator is already running, this driver will leave it running after the test run.

In short, this driver tries to leave things as it found them.

You can use the noReset capability to adjust this behavior. Setting noReset to true will leave the simulator running at the end of a test session.

https://www.npmjs.com/package/appium-xcuitest-driver . THIS MAY HELP YOU.

Upvotes: 1

Related Questions