6 | Appium Step by Step | How to setup and use Appium Inspector

Описание к видео 6 | Appium Step by Step | How to setup and use Appium Inspector

Setup and Start Appium Inspector
00:00 Intro
00:47 What we will learn
02:05 Download and install Appium Inspector https://github.com/appium/appium-insp...
OR
Use web version: https://inspector.appiumpro.com/

08:45 : Start Appium Inspector
As we have not yet started appium server you will get error message

09:14 Start appium server by running command appium
If you are using the web version of Appium Inspector start appium using command appium --allow-cors

Note the host and port of appium server and provide the same in Appium Inspector

Now again click on Start Session on Appium Inspector
This time you should see the error message for desired capabilities and not for appium server

12:29 Add the Desired Capabilities as per the mobile device or emulator connected to the system

deviceName - can get using command adb devices
platformName - can get using command appium driver list
platformVersion - can get using command adb shell getprop ro.build.version.release
If you have multiple devices connected first get the device id using adb devices then run command
adb -s DEVICE_ID shell getprop ro.build.version.release

app - provide the location of APK file

adb shell getprop ro.build.version.sdk
This command will provide the API level (e.g., “30” for Android 11, “29” for Android 10, etc.)

{
"appium:automationName": "UiAutomator2",
"appium:platformName": "Android",
"appium:platformVersion": "11",
"appium:deviceName": "4b316ae9",
"appium:app": "/Users/raghavpal/Katalon Studio/Android Testing Project/androidapp/APIDemos.apk"
}

20:53 Save and click on Start Session on Appium Inspector
This should start the session


26:39 How to use Emulator with Appium Inspector

Step 1 - Start appium appium --allow-cors
Step 2 - Start Emulator or Connect Physical Device
emulator -list-avds
emulator -avd AvdName

To start AVD in a new state (w/o maintaining the old state)
emulator -avd avd_name -no-snapshot-load

Step 3 - Run command adb devices to see the device id. Can use this for deviceName
Step 4 - Get the Android version of your device or emulator
adb shell getprop ro.build.version.release android version

If you have multiple devices connected first get the device id using adb devices then run command
adb -s DEVICE_ID shell getprop ro.build.version.release

adb shell getprop ro.build.version.sdk api level

Step 5 - Check the appium drivers available appium driver list
Step 6 - Get location for a demo APK file (for android)
Step 7 - Add all details in the Desired Capabilities of Appium Inspector

{
"appium:automationName": "UiAutomator2",
"appium:platformName": "Android",
"appium:platformVersion": "14",
"appium:deviceName": "emulator-5554",
"appium:app": "/Users/raghavpal/Katalon Studio/Android Testing Project/androidapp/APIDemos.apk"
}
Step 8 - Start Session


35:10 How to use Browserstack Devices with Appium Inspector

Use Appium Inspector desktop version
Step 1 - On Appium Inspector top menu click Select Cloud Providers and select Browserstack
Step 2 - Create account on Browserstack and get your username and accesskey
Step 3 - On Browserstack upload your application or use the demo application
Step 4 - If needed can use capabilities generator https://www.browserstack.com/app-auto...
Step 5 - Add the browserstack username, accesskey and desired capabilities in Appium Inspector

{
"appium:automationName": "UiAutomator2",
"platformName": "Android",
"appium:platformVersion": "9.0",
"appium:deviceName": "Google Pixel 3",
"appium:app": "bs://c700ce60cf13ae8ed97705a55b8e022f13c5827c"
}


Ref: https://appium.github.io/appium-inspe...
Browserstack Capabilities Generator - https://www.browserstack.com/app-auto...
SauceLabs Capabilities Generator - https://saucelabs.com/products/platfo...
LambdaTest Capabilities Generator - https://www.lambdatest.com/capabiliti...

47:15 Next Steps

Document - https://docs.google.com/document/d/e/...

All Free Tutorials 🟢 https://AutomationStepByStep.com/

▬▬▬▬▬▬▬

Share with all who may need this

If my work has helped you, consider helping any animal near you, in any way you can

Never Stop Learning
Raghav Pal


▬▬▬

Комментарии

Информация по комментариям в разработке