Mobile Automation Testing Appium INterview Q&A SET - 01
How To Create Android Emulator Device
Mobile AUtomation Testing Appium Interview Q&A Set-02
Top API Interview Question 1-10
Appium supports the following gestures:
- Tap on an element.
- Tap on x, y coordinates.
- Press an element for a particular duration.
- Press x, y coordinates for a particular duration.
- Drag(Swipe) one element to another element.
- Multitouch for an element.
Method Name | Purpose |
press(PointOption pressOptions) | Press action on the screen. |
longPress(LongPressOptions longPressOptions) | Press and hold the at the center of an element until the context menu event has fired. |
tap(PointOption tapOptions) | Tap on a position. |
moveTo(PointOption moveToOptions) | Moves current touch to a new position. |
cancel() | Cancel this action, if it was partially completed by the performsTouchActions. |
perform() | Perform this chain of actions on the performsTouchActions. |
What are the Locators used for Mobile Automation Testing?
Ans: Click Here For Mobile Testing Locators
**************************
1) Tap on element in Appium:
2) Tap on x, y coordinates in Appium:
if you are not able to get the selector for any element for any reason then only one survival option remains. Which is to get the x, y coordinates for that element.
Now the question is how can you get the x,y coordinate?
- It depends...
- Because you can get the Pointer location in Android but you can not get it in iOS devices.
Getting the pointer location in Android:
- Move to Settings > Developer options
- Enable the Pointer location.
- Now move to any application for which you need the coordinates of a particular location. Tap on the location and you will get the coordinates for that spot at the top of the screen.
Getting the pointer location in iOS:
3) Press an element for a particular duration :
4) Press x, y coordinates for a particular duration in Appim :
5) Drag(swipe) one element to an another element in Appim:
6) MultiTouch in Appim:
a. Multiple touches at a time.
TouchAction touchActionOne = new TouchAction();
touchActionOne.press(PointOption.point(100, 100));
touchActionOne.release();
TouchAction touchActionTwo = new TouchAction();
touchActionTwo.press(PointOption.point(200, 200));
touchActionTwo.release();
MultiTouchAction action = new MultiTouchAction();
action.add(touchActionOne);
action.add(touchActionTwo);
action.perform();
TouchAction touchAction1 = new TouchAction(driver)
.tap(ElementOption.element(e1))
.release();
TouchAction touchAction2 = new TouchAction(driver)
.tap(ElementOption.element(e2))
.release();
MultiTouchAction action = new MultiTouchAction();
action.add(touchAction1);
action.add(touchAction2);
action.perform();
b. Swiping using multiple fingers.
TouchAction touchActionOne = new TouchAction();
touchActionOne.press(PointOption.point(100, 100));
touchActionOne.moveTo(PointOption.point(500, 100));
touchActionOne.release();
TouchAction touchActionTwo = new TouchAction();
touchActionTwo.press(PointOption.point(100, 200));
touchActionTwo.moveTo(PointOption.point(500, 100));
touchActionTwo.release();
MultiTouchAction action = new MultiTouchAction();
action.add(touchActionOne);
action.add(touchActionTwo);
action.perform();
*******************************************************************For any doubts or career guidance, arrange a 1:1 call with me
********************************************************************
Learn (API-Microservice)Testing+(CoreJava+UI)-SDET with Self Paced Videos and one LIVE Doubt Session
Mobile Testing Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Mobile%20Testing
==>. How we can verify the Appium installation, what is Appium doctor?
Ans: To verify that all of Appium's dependencies are met we can use appium-doctor
.
Install it with commandnpm install -g appium-doctor
, then run the appium-doctor
command, supplying the --ios
or --android
flags to verify that all of the dependencies are set up correctly.
==>. What is the default port for Appium?
Ans: 4723
This port information is important since we will have to direct your test client to make sure to connect to Appium on this port. If we want to change, the port, we can do so by using the -p
flag when starting Appium.
==> What are the important Appium Desired Capabilities?
Ans:
{
"platformName": "iOS", "platformVersion": "11.0", "deviceName": "iPhone 11", "automationName": "XCUITest", "app": "/path to app" }Android: UiAutomator2
*************************************************
SeleniumWebdriver Automation Testing Interview Questions:API Testing Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Rest-API
Kubernetes Interview Question Set
https://automationreinvented.blogspot.com/search/label/Kubernetes
Docker Interview Question Set
https://automationreinvented.blogspot.com/2020/02/top-18-docker-commands-for-aytomation.html
Linux Interview question Set
https://automationreinvented.blogspot.com/search/label/Linux
Automation Testing/SDET Framework Design
https://automationreinvented.blogspot.com/search/label/FrameworkDesign
Java Related Interview Question Set
https://automationreinvented.blogspot.com/search/label/Java
GIT Interview Question Set:
https://automationreinvented.blogspot.com/search/label/GIT
Coding Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Coding%20Questions
Mobile Testing Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Mobile%20Testing
Python Interview Question Set for QAE - SDET - SDE:
https://automationreinvented.blogspot.com/search/label/Python
Special Thanks to m-hadimani.
No comments:
Post a Comment