Setting Up and Configuring Appium on Windows with a Basic Program for a Swift Commencement:
Appium is a no-cost, open-source automation testing instrument largely utilized for examining mobile apps. It grants users the ability to test a variety of mobile apps, including Native, Hybrid, and Mobile Web, utilizing the standard WebDriver library.
Recommended IPTV Service Providers
- IPTVGREAT – Rating 4.8/5 ( 600+ Reviews )
- IPTVRESALE – Rating 5/5 ( 200+ Reviews )
- IPTVGANG – Rating 4.7/5 ( 1200+ Reviews )
- IPTVUNLOCK – Rating 5/5 ( 65 Reviews )
- IPTVFOLLOW -Rating 5/5 ( 48 Reviews )
- IPTVTOPS – Rating 5/5 ( 43 Reviews )
Three Distinct Categories of Mobile Applications Exist:
- Native Applications: These applications are constructed utilizing iOS, Android, or Windows SDKs. They are platform-dependent and intended to operate on particular platforms and/or gadgets.
- Hybrid Applications: Hybrid applications are web applications fashioned using HTML, CSS, and a native application wrapper like UIWebView for iOS and “webview” for Android applications.
- Mobile Web Applications: Mobile web applications are accessed via mobile browsers.
Index of Guides in This Appium Sequel
Tutorial #1: Appium Guide for Novices (This Guide)
Tutorial #2: Introduction to Appium: Understanding Appium and Its Structure
Tutorial #3: Download, Setup and Install Appium for Windows
Tutorial #4: Establishing Mobile Gadget Configuration with System in Appium
Tutorial #5: Automate Native App on Android Gadget Using Appium
Tutorial #6: Guideline on How to Automate Web App on Chrome Browser in Android Gadget
What Will Be Taught:
Why is Appium Favored for Mobile App Automation?
Appium is a “cross-platform instrument,” which means it permits you to create tests for numerous platforms (iOS, Android, Windows) utilizing the same APIs. With Appium, automated tests can also be run on real devices, such as tablets and mobile phones.
It is massively used for regression testing of mobile applications on several devices. Appium streamlines mobile app regression testing, primarily for expansive applications that are frequently updated with new features and performances.
Establishing the Appium Instrument on Windows
Essential Aspects: To automate mobile app tests with Appium, you will require the following software and hardware:
- Your PC should be set up with JDK, Appium Server, Eclipse, and Android SDK
- Apk: Mobile Application selected for automation
- Testing Device: In this scenario, we will employ a Moto G gadget
- Jars: Java-client jars, as well as Selenium Jars
- USB driver for Testing Device: In this scenario, a Moto G gadget
Step #1: Install the Java Development Kit (JDK)
Step #2: Establish Java Environment Variable Path
Step #3: Download and install Android SDK here and update the APIs
To update API, open Eclipse, click on Window in the Eclipse Menu, and select Android SDK manager
The APIs should be updated as shown in the screenshot below:
Step #4: Download and set up Appium for Windows from here
Step #5: Install Node JS from here
Step #6: Fix the ANDROID_HOME path along with the JAVA_HOME path
Define the path for tools and platform-tools available in the Android SDK path
These folders would be present in adt-bundle-windows-x86_64-20140702sdk
We now have to update the Environment variable (Refer below Screenshot)
(Observe: Click on any image for a magnified view)
Update the path with tools and platform-tools (folders present in the Android SDK)
The entry in Path will appear as follows:
C:Program Filesnodejs;%ANDROID_HOME%tools;%ANDROID_HOME%platform-tools
Step #7: Access adb
Apply Win+R keys combination
Type CMD. Now in CMD type ‘adb’. adb will be accessible
Making Mobile Device Ready for Automation with Appium
Connect your Mobile Testing device to PC via a USB. Activate Developer Mode on Mobile Phone prior to app automation.
Guide to Activating Developer Mode/Options on Android Phone or Tablet:
1) Enter Settings, Tap on ‘About’ Option, Tap on ‘Software Information’, Tap On ‘More’.
2) Tap on “Build number” 7 times to activate Developer options.
3) Return to Settings and ensure that the “Developer options” setting appears.
4) Tap on Developer options and switch on the USB Debugging option from the menu on the subsequent screen.
For supplemental help, follow this hyperlink.
5) Download and install USB Drivers for the Mobile Testing gadget on PC.
6) In the adb terminal, type ‘adb devices’
C:UsersNEERAJ>adb devices
Enumeration of devices attached
TA93305G0L device
This will display the enumeration of devices connected to the system. We will use the Sample Contact Manager.apk as a sample App to automate. Download and install Contact Manager.apk on the gadget.
Commencing Automation of Android Application Using Appium
Now execute the appium.exe on PC.
Appium needs to be executed and pass the following parameters and Device Name in Android Settings.
Note: Do not alter the port number or anything in the general setting icon. When the Appium Server initiates, the Server address and Port address will be set by default. The port address will be 4723 by default.
With Android Setting, the user has to set the APK path location, verify app path, packet, and launch activity.
- Connect your Android phone to PC and activate USB debugging mode.
- Open Command prompt.
- Type command ‘adb logcat’.
- Launch the app on your android phone. Instantly press ‘CTRL + C’ in the command prompt
‘com.example.android.contactmanager’ is the package name and ‘com.example.android.contactmanager.ContactManager’ is the contact manager app’s activity name.
In the above screenshot, we have populated all the needed details in Appium, i.e. the packet, launch activity, and Mobile Gadget Name.
How to Identify Element Using UIAutomatorViewer?
1) To automate the Application, we must first locate the elements of the app we need to interface with, hence, we will use ‘UIAutomatorViewer’.
2) Connect the device with the installed App to the PC.
3) Proceed to Terminal.
Type ‘adb devices’.
C:UsersNEERAJ>adb devices
Enumeration of devices attached
TA93305G0L device
This will show the enumeration of devices connected to your PC.
4) Launch the App you wish to automate on the Mobile Device.
5) Launch UIAutomatorViewer from the following pathway:
adt-bundle-windows-x86_64-20140702sdktools
<a href=”https://iptvassist.com/wp-content/uploads/