[1] Java JDK
How to install Appium Studio Community Edition (Windows or Mac): Step 1: Download the application. Step 2: Launch the installation wizard. How to install Appium Studio Enterprise Edition (Windows or Mac): Step 1: Download SeeTestAutomation. Step 2: Launch the installation wizard. When prompted, uncheck 'Run SeeTestAutomation'. OBS (Open Broadcaster Software) is free and open source software for video recording and live streaming. Stream to Twitch, YouTube and many other providers or record your own videos with high quality H264 / AAC encoding. Appium’s desktop app supports OS X, Windows and Linux Appium-Desktop for OSX, Windows and Linux We're open for discussion and would love to hear your voice in the conversation about the future of mobile apps testing! Androidに関しては、最新版のappiumで問題はない。 ただ、iOSもテストする環境として考えている場合、versionを注意したほうが良い。 自分が当時試したとき、最新版では動作しなかったのでversion指定でinstallした。.
- Open a terminal and check java version: java -version If the version is less than 1.8 or the command is not recognized you need to install java
Environment variables set up for Java JDK :
- Open a terminal.
- To edit your profile. e.g. $ vi ~/.bash_profile
- export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home
- export PATH=$JAVA_HOME/bin:$PATH
- “:wq” to Save and quit from bash_profile page
[2] Install Homebrew
Appium Desktop Download
![Download Download](/uploads/1/2/5/8/125847742/371922916.png)
- Open a terminal and run /usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
- $ brew –version. You should see something like Homebrew 1.7.1
Soulseeks for mac. [3] Install Node
- Open a terminal and run brew install node
- Test install by running npm –version. Verify version 5.X.X or greater is returned.
- Test Node is installed by running $ node -v. Verify version 8.X.X or greater is returned
[4]Install Android Studio
- Click here to download.
- Drag and drop the Android Studio icon over to Applications folder. Close the install dialog.
- Open Finder and goto Applications folder. Double click Android Studio. Select “I do not have a previous version of studio or I do not want to import my settings” and click OK button.
- Click Next.
- Select Standard Installation and click the Next button.
- Click on Finish button.
- Make note of the SDK Folder path, will help in setting to ANDROID_HOME into environment variables later.
- Select Start a new Android Studio Project. Continue with default selections and Click on Finish
- Click on Install missing platform(s) and sync project
- Click Accept
- Wait for Download to complete and then click on Finish
Environment variables set up for Android SDK :
- Open a terminal.
- To edit your profile. e.g. $ vi ~/.bash_profile
- export ANDROID_HOME=/Users/perk/Library/Android/sdk
- export PATH=$ANDROID_HOME/platform-tools:$PATH
- export PATH=$ANDROID_HOME/tools:$PATH
- “:wq” to save and quit
Jperf for mac mini. [5] To Launch Emulator (Optional)
- Launch Android Studio
- Click AVD Manager from Tools | Android | AVD Manager
- Click Create Virtual Device
- Select Nexus 6 and click Next
- Click Download link next to Nougat or Oreo OS
- Once Download is completed, select Nougat or Oreo, Click Next and Finish
- Click on Play Button to launch the Emulator
[6] Appium Installation
- Open terminal and type “npm install -g appium@versionno” to install appium globally.
- Check whether Appium is installed properly from terminal through “appium –version” command
[7]Install appium for Desktop
- Download and Install Appium Desktop from here
[8] Appium Dependencies Check
Appium Download
- Install Appium Doctor through terminal like npm install -g appium-doctor
- Once installation is successful, run appium-doctor –android to check health of android appium setup. If everything is GREEN then we are good to start.
[9]Enable Developer options
- navigate to Settings > About / About phone
- Scroll down and tap around 7 times on Build number
- Confirmation popup comes with text “Developer mode has been enabled” or “you are now a developer”
- Now come back to Settings, and you can see Developer options, turn ON this option.
- Now connect mobile / tablet to the computer, you will see device shows “USB debugging connected”
[10]Get Device Information by ADB Commands
- Connect device to computer in debug mode, open command prompt and type
- adb devices: lists devices connected to computer
- If in case, adb devices shows no result, better to use below troubleshooting steps:
type: adb kill-server and key press enter
then, adb start-server and key press enter
then try, adb devices [you should be able to see the device details now]
[11] Locate Element using UIAutomatorViewer
- To automate the App, we will need to find the elements of the app that we will use UIAutomatorViewer
- Connect the device in which App is installed to Macbook
- Go to Terminal and type ‘adb devices‘
- This will show the list of devices connected to your PC.
- Open the App which you want to automate in Mobile Device.
- To Open UIAutomatorViewer, go to the following path /Users/xyz/Library/Android/sdk/tools/bin/uiautomatorviewer
[12]Download Appium Java Client (download)
Download Appium Server
[13]Download Selenium Client Jar (download)
[14]Install TestNG in Eclipse
- Launch the Eclipse IDE and from Help menu, click “Install New Software”.
- Click “Add” button at a dialog window
- Type name “TestNG” and type “http://beust.com/eclipse/” as location
- Click OK, you will see TestNG option. Click TestNG and press “Next” button
- Click Next button again on the succeeding dialog box until it prompts you to Restart the Eclipse