Configure Appium Server and Android Virtual Device
๐ In my previous blogs I discussed about installing pre-requisites and setting up environment variables need for Appium. If you still did not get a chance to read my previous blogs you can find it from here.
Okay then, Letโs start configure Android Emulator.
- Open Android Studio
- Create New project
3. Select Basic Activity
4. Keep the default values for now and click on Finish
4. Wait few minutes until Android Studio completes its loading of new project with all required configurations.
Note : Indexing should be completed.
5. After building the new project successfully, you will see no project syncing is in progress.
6. If the project is built successfully you will see AVD Manager and SDK Manager options in Tools as below.
7. Select AVD Manager and click on Create Virtual Device
AVD : Android Virtual Device
8. Select the virtual device you need to create and click on Next
eg. Pixel 3a
9. You can see available Android versions here. Select the API level you need for your virtual device
eg. API Level : 30
10. Click on the Download link to download the latest version. This will take few minutes to complete the installation
11. Once version installation is done click on Finish.
12. Now you will navigate back to the below window and you can see Download link is not appearing anymore in front of the latest Android version, since we have just completed its installation.
13. Go ahead and click on Next
14. Keep the default settings in AVD verify configuration screen and click on Finish
12. Select the created virtual device and click on start button under Actions to launch the AVD or the Emulator.
This will take few seconds to launch the Emulator and boot up the OS.
Perfect ๐ช ๐ช this marks a successful completion of configuring AVD or the Emulator in your Mac. ๐ป
๐ Letโs move to the Appium Server Installation.
If you are still not know of what is Appium Server and how it works you can find more details in my first blog.
Appium Server Installation Steps
- Open your Terminal
- Execute command to install Appium globally in your Mac
sudo npm install -g appium
If you are on Windows platform, open Terminal as administrator and execute command โnpm install -g appiumโ
Note :
npm : Node Package Manager
This command will support if only you have already installed Node and set System variables for Node.
3. Type your machine password and hit enter to continue Appium installation.
Wait for installation get completed.
4. Execute command appium to start Appium Server.
Note:
In first line, you can see Appium version with Welcome text.
In second line you can see Appium server has been started running on 4723 port.
Job well done peeps..๐๐ You have successfully configured Android Virtual Device and Appium Server.
See you in the next bog..โ๐ฅ