# Can I turn off Simulator/Emulator after test was done?

**URL:** <https://discuss.appium.io/t/can-i-turn-off-simulator-emulator-after-test-was-done/34398>\
**Category:** Support\
**Created:** [August 13, 2021, 5:22am UTC](https://discuss.appium.io/t/can-i-turn-off-simulator-emulator-after-test-was-done/34398 "2021-08-13T05:22:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Forest\_John](https://discuss.appium.io/user_avatar/discuss.appium.io/forest_john/32/9127_2.png) [@Forest\_John](https://discuss.appium.io/u/Forest_John)\
**Post date:** [August 13, 2021, 5:22am UTC](https://discuss.appium.io/t/can-i-turn-off-simulator-emulator-after-test-was-done/34398/1 "2021-08-13T05:22:16Z")

</div>

Hi.

I want to test on virtual devices and I need to turn off those devices after test is finished.

To do so, I already tried `noReset: False`.  
However, It resets the app as well, but, I don’t want to reset the app data since I logged in to the app.

Is there any capability that can turn off Simulator/Emulator after test was done?  
Or should I execute remote shell command to turn off all sim/emulators?

I want something like the following code:  
`driver.remote_shell('xcrun simctl terminate xxxx')`

But what I found is `driver.execute_script()` or `driver.execute()` which I cannot turn off virtual devices.

---

<div class="post-metadata">

**Author:** ![wreed](https://discuss.appium.io/letter_avatar_proxy/v4/letter/w/919ad9/32.png) [@wreed](https://discuss.appium.io/u/wreed)\
**Post date:** [August 13, 2021, 3:23pm UTC](https://discuss.appium.io/t/can-i-turn-off-simulator-emulator-after-test-was-done/34398/2 "2021-08-13T15:23:46Z")

</div>

In my experience the Simulators turn off when the test is done. However, if it’s not for you then you could add a script to cleanup, or do a remote shell as you said. Take a look at: `xcrun simctl` from command line.

Not sure about Emulators as I don’t use them.
