Setting up Automation for Android Using Appium

I personally had to navigate across various websites / blogs to check for each url/link and have to get it setup, which took me more time before i actually start working on automation stuff. That struggle made me come up with this Post.
I after writing this post just followed the below steps with to set it up and it worked fine.
I Hope this will help others navigating / searching other websites and wasting time, and this becomes like an one stop solution.

Please follow the below Steps to Setup:

Appium + Selenium + Cucumber + TestNG
  1. Install Eclipse / Intellij IDE Tool
    http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/lunasr1
  2. Download Java
    http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
  3. Download Android Studio
    https://developer.android.com/studio/preview/index.html
  4. Download / Install Appium now
    You can download from this url - http://appium.io/   Or else can do it over command line:
    1. Install npm and node or Install GIT bash - https://git-for-windows.github.io/   
               Note: If node is not installed , please goto the url - https://nodejs.org/en/download/
           2Now open gitbash and check for "npm -v" and "node -v" (to make sure its installed)
           3. Now enter the command npm install -g appium (this will install the current version of appium)
          4. Now to start appium type in : appium -a 127.0.0.1 (if successfully installed you should see the appium server starting
  5. Create Maven based Project from Eclipse now
  6. Load all the dependencies on POM.XML
    - Get the TestNG / Junit Dependency
    - Get the cucumber-html ,cucumber-core, cucumber-junit, cucumber-jvm-deps, gherkin, cucumber-testng
    - Get the selenium dependency: selenium-java, selenium-server-standalone
    - Get the appium dependency: java-client
  7. Get the Eclipse plugin added for cucumber :                                               http://cucumber.github.com/cucumber-eclipse/update-site
    https://marketplace.eclipse.org/content/cucumber-jvm-eclipse-plugin
  8. Get the Eclipse plugin added for testng
    https://marketplace.eclipse.org/content/testng-eclipse
  9. Now it all good to start writing Gherkin Language scripts to automate
  10. Make sure you have the below installed as well:
    -  Install the ADT Plugin for Eclipse (Android Studio Manager will be installed - this is needed for the supported Android API's to run with)
    https://stuff.mit.edu/afs/sipb/project/android/docs/sdk/installing/installing-adt.html
    -  Now once the Plugin is installed , Under Window Option in eclipse you should be able to see Android SDK Manager and Android Virtual Device Manager option
    -  Now tap on Android SDK Manager and Now this loads the Android SDK Manager window.
       Make sure you select the related API version to be installed (Like Android 6.0 API 23 -Expand and Select SDK Platform etc
       Also select Android SDK Tools, Android SDK Platform-tools
       Under Extra folder to select mandatory ones like
              > Google Play services
              > Google USB Driver
  11. Once its done goto Your Control panel and look for Advanced System Settings and Select Environment - Add JAVA_HOME Path ex: would be "C:\Program Files\Java\jdk1.8.0_131\bin"
     - Add Android_HOME Path ex: "C:\Users\AppData\Local\Android\sdk\"
     - Include "C:\Users\android-sdks\platform-tools" in the Path variable as well - This allows you to work with adb commands
    - Now in the same environment , select Path variable and append the above two paths into it (BE CAREFUL WHILE DOING THIS, Make sure u copy the existing path before appending anything so that you don't miss out the existing one)
  12. Now open cmd / terminal window and type in : adb (if its installed sucessfully it should throw u the version)

Comments

  1. This comment has been removed by the author.

    ReplyDelete
  2. Android is operating on a very large base of mobile devices, this is why businesses often look for companies that are versed in developing Android applications. As a company providing Android Application Development Services in Dubai, I am glad to come across this blog. Thanks for sharing.

    ReplyDelete
  3. It's a decent post, Which you have shared here. Your blog is enlightening and I truly loved the manner in which you communicated your perspectives in this post. Thank you for sharing such blogs. Affordable ADT Home Security Systems package USA

    ReplyDelete
  4. Selenium is a popular and widely used automation tool. I appreciate the writers efforts in writing this informed article. As someone regularly working with Selenium and providing Selenium Training Institute in Chennai, I am glad to come across this. Thank you for sharing this tutorial.

    ReplyDelete
  5. I have gone through your post and i found it very helpful. Please do share such kind of interesting post. Otherwise if any One Want Java Training with 30% off So Contact Here-9311002620

    Job Oriented Complete JAVA Training Course

    ReplyDelete
  6. Very interesting. Your article is so convincing that I can never stop myself from saying anything about it. You are doing a great job, thanks for sharing such a great blog. Best Online Software Training Institute In Hyderabad

    ReplyDelete
  7. You are providing good knowledge. It is really helpful and factual information for us and everyone to increase knowledge. Continue sharing your data. Thank you. Certified Language Courses Online for beginner

    ReplyDelete
  8. Your contents are completely awesome and share worthy. I really appreciate your efforts that you put on this. Keep sharing. For more RPA Service Providers India related information visit Webuters Technologies Pvt. Ltd.

    ReplyDelete
  9. I have read all the comments and suggestions posted by the visitors for this article are very fine,We will wait for your next article so only.Thanks! Android apps

    ReplyDelete

  10. I agree so much. we should all be reinforcing positive feedback within the comment sections. So many good points to take into consideration.
    When people have good things to say about my web site Prasoon Kumar Arya it really makes positive impact.

    ReplyDelete
  11. This comment has been removed by the author.

    ReplyDelete
  12. I'd like to express my gratitude for sharing such an excellent article. The article is instructive because it offers some useful information. Thank you for sharing it with us. Continue to post. Certified Magento Developer

    ReplyDelete
  13. It’s great to come across a blog every once in a while that isn’t the same out of date rehashed material. Fantastic read. Best Scada in Abu Dhabi service provider.

    ReplyDelete
  14. Infycle Technologies, the No.1 software training institute in Chennai offers the No.1 Big Data Hadoop Training in Chennai | Infycle Technologies for students, freshers, and tech professionals. Infycle also offers other professional courses such as DevOps, Artificial Intelligence, Cyber Security, Python, Oracle, Java, Power BI, Selenium Testing, Digital Marketing, Data Science, etc., which will be trained with 200% practical classes. After the completion of training, the trainees will be sent for placement interviews in the top MNC's. Call 7502633633 to get more info and a free demo.

    ReplyDelete
  15. Thanks for taking your valuable time to share this awesome article with us. This is really informative. Looking forward to learn more from you.
    Cloud Computing Training in Chennai
    Cloud Computing Online Training
    Cloud Computing Course in Coimbatore



    ReplyDelete
  16. The information you've provided is quite useful about Job Oriented Vlsi Training. It's incredibly instructional because it provides some of the most useful information. Thank you for sharing that.

    ReplyDelete
  17. You have written impressive articles on Android application development, I really commend your work. Thanks for posting it. Keep sharing your valuable knowledge and expertise. Looking forward to learn more, great blog. Top Android App Development Agency in USA

    ReplyDelete
  18. Thanks for your post. It's very helpful post for us. You can also visit Android Application Development Company Dubai for more Victor Steel related information. I would like to thanks for sharing this article here.

    ReplyDelete
  19. This comment has been removed by the author.

    ReplyDelete
  20. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. I hope you post again soon. Big thanks for the useful info. Top Android App Development Agency in USA

    ReplyDelete
  21. This post is really awesome. Genuinely i like this blog. It gives me more useful information. I hope you share lots of things with us .Biometric Punching Mechine Solutions Dubai

    ReplyDelete
  22. Get the best Oracle Training in Chennai from Infycle Technologies, one of the excellent Software Training Institute in Chennai. Great place to study Oracle and we also provide all technical courses like Oracle, Java, Data Science, Big data, AWS, Python, etc. with the best trainers receiving the amazing training for the best career. For more details and demo classes call 7504633633.

    ReplyDelete
  23. I am attracted by the presentation of this article. It is a genuinely a gainful article for us. Keep posting, Thank you.Mobile App Development

    ReplyDelete

  24. I explore your all post and found some great information which is definitely useful for me in the future.
    herefor all students on here we have an all assignment service to help you guys to complete their assignment WEB Designing Services in chandigarh

    ReplyDelete
  25. Thanks for a very interesting blog. What else may I get that kind of info written in such a perfect approach? I’ve an undertaking that I am simply now operating on, and I have been looking for such info.mobile application development company uae

    ReplyDelete
  26. Extremely useful information which you have shared here. This is a great way to enhance knowledge for us, and also helpful for us. Thankful to you for sharing an article like this full stack development company in usa

    ReplyDelete
  27. Merkur 37C Safety Razor Review – Merkur 37C
    The Merkur 37c is an excellent short handled DE safety razor. It is more suitable for aprcasino both heavy and non-slip hands https://sol.edu.kg/ and is deccasino therefore a great poormansguidetocasinogambling.com option for experienced

    ReplyDelete

  28. خرید و فروش آهن آلات

    خرید و فروش انواع آهن الات شامل لوله ، نبشی ، ناودانی ، ورق ، پروفیل ، تیر آهن ، استیل ، فولادهای آلیاژی ، میلگردهای صنعتی توسط آهن استقلال

    خرید و فروش آهن آلات

    ReplyDelete

  29. Online Reputation Management Tool

    QuickMetrix is a social media listening tool that allows you to monitor and analyze social media conversations about your brand, industry, competitors, and more. It provides real-time insights and analytics, allowing you to track sentiment, engagement, reach, and other metrics across various social media platforms like Facebook, Twitter, Instagram, and LinkedIn.

    QuickMetrix can help you identify trends, understand your audience, measure the effectiveness of your social media campaigns, and make data-driven decisions. It offers features such as sentiment analysis, influencer identification, competitive analysis, crisis management, and reporting.

    Overall, QuickMetrix is a useful tool for businesses that want to stay on top of social media conversations and optimize their social media strategy for better engagement and ROI.

    ReplyDelete

Post a Comment

Popular Posts