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. You are providing a post is very useful for develop my knowledge and I learn more info from your blog.
    Digital Marketing Course In Kolkata
    Web Design Course In Kolkata
    SEO Course In Kolkata

    ReplyDelete
  3. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...
    http://chennaitraining.in/building-estimation-and-costing-training-in-chennai/
    http://chennaitraining.in/embedded-systems-training-in-chennai/
    http://chennaitraining.in/vlsi-training-in-chennai/
    http://chennaitraining.in/matlab-training-in-chennai/
    http://chennaitraining.in/iot-training-in-chennai/

    ReplyDelete
  4. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me. oracle training in chennai

    ReplyDelete
  5. 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
  6. 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
  7. I am definitely enjoying your website. You definitely have some great insight and great stories.
    Assignment Writing

    ReplyDelete
  8. 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
  9. Mobile application development is often preferred by many e-commerce businesses due to a large number of mobile users. As a fellow Android app development company Bangalore, I really appreciate your work. Keep sharing such educational articles, great blog.

    ReplyDelete
  10. 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
  11. 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
  12. 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
  13. 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
  14. Sharing the same interest, Infycle feels so happy to share our detailed information about all these courses with you all! Do check them out
    Best Data training in chennai & get to know everything you want to about software trainings.

    ReplyDelete
  15. Infycle Technologies offers the best Data Science training in Chennai and is widely known for its excellence in giving the best Data Science Certification course in Chennai. Providing quality software programming training with 100% placement & to build a solid career for every young professional in the software industry is the ultimate aim of Infycle Technologies. Apart from all, the students love the 100% practical training, which is the specialty of Infycle Technologies. To proceed with your career with a solid base, reach Infycle Technologies through 7502633633. Best Data Science Training in Chennai | Infycle Technologies

    ReplyDelete
  16. Really wonderful blog! Thanks for taking your valuable time to share this with us. Keep us updated with more such blogs.
    AWS Training in Chennai
    AWS Online Training
    AWS Training in Coimbatore

    ReplyDelete
  17. 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
  18. Great job for publishing such a nice article. Your article isn’t only useful but it is additionally really informative. Thank you because you have been willing to share information with us. Android app development company Bangalore

    ReplyDelete

  19. 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
  20. Anyone looking for Best Consulting Firm for Fake Experience Certificate Providers in hyderabad, India with Complete Documents So Dreamsoft Consultancy is the Best Place.Further Details Here- 9599119376 or VisitWebsite-https://experiencecertificates.com/experience-certificate-provider-in-Hyderabad.html

    ReplyDelete
  21. Such a useful blog with required information. Thanks for sharing this amazing blog.
    AWS Course in Chennai
    DevOps Certification in Chennai

    ReplyDelete
  22. Such a useful blog with required information. Thanks for sharing this amazing blog.
    AWS Certification in Chennai
    DevOps Course in Chennai

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

    ReplyDelete
  24. 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
  25. 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
  26. Finish the Get Big Data Certification in Chennai from Infycle Technologies, the best software training institute in Chennai which is providing professional software courses such as Data Science, Artificial Intelligence, Java, Hadoop, Selenium, Android, and iOS Development, etc with 100% hands-on practical training. Dial 7502633633 to get more info and a free demo and to grab the certification for having a peak rise in your career.

    ReplyDelete
  27. 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
  28. Absolutely knowledgeable content. Thanks for sharing this kind of content. It is very helpful and very informative and I really learned a lot from it. Android app development company in Pune

    ReplyDelete
  29. 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
  30. 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
  31. Thanks for sharing.
    We at Antino Labs believe in redefining and refining our model to suit the industry's requirements. Antino Labs' several years of experience in the market has let us register our global presence. Antino Labs' has the vision to become the world's most trusted partner for digital transformation and we aim to become a brand that defines innovation and the latest technology. We offer clients a one-stop solution for all their interests. Click the below links if you're looking for Web Development Company in Gurgaon, Website Designing Company in Gurgaon, Technology Consulting Services, Ecommerce Account Management Services, Mobile App Development Company in Gurgaonand UI/UX Design Services.

    ReplyDelete
  32. Very nice blog, with a lot of new information. Thanks for sharing the wonderful blog. Keep going on.
    Ubs accounting
    Myob Singapore
    Best Accounting software Singapore

    ReplyDelete
  33. 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
  34. 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
  35. This comment has been removed by the author.

    ReplyDelete
  36. 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
  37. 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
  38. 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
  39. 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

  40. 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
  41. 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
  42. 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
  43. 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
  44. Dining Chairs Sydney

    The dining chairs in Sydney collection consists of various materials, fabrics, styles and colors. All the chairs have their unique features. But factors like comfortability, durability and fashion are similar for every chair out here.

    From classic black, graceful velvet, wonderful caramel to royal grey, find the right color that adorns your dining table style & room interiors. Our range delivers style for every budget.

    ReplyDelete
  45. Online Reputation Management

    Online Reputation Management is a great way to boost positive images, news, and statements happening around you or your business online.

    Online Reputation Management is the process of monitoring the online reputation of an individual or brand. This includes focusing on social media platforms like Youtube, Instagram, Youtube and Facebook.

    ReplyDelete

Post a Comment

Popular Posts