I am using Appium to run Android Mobile test case. I am passing below desired capabilities to execute test case:
capabilities.setCapability("platform", "ANDROID");
capabilities.setCapability("platformName", "Android");
capabilities.setCapability("deviceName", "Android Emulator");
**capabilities.setCapability("avd", "Nexus-4.3");**
capabilities.setCapability("app-activity", "MainActivity");
capabilities.setCapability("app-package", "com.example.firstapp");
Once request reached Appium its spawning emulator (which has avd name Nexus-4.3) and running the test case successfully. I am expecting Appium has to close the emulator once test case execution completed. But spawned Emulator still alive.
Is it expected behavior?
or Do I need to configure extra arguments in the Appium server to achieve this capability?
Note: iPhone simulator is getting restarted every test case execution. I need same capability in the Android emulator also.