# Setup emulators on Android Studio for automation in SimplifyQA

Using Android emulators in Android Studio allows testers to execute automated test cases without needing a physical device. This setup ensures that applications are tested across different device configurations, screen sizes, and OS versions.&#x20;

Below are the steps to configure an emulator and integrate it with SimplifyQA for automation.

### Prerequisites

Before setting up the emulator, ensure the following:

* **Android Studio is installed** on your system.
* **Android SDK and Virtual Device Manager** are configured.
* **QAWizard is stopped** to prevent execution conflicts.

### Launching the Virtual Device in Android Studio

1. Open Android Studio and navigate to the home screen.

<figure><img src="/files/wjqRhMiFWVxPQtunidCn" alt=""><figcaption></figcaption></figure>

2. Click on the "**More Actions"** dropdown and select "**Virtual Device Manager"**.

<figure><img src="/files/xgyKeEpYFnZz1ibgsZ0F" alt=""><figcaption></figcaption></figure>

3. By default, a virtual device will be available in the list.
4. Click on the **three-dot menu** next to the listed device and select "**Cold Boot"** (preferred) or directly click on the "**Run"** icon.

<figure><img src="/files/BKKjYXFsnhcEmSoGEsir" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/cajYYgvALJ3ukw6XwaS2" alt=""><figcaption></figcaption></figure>

5. The emulator will launch and be ready for testing.

### Connecting the Emulator with SimplifyQA

1. Once the emulator is running, **open the SimplifyQA application**.
2. Click on the **Connect Devices** icon.

<figure><img src="/files/cjAFC1Cwyo7XBsk1oe66" alt=""><figcaption></figcaption></figure>

2. Switch to the **Virtual Device** tab.

<figure><img src="/files/OTwWBAkLRJfgwMypOioq" alt=""><figcaption></figcaption></figure>

3. The emulator name should now be listed under the available devices.

<figure><img src="/files/wJ3MMfs3HPG1L6VqN4Jr" alt=""><figcaption></figcaption></figure>

### Adding a New Emulator in Android Studio

If you need to test on different devices, follow these steps:

1. Navigate to "**More Actions** → **Virtual Device Manager"**.
2. Click on the **"+"** icon to add a new emulator.

<figure><img src="/files/Tet24lj2xfGAsmOYYaPM" alt=""><figcaption></figcaption></figure>

3. From the left panel, choose the **device type** (Phone or Tablet). \
   Example: Select Phone for mobile testing.
4. Select the desired **device model** and click **Next**.

<figure><img src="/files/5HvL6A3tWClUJ2vmECKh" alt=""><figcaption></figcaption></figure>

5. If required, **download additional system images or packages** (confirm the popup)

<figure><img src="/files/ey99inkIPrB1OlFltxBy" alt=""><figcaption></figcaption></figure>

6. Once the download is complete, click **Finish**.

<figure><img src="/files/I9nOZT1o7wNvqjhpx6hr" alt=""><figcaption></figcaption></figure>

6. The new emulator will now be listed in the Device Manager and available for automation in SimplifyQA.

<figure><img src="/files/pq4QVXr01LQal5rEOfWd" alt=""><figcaption></figcaption></figure>

By setting up emulators correctly, teams can efficiently perform automated testing across multiple Android devices, ensuring application stability and compatibility.

### Frequently Asked Questions (FAQs)

<details>

<summary>My emulator is not showing up in SimplifyQA. What should I do?</summary>

If the emulator is not listed under **Virtual Devices** in SimplifyQA:

* Ensure that the emulator is running in Android Studio.
* Restart the SimplifyQA application and click on Connect Devices again.
* Make sure QAWizard is stopped before launching the emulator.
* Check if the ADB (Android Debug Bridge) is enabled and running correctly.

</details>

<details>

<summary>Can I test different screen sizes and Android versions using emulators?</summary>

Yes, you can add multiple emulators with different screen sizes and OS versions in Virtual Device Manager. This helps in testing application compatibility across different Android devices.

</details>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.simplifyqa.ai/simplifyqa-installation-and-setup/setup-android-device/setup-emulators-on-android-studio-for-automation-in-simplifyqa.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
