#Virtual Devices 📲
A software which creates an virtual environment which looks and behaves like the real mobile device, having all the functions of a mobile device. Emulator and Simulator are virtual devices we use in mobile Testing.
#Types of Virtual Devices:
➪ Emulator 📲
➪ Simulator 📱
- For Android testing we use Emulator.
- For iOS testing we use Simulator.
#Emulator and Simulator:
An emulator imitates functions and features of another mobile device, having software and hardware specifications. By using emulator we can understand how our application in real device would behave.
Simulator shows us the software by imitating various product configurations that exist in real device.
#Difference between Emulator and Simulator 📲
- It imitates hardware,software,and Operating system of an mobile device.
- For debugging purpose emulators are the best and suitable.
- Written in High-level language.
- Emulators are slow, its software runs slow because it imitates the actual hardware device which make it slow.
- For example:Google’s Android Sdk.
- It imitates only software and its important functionalities and Operating system.It doesnot replicate the actual hardware.
- Not suitable for debugging.
- Written in machine level assembly language.
- Simulators are fast.
- For example Apple’s iOS Simulator.
#When use Emulator or Simulator
When we should use Emulator:
To test how our app interact with different models of mobile devices and combination of hardware and software, we use Emulators.
For example: if we want to know how our application performs on various display sizes and different memory mobile devices, so emulator helps in this testing.
When we should use Simulator:
We should use simulator when our main target is to confirm that our application will work as expected when interacting with external applications or environment.
For example: you want to make data to communicate between two applications or to ensure how application will work with different screen resolutions.