Appium Configuration with Visual studio for selenium C# development

Prerequisites: 1. Visual Studio Ultimate (2010 or above) (Because MSTest is present in that) 2. Android SDK For Windows (Download Link) (Website link) 3. Appium For Windows (Website Link) (Download Link) 4. A Real Android Device running Android 4.2 or Above 5. A USB Cable to attach your Android Phone to Your PC. 6. ADB Interface Drivers for your device (Link on how to get that ) (very important Step) Some Configurations for Android SDK and Appium: • When you have installed Android SDK, go to My Computer, right click, click Properties, click Advanced System Settings, and click Environment Variables. • Create a new User Variable with the name “ANDROID_HOME”. Give path to your sdk folder in the value. The default path is C:\Program Files (x86)\Android\android-sdk • Edit the PATH variable in “System Variable” Section. Append the path to your tools folder and platform-tools folder. Separated with “;” The paths are C:\Program Files (x86)\Android\android-sdk\tools C:\Program Files (x86)\Android\android-sdk\platform-tools See the image below. • Connect your Android Device with USB Cable. To make sure your android Device is connected with your PC, we have to do following. Go to C:\Program Files (x86)\Android\android-sdk\tools. Click on “uiautomatorviewer.bat”. A window will open. See Image. You can use this window to inspect the elements of your app in android. Open the appropriate app in your android device and click on “Device Screenshot” button on this screen. If you receive this error message “No Android devices were found by adb” That means adb interface drivers are not installed on your system. You have to read again point number 6 in the Prerequisites section. If android device is successfully connected, you should see a snapshot along with Object Map in this window like this. •Unzip AppiumforWindows.zip in a folder. Open Appium.exe, you should see a window like this. Click on the android Icon on the top left of this window. You will see a window in which you can configure the platform and version of your android on which you want to test. I have filled the following configurations there. Now click on the Play button on the top right corner of the window. Appium server will start with the configurations you have provided. •Developer options should be enabled on your android device, with these two options. Usb Debugging should be enabled. Stay Awake should be enabled. Now it is time to code. Open Visual Studio Ultimate (2010 or above) Create a UnitTest project. Install “Appium Web Driver” and “Selenium WebDriver” using NuGet package manager. (The easiest way) If you don’t want to use NuGet package manager, you can manually download Appium dot net driver and selenium web driver c# libraries and add them to your solution Your reference section should look like this. For every application you want to test, you must know its package name and app activity name. So to know about these attributes, you need to download a little android app on your phone. It is called apkInfo. It will show you the package name and activity name of any android app installed on your phone. Just pass these parameters here and that app will launch on your phone by automation code. Conclusion. If you are familiar with Selenium WebDriver, coding in Appium is not so different. Only problem was the configuration. If you have done this right, you should be able start writing scripts for your android. I tried to explain this as simply as possible.

Comments

Thank you for your post. This is excellent information. It is amazing and wonderful to visit your site.
best software testing companies in hyderabad
software testing internships in Hyderabad
Priya Pandey said…
Hey Nice Blog!!! Thank you for sharing information. Wonderful blog & good post.Its really helpful for me, waiting for a more new post. Keep Blogging!

ERP Restaurant Management Software in Lucknow
Inventory Management Software in Lucknow
Hospital Managment Software System in Lucknow
kloudportal said…
Excellent and very cool idea and the subject at the top of magnificence and I am happy to comment on this topic through which we address the idea of positive re like this. Online Exam Software
Technogeekscs said…
Very Good Blog. Highly valuable information has been shared. Great information has been shared.
AngularJS Training in Pune
Alfred Avina said…
The article is so appealing. You should read this article before choosing the Big data cloud solutions you want to learn.
pooja said…
after reading i had clear my question about testing. thanks for sharing
Zplus Cyber Secure Technologies
Hugo said…
This really is my first time i visit here. I discovered so many entertaining stuff in your blog, especially its discussion. From a great deal of comments in your articles, I guess I am not alone having all of the leisure here! Maintain the superb work.It is very useful who is looking for top software testing companies
Hafeezriyas said…
Impressive! I really like this blog, keep update.
Thanks for giving this information…
ISO 9001 lead auditor training Bahrain
Learn Core to Advanced Level Software Testing Training Course with Placement Assistance Offer. Further More Information Here-+91-9311002620 Or Visit Website- https://www.htsindia.com/software-testing-training-courses
High Technologies Solutions offers selenium training with choice of multiple training locations across Delhi. Further More Details Here-+91-9311002620 Or Visit Website- https://www.htsindia.com/Courses/Software-Testing/selenium-training-course-institute
digitalhts said…
Thanks for this great and helpful post. it is really knowledgeable post. keep it up. keep poating. otherwise anyone wants to learn MIS course so, contact here- +91-9311002620 or visit website- https://www.htsindia.com/Courses/business-analytics/mis-training-instiute-in-delhi
This is an outstanding post on this blog. I’m happy to see it here. It’s a very helpful and overwhelming little bit of details. It’s wonderful to share this kind of Details.
Software Testing Training Institute in Delhi
This is an outstanding post on this blog. I’m happy to see it here. It’s a very helpful and overwhelming little bit of details.

Software Testing Training Institute in Delhi
A very very informative content you put in your blog. Thanks for sharing this kind of information I really learned a lot from it. Further More Information About Selenium Training Institute in Delhi So Contact Here-+91-9311002620 Or Visit Website-https://www.htsindia.com/Courses/Software-Testing/selenium-training-course-institute
It’s really helpful blog. I really appreciate your information which you shared with us. If anyone who want to create his/her carrier in Software Testing. Get a free demo call on 9311002620 or visit https://www.htsindia.com/software-testing-training-courses
james smith said…
"this was vey ideal blog for vehicles. if you need to see more , check this site Latest vehicles and bikes

"
james smith said…
"this was vey ideal blog for vehicles. if you need to see more , check this site Latest vehicles and bikes

"
Anonymous said…
Great Work. I always use to follow your valuable contents. Thanks for sharing this kind of knowledge. It is very helpful and very informative and I really learned a lot from it. Further More Information About AUTOCAD Training Institute in Delhi So Contact Here-+91-9311002620 Or Visit Website- https://www.htsindia.com/AutoCAD-training-courses
A big thank you for sharing this post your content is really good apart from that if anyone is looking for a training institute for C++ training.Contact Here-+91-9311002620 Or Visit post Website-
https://www.htsindia.com/Courses/modular-courses/c-plus-plus-training-course
Thanks for sharing this content in your post its really good by the way if anyone looking for Core and Advanced Java training institute in delhi so contact here +91-9311002620 visit https://www.htsindia.com/java-training-courses
Thanks for sharing this amazing post this is the content i really looking for, its very helpful i hope you will continue your blogging anyway if anyone looking for java training institute in delhi contact us +91-9311002620 visit-https://www.htsindia.com/java-training-courses
Anyone looking for Best Consulting Firm for Fake Experience Certificate Providers in bangalore, India with Complete Documents So Dreamsoft Consultancy is the Best Place.Further Details Here- 9599119376 or VisitWebsite-https://experiencecertificates.com/experience-certificate-provider-in-bangalore.html
Easy Shiksha said…
Great Blog I Have Read Your Blog It Is Very Useful For Me Thank you for posting and sharing such great information.can you help me in finding out more detail on Become a Software Tester.
hema said…

An excellent idea you have shared. Thank you for the useful info. Share more updates.
Azure Online Training
microsoft azure online training

Hey admin, I found some really interesting things. Thank you so much for sharing this. Google Chrome Tips Clear Cache, Cookies, History
Thanks for sharing this post and its very help, Also Check this Ways to Hide or Show Windows Security Icon on Taskbar
Blog Soft Web said…
I enjoyed over read your blog post.
Your blog have nice information, I got good ideas from this amazing blog.
I am always searching like this type blog post. I hope I will see again… Uses Of Task Scheduler in Windows 10
I truly like to reading your post. Thank you so much for taking the time to share such a nice information Windows 10X- An Overview
Tech said…
Nice Article....

Augurs Technologies is a single point of contact for software development services and platforms that provide specialized solutions. We develop software for various sectors, such as retail, finance, education, healthcare and housing, hospitality, maritime transport, electronics industry.
Software Development company in lucknow
Cyanous said…
Nice blog..clearly explained…Thankyou so much for your wonderful information…Looking for the best testing and performance tools in Hyderabad contact cyanous software solutions now.

Best testing and performance tools in Hyderabad
Best software & web development company in Hyderabad
Wow your blog is good. I am a regular visitor to your blog. Your article is very interesting. I have got some new ideas after reading your articles.

Power to Know about Software Testing Training in Delhi, India

National Awarded SAP Training Institute in Delhi with Job Support
Monisha said…
Wonderful Blog, thanks for sharing this blog with us, waiting for your next update.
what is machine learning?
why is machine learning important?
There is lots of post I read about Corporate but your Post is SO Good and stuff of Knowledge Anyway Thanks for Sharing an Informative Information.

Job-Oriented Software Testing Training for B.Tech Students
JAVA Training Institute - Selecting the Right Institute is Important
Hariharan D said…
This comment has been removed by the author.
Hariharan D said…
Thank u for sharing an information about software testing. And also I cleared my doubts about software testing in visit software testing board where you can get all information about software testing
Tanay patil said…
check out our guide on blog promotion. Hopefully, you will get some more ideas to help you promote your blog.
more info
Devya said…
I just clear my concept about backlinks you’re brilliant
more help
sam kirubakar said…
I am really very happy to visit your blog. Directly I am found which I truly need. please visit our website for more information
Quality Engineering Services in USA
Roicians said…
Thanks for this post. It is Very nice Blog. I like it. Thanks for sharing knowledge. Ask you to share good Blog again.

Software Testing Training Toronto
Quality Analyst Course

Popular posts from this blog

Cyclomatic complexity