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
best software testing companies in hyderabad
software testing internships in Hyderabad
honeymoon packages in andaman
andaman tour packages
andaman holiday packages
andaman tourism package
family tour package in andaman
laptop service center in chennai
Math word problem solver
Math problem solver
Math tutor near me
web design company in chennai
website designers in chennai
web development company in chennai
website designing company in chennai
ERP Restaurant Management Software in Lucknow
Inventory Management Software in Lucknow
Hospital Managment Software System in Lucknow
Automation Anywhere Training in Chennai
Automation courses in Chennai
Automation Training in Chennai
Blue Prism Training in Chennai
Blue Prism Training in Anna Nagar
RPA course in Chennai
RPA Training Institute in Chennai
RPA Training in Anna Nagar
chile web hosting
colombia web hosting
croatia web hosting
cyprus web hosting
bahrain web hosting
india web hosting
iran web hosting
kazakhstan web hosting
korea web hosting
moldova web hosting
AngularJS Training in Pune
selenium training in tambaram
selenium training in Chennai
Software Testing Training in OMR
RPA Training in Anna Nagar
Web Designing Course in Porur
PHP Training in T Nagar
Dot Net Training in T Nagar
Python Training in Tambaram
Android Training in Anna Nagar
Spoken English Classes in Anna Nagar
selenium training in velachery
selenium training in tambaram
java training in tambaram
SEO Training in Anna Nagar
Software Testing Training in T Nagar
Python training in chennai
Android Training in OMR
Software testing training in Anna Nagar
RPA Training in T nagar
Web Designing Course in T Nagar
SAP Training in Chennai
Hardware and Networking Training in Chennai
Cloud Computing Training in Chennai
Pearson Vue Exam Center in Chennai
Oracle Training in Chennai
.Net Training in Chennai
Java Training in Chennai
Software Testing Training in Chennai
AWS Training in Chennai
CCNA Training in Chennai
Manual Testing Training in Chennai
QTP Training in Chennai
Selenium Training in Chennai
SoapUI Training in Chennai
Software Testing Training in Chennai
Zplus Cyber Secure Technologies
Website Development Melbourne
Custom website development Melbourne
Wordpress website development Melbourne
Thanks for giving this information…
ISO 9001 lead auditor training Bahrain
Software Testing Training Institute in Delhi
Software Testing Training Institute in Delhi
"
"
https://www.htsindia.com/Courses/modular-courses/c-plus-plus-training-course
An excellent idea you have shared. Thank you for the useful info. Share more updates.
Azure Online Training
microsoft azure online training
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
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
Best testing and performance tools in Hyderabad
Best software & web development company in Hyderabad
Power to Know about Software Testing Training in Delhi, India
National Awarded SAP Training Institute in Delhi with Job Support
Software Testing Course in Chennai
software testing institute near me
Best Software Testing Institute in Bangalore
what is machine learning?
why is machine learning important?
Job-Oriented Software Testing Training for B.Tech Students
JAVA Training Institute - Selecting the Right Institute is Important
more info
more help
Automation tester & Manual Tester jobs available in Chennai
it solutions company
it infrastructure consulting services
dubai cctv company
ip pbx dubai
dubai web developer
software development company uae
mobile app development company in dubai
email marketing dubai
Quality Engineering Services in USA
Software Testing Training Toronto
Quality Analyst Course