Divya actually yes, although it will work for basic android testing, but when you want to access sdkmanager or avdmanager (located in bin folder) from command prompt, it may not work... So best will be to keep the existing Path variables and also add. - %ANDROID_HOME%\cmdline-tools\latest\bin
Akhila The relationship between Android API levels and Java versions isn't fixed. While certain features may be accessible with specific Java versions, there's no direct mapping (e.g., Android 35 = Java 35). Different fields, methods, and classes may be added or changed over time, but they don't always align perfectly with Java version numbers However, it's essential to consider the following points: 1. Android SDK Platform and Java SDK Compatibility: - Android API levels (e.g., API 35) define the features and capabilities available to your app. - The Java version you use affects the language features and libraries available during development. - Here are some historical associations: - N (24) - O (26): Requires JDK 8u45 or newer. - L (21) - M (23): Requires JDK 7u71. - G (9) - K (20): Requires JDK 6. - C (3) - F (8): Requires JDK 5 2. Gradle and Android Plugin Compatibility: - Ensure that your Gradle build files and Android Gradle Plugin versions are compatible with your chosen API level. - Sometimes, upgrading the Android Gradle Plugin may be necessary to handle breaking changes Remember that while there's no strict correlation, understanding the compatibility requirements helps ensure a smooth development experience -
@@RaghavPal thank you Raghav… I have windows machine and I have done hands-on mobile testing automation framework on android real devices.. now I would like to learn IOS mobile testing
Sridhar In Appium 2, you can achieve scrolling and swiping using different approaches. Let's explore a few methods: 1. Scrolling: - For Android, you can use the `UiScrollable` class to scroll through elements. Here's an example in Java: ```java public static void scrollToTop() { String command = "new UiScrollable(new UiSelector().scrollable(true).instance(0)).flingToBeginning(3)"; driver.findElement(AppiumBy.androidUIAutomator(command)); } ``` - This method scrolls to the top of the screen. You can adjust the parameters as needed. 2. Swiping: - Swiping can be done using touch actions. Here are some common scenarios: - Horizontal Swipe: - Specify start and end percentages of the phone screen along with a point for the height. - Vertical Swipe: - Specify start and end percentages of the screen along with an anchor for the width. - Swipe Between Elements: - Swipe from one element to another. - Remember that swiping involves specifying start and endpoints. For more detailed examples and advanced gestures, you can refer to the official [Appium documentation] appium.github.io/appium.io/docs/en/writing-running-appium/tutorial/swipe-tutorial/ --
The way of explanation is just awesome easy to understand! keep it up!!
Glad to know this helped Asif
Continue, my friend. We are impatiently waiting for the rest.....Great work
Very soon. Thanks for watching
while setting up the Env path you mention android_home\bin.my question is you dont have bin folder inside that path? am i missing something?
Divya
actually yes, although it will work for basic android testing, but when you want to access sdkmanager or avdmanager (located in bin folder) from command prompt, it may not work... So best will be to keep the existing Path variables and also add. - %ANDROID_HOME%\cmdline-tools\latest\bin
Thankyou so much sir , great work
Most welcome Nitin
Hi, I have a doubt, For android emulator I choose Android API 35, is that depends on java version
Akhila
The relationship between Android API levels and Java versions isn't fixed. While certain features may be accessible with specific Java versions, there's no direct mapping (e.g., Android 35 = Java 35). Different fields, methods, and classes may be added or changed over time, but they don't always align perfectly with Java version numbers
However, it's essential to consider the following points:
1. Android SDK Platform and Java SDK Compatibility:
- Android API levels (e.g., API 35) define the features and capabilities available to your app.
- The Java version you use affects the language features and libraries available during development.
- Here are some historical associations:
- N (24) - O (26): Requires JDK 8u45 or newer.
- L (21) - M (23): Requires JDK 7u71.
- G (9) - K (20): Requires JDK 6.
- C (3) - F (8): Requires JDK 5
2. Gradle and Android Plugin Compatibility:
- Ensure that your Gradle build files and Android Gradle Plugin versions are compatible with your chosen API level.
- Sometimes, upgrading the Android Gradle Plugin may be necessary to handle breaking changes
Remember that while there's no strict correlation, understanding the compatibility requirements helps ensure a smooth development experience
-
Hello Raghav.. could you please do video on IOS mobile testing on real device… it’s complete setup..
I will plan Anusha
@@RaghavPal thank you Raghav… I have windows machine and I have done hands-on mobile testing automation framework on android real devices.. now I would like to learn IOS mobile testing
Sure.. i will make iOS mobile testing lectures in this series soon.. keep learning
Raghav, can you share the document that you have created please
Ravi, the link is in the description
Waiting for the rest… please upload ASAP
Sure Helen
1st most solution for all QA related challenges is your book/video/notes....
Thanks Rajender
thier is method is for scroll and swip in appium 2
Sridhar
In Appium 2, you can achieve scrolling and swiping using different approaches. Let's explore a few methods:
1. Scrolling:
- For Android, you can use the `UiScrollable` class to scroll through elements. Here's an example in Java:
```java
public static void scrollToTop() {
String command = "new UiScrollable(new UiSelector().scrollable(true).instance(0)).flingToBeginning(3)";
driver.findElement(AppiumBy.androidUIAutomator(command));
}
```
- This method scrolls to the top of the screen. You can adjust the parameters as needed.
2. Swiping:
- Swiping can be done using touch actions. Here are some common scenarios:
- Horizontal Swipe:
- Specify start and end percentages of the phone screen along with a point for the height.
- Vertical Swipe:
- Specify start and end percentages of the screen along with an anchor for the width.
- Swipe Between Elements:
- Swipe from one element to another.
- Remember that swiping involves specifying start and endpoints.
For more detailed examples and advanced gestures, you can refer to the official [Appium documentation]
appium.github.io/appium.io/docs/en/writing-running-appium/tutorial/swipe-tutorial/
--
Hi do you appium methods
Can check all lectures here - automationstepbystep.com/