Showing posts with label Selenium 3. Show all posts
Showing posts with label Selenium 3. Show all posts

Thursday, September 6, 2018

Share/Mirror Android Holler Upwards Covert To Pc Using Androidscreencast

Share/Mirror Android Holler Upwards Covert To Pc Using Androidscreencast

There are many unlike software available using which you lot tin forcefulness out share your android mobile device covert alongside your PC or laptop. androidscreencast software Is i of them to control an android device remotely. Using androidscreencast desktop software app, You tin forcefulness out mirror your android device's covert In your PC as well as besides you lot tin forcefulness out record the android device's covert activeness video In your PC. Let's larn how to Install as well as use Androidscreencast software to tape video of android mobile device's screen activity. We volition role It In android app automation using appium.

PREREQUISITES :
  1. Java 5 or afterward version should hold upwards Installed In your PC. View JAVA/JDK INSTALLATION steps.
  2. Android SDK should hold upwards Installed In your PC. View SDK INSTALLATION steps.
  3. Android device should hold upwards connected alongside PC and detected using "adb devices" command In command prompt. View ANDROID DEVICE CONNECTION steps.
Download Androidscreencast JNLP
We need androidscreencast.jnlp file to launch androidscreencast software Interface. You tin forcefulness out download It from THIS PAGE or role this straight download LINK. It volition download androidscreencast.jnlp file. Put It In your desired PC movement location. I convey set It at E:\JNLP location.

Add Java Exception Site List
You require to add together bellow given URLs In Java Exception Site List.

URLs to add together In Java Exception Site List
  1. http://code.google.com
  2. http://androidscreencast.googlecode.com
To add together higher upwards URLs In Java exception site list,
  • Click On Windows Start button.
  • Click On Java.
  • Click On Configure Java. It volition opened upwards Java Control Panel dialog.
  • On Java Control Panel dialog, Select Security tab.
  • Click On Edit Site List push clitoris on Security tab. It volition opened upwards Exception Site List dialog.
  • Add higher upwards URLs i past times i In listing of Exception Site List dialog past times clicking on Add button.
  • Click on OK push clitoris of Exception Site List dialog.
  • Click on OK push clitoris of Java Control Panel dialog.
Steps alongside Image description are equally bellow.
 There are many unlike software available using which you lot tin forcefulness out  Share/Mirror Android Phone Screen To PC Using Androidscreencast

Launch Androidscreencast Interface
For launching androidscreencast Interface,
  • Open JNLP folder where androidscreencast.jnlp file Is located.
  • Press keyboard's CTRL + Shift + Mouse Right Click. It volition opened upwards correct click context bill of fare equally shown In bellow given Image.
 There are many unlike software available using which you lot tin forcefulness out  Share/Mirror Android Phone Screen To PC Using Androidscreencast
  • Select "Open command window here" from context menu. It volition launch command prompt alongside navigation to electrical flow selected JNLP folder.
 There are many unlike software available using which you lot tin forcefulness out  Share/Mirror Android Phone Screen To PC Using Androidscreencast
  • Type command javaws androidscreencast.jnlp In command prompt as well as press keyboard ENTER button. It volition present you lot dialog equally bellow on start run.
  • Select banking concern jibe box as well as click on Run push clitoris equally shown In higher upwards Image.
  • It volition launch Androidscreencast as well as present your connected device's covert equally shown In bellow Image.

Now whatever you lot exercise In your mobile screen, It volition display In Androidscreencast Interface.

Record Android Screen Video Using Androidscreencast Interface
Now you lot tin forcefulness out tape your android telephone screen's video using androidscreencast Interface software. To tape video,
  • Click on Record button equally shown In bellow Image. It volition opened upwards Save file dialog.

 There are many unlike software available using which you lot tin forcefulness out  Share/Mirror Android Phone Screen To PC Using Androidscreencast
  • Select your desired place to salve recording video file, Provide file advert as well as click on Save button.
  • It volition start recording your mobile devices covert activities.
  • To cease recording, Once i time to a greater extent than click on Record button. It volition cease covert recording.
  • It volition exercise .mov file at your selected location.
This agency you lot tin forcefulness out mirror your android mobile's covert In PC as well as tape video of covert activities using Androidscreencast software.
no image

Record Appium Exam Execution Video For Android App

Appium software examination execution video recording Is required when yous are executing real large tests as well as perform multitasking. Recording android device's covert video during software automation testing tin flame helps yous to detect out when Issue occurred as well as what are the steps to reproduce Issue. You tin flame Identify why your software examination Is failing past times looking In to video recording.

Before learning how to tape video of android software app automation test execution using appium, You must know how to mirror your android device's covert In PC using androidscreencast equally described In my PREVIOUS POST. Android mobile's covert sharing amongst PC Is required to tape video of android app automation examination execution. Using androidscreencast, We tin flame portion mobile covert amongst PC as well as and therefore nosotros tin flame tape PC screen's video. Let acquire how to Do It.

PREREQUISITE : Android device should hold upward connected wit PC as well as Android mobile's covert should hold upward shared amongst PC using androidscreencast.

App To Use as well as Aim To Achieve
This Is non app specific software examination example therefore yous tin flame purpose whatever app. We volition purpose hither API Demos android software app of android. Here nosotros wants to capture covert of PC therefore that nosotros tin flame tape activities of androidscreencast. We volition use ATUTestRecorder to tape video of your PC screen. In short, We volition purpose androidscreencast and ATUTestRecorder to tape video of android device's covert activities during appium examination execution.

Add ATUTestRecorder Jar In Project's Build Path
For recording your PC's covert video, You demand to download ATUTestRecorder_2.1.jar file from THIS PAGE and add together It In your project's laid upward path. View THIS POST to acquire how to add together external jolt files In project's laid upward path.

Create Test
Create novel examination file VideoReord.Java In your eclipse's projection as well as purpose bellow given examination script In It.

VideoReord.Java
package Android;  import io.appium.java_client.android.AndroidDriver;  import java.io.IOException; import java.net.URL; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import java.util.concurrent.TimeUnit; import org.apache.commons.exec.CommandLine; import org.apache.commons.exec.DefaultExecuteResultHandler; import org.apache.commons.exec.DefaultExecutor; import org.openqa.selenium.By; import org.openqa.selenium.remote.DesiredCapabilities; import org.testng.annotations.AfterTest; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test; import atu.testrecorder.ATUTestRecorder; import atu.testrecorder.exceptions.ATUTestRecorderException;  world degree VideoReord {  static AndroidDriver driver;  // Set path of your node.exe file. Set your path.  // Progra 1 represents Program Files folder.  String nodePath = "C:/Progra 1/Appium/node.exe";  // Set path of your appium.js file. Set your path.  String appiumJSPath = "C:/Progra 1/Appium/node_modules/appium/bin/appium.js";   ATUTestRecorder recorder;   @BeforeTest  world void setUp() throws Exception {   // Start appium server.   appiumStart();    // Get electrical flow appointment as well as fourth dimension to supply inwards recorded video name.   DateFormat dateFormat = novel SimpleDateFormat("yy-MM-dd HH-mm-ss");   Date appointment = novel Date();   // Created object of ATUTestRecorder.   // Provide path to shop videos as well as file refer format.   recorder = novel ATUTestRecorder("D:\\ScriptVideos\\", "TestVideo-" + dateFormat.format(date), false);    DesiredCapabilities capabilities = novel DesiredCapabilities();   capabilities.setCapability("deviceName", "ZX1B32FFXF");   capabilities.setCapability("browserName", "Android");   capabilities.setCapability("platformVersion", "4.4.2");   capabilities.setCapability("platformName", "Android");   capabilities.setCapability("appPackage", "io.appium.android.apis");   capabilities.setCapability("appActivity", "io.appium.android.apis.ApiDemos");   driver = novel AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);   driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);    // To outset video recording of your PC screen.   recorder.start();  }   @Test  world void performOrientation() throws InterruptedException {   // Get as well as impress electrical flow covert orientation.   System.out.println("*--*--*-- Current covert orientation Is : " + driver.getOrientation());   System.out.println("*--*--*-- Changing covert Orientation to LANDSCAPE.");   // Changing covert Orientation to LANDSCAPE.   driver.rotate(org.openqa.selenium.ScreenOrientation.LANDSCAPE);   // Get as well as impress covert orientation afterwards changing It.   System.out.println("*--*--*-- Now covert orientation Is : " + driver.getOrientation());   Thread.sleep(5000);   // Scroll till chemical cistron which contains "Views" text If It Is non visible on screen.   driver.scrollTo("Views");   // Click on Views.   driver.findElement(By.name("Views")).click();   System.out.println("*--*--*-- Changing covert Orientation to PORTRAIT.");   // Changing covert Orientation to PORTRAIT.   driver.rotate(org.openqa.selenium.ScreenOrientation.PORTRAIT);   // Get as well as impress covert orientation afterwards changing It.   System.out.println("*--*--*-- Now covert orientation Is : " + driver.getOrientation());   Thread.sleep(5000);  }   @AfterTest  world void End() throws IOException, ATUTestRecorderException {   driver.quit();   // Stop appium server when examination Is ended.   appiumStop();   // Stop video recording.   recorder.stop();  }   // This method Is responsible for starting appium server.  world void appiumStart() throws IOException, InterruptedException {   // Created object of apache CommandLine class.   // It volition outset ascendancy prompt In background.   CommandLine ascendancy = novel CommandLine("cmd");   // Add unlike arguments In ascendancy business which requires to outset appium server.   command.addArgument("/c");   command.addArgument(nodePath);   command.addArgument(appiumJSPath);   // Set Server address.   command.addArgument("--address");   command.addArgument("127.0.0.1");   // Set Port.   command.addArgument("--port");   command.addArgument("4723");   command.addArgument("--no-reset");   command.addArgument("--log");   // Set path to shop appium server log file.   command.addArgument("D://appiumLogs.txt");   // Execute ascendancy business arguments to outset appium server.   DefaultExecuteResultHandler resultHandler = novel DefaultExecuteResultHandler();   DefaultExecutor executor = novel DefaultExecutor();   executor.setExitValue(1);   executor.execute(command, resultHandler);   // Wait for xv minutes therefore that appium server tin flame outset properly earlier going for examination execution.   // Increase this fourth dimension If confront whatever error.   Thread.sleep(15000);  }   // This method Is responsible for stopping appium server.  world static void appiumStop() throws IOException {   // Add unlike arguments In ascendancy business which requires to halt appium server.   CommandLine ascendancy = novel CommandLine("cmd");   command.addArgument("/c");   command.addArgument("taskkill");   command.addArgument("/F");   command.addArgument("/IM");   command.addArgument("node.exe");   // Execute ascendancy business arguments to halt appium server.   DefaultExecuteResultHandler resultHandler = novel DefaultExecuteResultHandler();   DefaultExecutor executor = novel DefaultExecutor();   executor.setExitValue(1);   executor.execute(command, resultHandler);  } }
Test Decription
  • We accept used appiumStart() as well as appiumStop() methods to outset as well as halt appium. So appium volition hold upward started automatically wehn yous run your examination as well as yous non demand to outset as well as halt appium manually.
  • Another affair nosotros accept Implemented In script Is video recording of PC covert using ATUTestRecorder. You tin flame alter path to shop recorded video as well as video file refer equally per your requirement.
Running Test

When yous run inwards a higher house software examination using testng, Immediately keep androidscreencast Interface on transcend of the screen. Otherwise androidscreencast Interface's covert activities non recorded In video. So when your examination started execution, All the android mobile screen's activities volition display on your PC covert as well as ATUTestRecorder volition tape your PC screen.

This agency yous tin flame tape appium software examination execution video for whatever android app.

Wednesday, September 5, 2018

Appium Android : Verify Chemical Component Introduce Or Non On App's Screen

Appium Android : Verify Chemical Component Introduce Or Non On App's Screen

In android automation test, Sometimes you lot bespeak to verify if chemical cistron is acquaint or not on native  software app's covert earlier taking some action. Example : You wants to click on push exclusively if another chemical cistron is acquaint on covert of software app. You volition facial expression upward this sort of province of affairs as well as you lot convey to detect out how to verify chemical cistron is acquaint or non on page. There is non whatever built inwards constituent inwards selenium to cheque if chemical cistron is acquaint or non on page of software app. So nosotros bespeak to find-out some function to a greater extent than or less which tin sack help us to check if chemical cistron is acquaint or non on page.

Here I convey prepared real uncomplicated illustration which tin sack demonstrate you lot how to cheque if chemical cistron is acquaint or non on covert of android app when running android appium software automation test. Earlier i convey described how to verify chemical cistron is acquaint or non on webpage inwards THIS POST.

App To Use
We volition purpose API Demos app inwards this illustration to cheque if chemical cistron is acquaint or non on android software app's screen. View THIS PAGE to download API Demos app.

Aim To Achieve
On API Demos app's abode screen, We wants to verify that elements amongst text "App" as well as "Loader" are acquaint or not. We volition purpose 2 separate @Test methods to verify each chemical cistron as well as pass/fail specific exam method based on availability of chemical cistron on screen.

 You wants to click on push exclusively if another chemical cistron is acquaint on covert of software  Appium Android : Verify Element Present or Not On App's Screen

As you lot tin sack run across inwards to a higher house image, We volition live on able to detect chemical cistron containing "App" text equally it is acquaint on screen. But it volition live on unable to detect chemical cistron containing "Loader" text equally it is non acquaint on screen.

How To Do It
Selenium has findElements method to give-up the ghost all elements from page using given id or cite or xpath etc. We volition use findElementsByName equally bellow to give-up the ghost listing of elements from page which contains cite = App or Loader.

//There is chemical cistron amongst cite App on screen. //So iselementpresent volition live on laid to true. Boolean iselementpresent = driver.findElementsByName("App").size() != 0;    //There is non whatever chemical cistron similar Loader on screen. //So iselementpresent volition live on laid to false. Boolean iselementpresent = driver.findElementsByName("Loader").size() != 0;

It volition give-up the ghost the listing of elements for given cite as well as and hence cheque the size. It volition laid iselementpresent = true(means chemical cistron is present) if size is non equals to 0 as well as laid iselementpresent = false(means chemical cistron is non present) if size is equals to 0.

Create And Run Test
Run bellow given software automation exam inwards your eclipse as well as verify how it works. If you lot don't know how to run android appium exam as well as hence you lot bespeak to refer appium tutorials listed on THIS PAGE.

CheckElementPresent.java
package Android;  import io.appium.java_client.android.AndroidDriver;  import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.util.concurrent.TimeUnit; import org.apache.commons.exec.CommandLine; import org.apache.commons.exec.DefaultExecuteResultHandler; import org.apache.commons.exec.DefaultExecutor; import org.openqa.selenium.remote.DesiredCapabilities; import org.testng.Assert; import org.testng.annotations.AfterTest; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test;  world cast CheckElementPresent {  AndroidDriver driver;   @BeforeTest  world void setUp() throws MalformedURLException {   DesiredCapabilities capabilities = novel DesiredCapabilities();   capabilities.setCapability("deviceName", "ZX1B32FFXF");   capabilities.setCapability("browserName", "Android");   capabilities.setCapability("platformVersion", "4.4.2");   capabilities.setCapability("platformName", "Android");   capabilities.setCapability("appPackage", "io.appium.android.apis");   capabilities.setCapability("appActivity", "io.appium.android.apis.ApiDemos");   driver = novel AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);   driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);  }   //Check chemical cistron App is acquaint or non on page.  @Test  world void checkAppElementPresent() {   //There is chemical cistron amongst cite App on screen.   //So iselementpresent volition live on laid to true.   Boolean iselementpresent = driver.findElementsByName("App").size() != 0;   //iselementpresent volition live on truthful hence assertion volition overstep as well as hence exam method volition overstep too.   Assert.assertTrue(iselementpresent,"Targeted chemical cistron App is non acquaint on screen");   System.out.println("Targeted chemical cistron App is acquaint on screen.");  }   //Check chemical cistron Loader is acquaint or non on page.  @Test  world void checkLoaderElementPresent() {   //There is non whatever chemical cistron similar Loader on screen.   //So iselementpresent volition live on laid to false.   Boolean iselementpresent = driver.findElementsByName("Loader").size() != 0;   //iselementpresent volition live on fake hence assertion volition neglect as well as hence exam method volition neglect too.   Assert.assertTrue(iselementpresent,"Targeted chemical cistron Loader is non acquaint on screen");   System.out.println("Targeted chemical cistron Loader is acquaint on screen.");  }   @AfterTest  world void End() throws IOException {   driver.quit();    } }

When you lot run to a higher house test, It volition exhibit you lot consequence similar bellow inwards eclipse.
 You wants to click on push exclusively if another chemical cistron is acquaint on covert of software  Appium Android : Verify Element Present or Not On App's Screen
  • checkAppElementPresent() method is overstep as elements amongst cite "App" is acquaint on android app's screen.
  • checkLoaderElementPresent() method is neglect as elements amongst cite "Loader" is non acquaint on android app's screen.
Also you lot tin sack purpose whatever other methods like findElementsByXPath, findElementsByAccessibilityId, findElementsByClassName, etc to give-up the ghost the listing of elements using given criteria.
Appium : Tap On Switch Push Of Android App To On/Off

Appium : Tap On Switch Push Of Android App To On/Off

In android, There is 1 of import chemical ingredient ON/OFF switch. It is real slowly to ON/OFF switch inwards android automation test using appium but you lot should know how to produce it. In this article, I am going to described you lot how to ON/OFF switch inwards appium android automation test using tap(int fingers, int duration) method of MobileElement class. Also you lot tin dismiss purpose click() method to tap on push clit but hither nosotros volition purpose tap method for your understanding.

App To Use
We volition purpose API Demos app inwards this test. You tin dismiss download it from google play.

Aim Of Test
In this appium automation test, We wants to tap on Monitored switch "OFF" push clit to switch "ON" it too thence 1 time once again tap on Monitored switch "ON" push clit to switch "OFF" it equally shown inwards bellow image. Also nosotros wants to verify that switch is ON or OFF before taping on it.


In API Demos app, You tin dismiss manually navigate to inwards a higher house concealment from App Home -> Views -> Switches.

Create And Run Test
Create bellow given examination inwards eclipse too run it. View before published APPIUM TUTORIALS if you lot don't know how to run appium test.

TapOnSwitch.java
package Android;  import io.appium.java_client.MobileElement; import io.appium.java_client.android.AndroidDriver; import java.net.URL; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.remote.DesiredCapabilities; import org.testng.annotations.AfterTest; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test;  world degree TapOnSwitch {  AndroidDriver driver;   @BeforeTest  world void setUp() throws Exception {   DesiredCapabilities capabilities = novel DesiredCapabilities();   capabilities.setCapability("deviceName", "ZX1B32FFXF");   capabilities.setCapability("browserName", "Android");   capabilities.setCapability("platformVersion", "4.4.2");   capabilities.setCapability("platformName", "Android");   capabilities.setCapability("appPackage", "io.appium.android.apis");   capabilities.setCapability("appActivity", "io.appium.android.apis.ApiDemos");   driver = novel AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);   driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);  }   @Test  world void tapSwitchOnOff() throws InterruptedException {   // Scroll till chemical ingredient which contains "Views" text If It Is non visible on screen.   driver.scrollTo("Views");   // Click on Views.   driver.findElement(By.name("Views")).click();   // Scroll till chemical ingredient which contains "Switches" text If It Is non visible on screen.   driver.scrollTo("Switches");   // Click on Switches.   driver.findElement(By.name("Switches")).click();      //Get condition of switch using it's text.   String switchStatus1 = driver.findElementById("io.appium.android.apis:id/monitored_switch").getText();   System.out.println(switchStatus1);   //If switchStatus1 = Monitored switch OFF, Execute inner code.   if((switchStatus1.trim()).equals("Monitored switch OFF")){    System.out.println("Doing Monitored switch ON");    //Locate switch push clit chemical ingredient yesteryear mention = Monitored switch OFF.    MobileElement swt = (MobileElement) driver.findElementByName("Monitored switch OFF");    //Tap on switch push clit "Monitored switch OFF" to arrive ON.    swt.tap(1, 1);    System.out.println("Monitored switch is ON now.");   }   //Pause examination for five seconds to seat switch ON for five seconds.   Thread.sleep(5000);      //Get condition of switch using it's text.   String switchStatus2 = driver.findElementById("io.appium.android.apis:id/monitored_switch").getText();   System.out.println(switchStatus2);   //If switchStatus1 = Monitored switch ON, Execute inner code.   if((switchStatus2.trim()).equals("Monitored switch ON")){    System.out.println("Doing Monitored switch OFF");    //Locate switch push clit chemical ingredient yesteryear mention = Monitored switch ON.    MobileElement swt = (MobileElement) driver.findElementByName("Monitored switch ON");    //Tap on switch push clit "Monitored switch OFF" to arrive OFF.    swt.tap(1, 1);    System.out.println("Monitored switch is OFF now.");   }  }    @AfterTest  world void End() {   driver.quit();  } }

When you lot run inwards a higher house test,
  • It volition open API Demos app inwards android device.
  • Navigate to Switches screen.
  • Tap on Monitored switch to switch it ON from OFF.
  • Once 1 time again tap on Monitored switch to switch it OFF from ON.
This means you lot tin dismiss tap on whatsoever switch of android using tap method of MobileElement class.
Appium Tutorial - Type Inwards Text Box Of Android App

Appium Tutorial - Type Inwards Text Box Of Android App

Text box is really mutual chemical component division of whatever android native software app or software spider web application. In android appium software automation test, If y'all wants to type text inward text box of android app as well as hence y'all tin strength out role sendKeys(keysToSend) ascendance of selenium WebElement interface. Let's await at illustration to larn how to type inward text box of android app.

App To Use And Aim Of Test
We volition role API Demos software app inward this exam to larn how to type inward textbox of android application. 

 Text box is really mutual chemical component division of whatever android native software app or software spider web applic Appium Tutorial - Type In Text Box Of Android App

Above enshroud display text box. We volition role this text box to type text inward android appium software test. You tin strength out navigate to to a higher house enshroud from API Demos app's Home -> Views -> Controls -> 2. Dark Theme.

Create as well as hold upwards software test
Create bellow given exam inward eclipse as well as hold upwards it using testng as well as appium as well as divulge exam execution inward your android mobile screen.

TypeInTextBox.java
package Android;  import io.appium.java_client.android.AndroidDriver; import java.net.URL; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.remote.DesiredCapabilities; import org.testng.annotations.AfterTest; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test;  world degree TypeInTextBox {  AndroidDriver driver;   @BeforeTest  world void setUp() throws Exception {   DesiredCapabilities capabilities = novel DesiredCapabilities();   capabilities.setCapability("deviceName", "ZX1B32FFXF");   capabilities.setCapability("browserName", "Android");   capabilities.setCapability("platformVersion", "4.4.2");   capabilities.setCapability("platformName", "Android");   capabilities.setCapability("appPackage", "io.appium.android.apis");   capabilities.setCapability("appActivity","io.appium.android.apis.ApiDemos");   driver = novel AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);   driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);  }   @Test  world void typeInText() throws InterruptedException {   // Scroll till chemical component division which contains "Views" text If It Is non visible on screen.   driver.scrollTo("Views");   // Click on Views.   driver.findElement(By.name("Views")).click();   // Scroll till chemical component division which contains "Controls" text If It Is non visible on screen.   driver.scrollTo("Controls");   // Click on Controls.   driver.findElement(By.name("Controls")).click();   // Scroll till chemical component division which contains "2. Dark Theme" text If It Is non visible on screen.   driver.scrollTo("2. Dark Theme");   // Click on 2. Dark Theme.   driver.findElement(By.name("2. Dark Theme")).click();   // Typing inward text box using sendKeys command.   driver.findElement(By.id("io.appium.android.apis:id/edit")).sendKeys("Test");  }   @AfterTest  world void End() {   driver.quit();  } }

Last disputation of text method volition type text "Test" inward textbox of API Demos android app.

This means y'all tin strength out use sendKeys(keysToSend) ascendance to type text inward whatever text box of android software  application.

Tuesday, September 4, 2018

Appium : Pick Out Check-Box Of Android App

Appium : Pick Out Check-Box Of Android App

Check box is to a greater extent than or less other mutual chemical cistron of whatsoever native, hybrid or mobile software spider web applications. Selecting banking venture correspond box of android software app inwards appium exam is really slow chore in addition to I hope, most of yous already knows how to select android app's banking venture correspond box inwards appium automation exam but i cause got to mean value well-nigh bottom flat learner who don't know how to select android app's check box inwards appium automation software test. Let's cause got really elementary representative to larn how to direct banking venture correspond box inwards appium. We tin flaming role click() method to direct banking venture correspond box.
Do yous wants to larn all appium tutorials? View this LINK.

App To Use And Aim To Achieve In Software Test 
We volition role same API Demos software app of android to larn how to direct banking venture correspond box of android app every bit shown inwards bellow image.

 Check box is to a greater extent than or less other mutual chemical cistron of whatsoever native Appium : Select Check-box Of Android App

Manually yous tin flaming navigate to higher upward covert from API Demos app's Home -> Views -> Controls -> 2. Dark Theme.

Create And Run Test
Create bellow given exam inwards eclipse in addition to run it using testng in addition to appium. Observe exam execution inwards android device.

SelectingCheckBox.java
package Android;  import io.appium.java_client.android.AndroidDriver; import java.net.URL; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.remote.DesiredCapabilities; import org.testng.annotations.AfterTest; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test;  populace degree SelectingCheckBox {  AndroidDriver driver;   @BeforeTest  populace void setUp() throws Exception {   DesiredCapabilities capabilities = novel DesiredCapabilities();   capabilities.setCapability("deviceName", "ZX1B32FFXF");   capabilities.setCapability("browserName", "Android");   capabilities.setCapability("platformVersion", "4.4.2");   capabilities.setCapability("platformName", "Android");   capabilities.setCapability("appPackage", "io.appium.android.apis");   capabilities.setCapability("appActivity","io.appium.android.apis.ApiDemos");   driver = novel AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);   driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);  }   @Test  populace void select() throws InterruptedException {   // Scroll till chemical cistron which contains "Views" text If It Is non visible on screen.   driver.scrollTo("Views");   // Click on Views.   driver.findElement(By.name("Views")).click();   // Scroll till chemical cistron which contains "Controls" text If It Is non visible on screen.   driver.scrollTo("Controls");   // Click on Controls.   driver.findElement(By.name("Controls")).click();   // Scroll till chemical cistron which contains "2. Dark Theme" text If It Is non visible on screen.   driver.scrollTo("2. Dark Theme");   // Click on 2. Dark Theme.   driver.findElement(By.name("2. Dark Theme")).click();   // Click on check-box to direct it.   driver.findElement(By.name("Checkbox 2")).click();  }   @AfterTest  populace void End() {   driver.quit();  } }

Last syntax in @Test method volition direct the banking venture correspond box using .click() method when yous run software test.
Appium - Enshroud Android Keyboard During Test

Appium - Enshroud Android Keyboard During Test

Hiding keyboard inward android device is 1 of the mutual action. In your android mobile device, It volition exhibit y'all soft keyboard on cover automatically when y'all type text inward text box of software app therefore it volition shroud around of the elements. Now supposing y'all wants to lead value from drib downward which is hidden behind android keyboard. For that, You withdraw to hide android keyboard showtime therefore that y'all tin come across drib downward in addition to and therefore y'all tin lead value from it. In android appium software automation test, It is real slow to hide android keyboard using hideKeyboard() method of AndroidDriver. Let's acquire how to hide android keyboard inward appium software automation test.

App To Use And Aim Of Test
We volition role same API Demos software app In this keyboard hiding test. Main aim of this appium software automation examination is to shroud android soft keyboard afterwards typing text inward text box every bit shown inward bellow image.

 inward android device is 1 of the mutual activeness Appium - Hide Android Keyboard During Test

Manually y'all tin sentiment inward a higher house cover inward API Demos software app from API Demos app's Home -> Views -> Controls -> 2. Dark Theme.

Create And Run Test
Create bellow given Keyboard hiding appium examination eclipse.

SelectDropDownValue.java
package Android;  import io.appium.java_client.android.AndroidDriver; import java.net.URL; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.remote.DesiredCapabilities; import org.testng.annotations.AfterTest; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test;  populace flat SelectDropDownValue {  AndroidDriver driver;   @BeforeTest  populace void setUp() throws Exception {   DesiredCapabilities capabilities = novel DesiredCapabilities();   capabilities.setCapability("deviceName", "ZX1B32FFXF");   capabilities.setCapability("browserName", "Android");   capabilities.setCapability("platformVersion", "4.4.2");   capabilities.setCapability("platformName", "Android");   capabilities.setCapability("appPackage", "io.appium.android.apis");   capabilities.setCapability("appActivity","io.appium.android.apis.ApiDemos");   driver = novel AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);   driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);  }   @Test  populace void select() throws InterruptedException {   // Scroll till chemical part which contains "Views" text If It Is non visible on screen.   driver.scrollTo("Views");   // Click on Views.   driver.findElement(By.name("Views")).click();   // Scroll till chemical part which contains "Controls" text If It Is non visible on screen.   driver.scrollTo("Controls");   // Click on Controls.   driver.findElement(By.name("Controls")).click();   // Scroll till chemical part which contains "2. Dark Theme" text If It Is non visible on screen.   driver.scrollTo("2. Dark Theme");   // Click on 2. Dark Theme.   driver.findElement(By.name("2. Dark Theme")).click();   // Typing inward text box using sendKeys command.   driver.findElement(By.id("io.appium.android.apis:id/edit")).sendKeys("Test");   //To shroud keyboard.    driver.hideKeyboard();  }   @AfterTest  populace void End() {   driver.quit();  } }

Run inward a higher house examination inward eclipse using testng in addition to appium. Last syntax of @Test method volition shroud android keyboard.

This agency y'all tin shroud keyboard of android device inward appium android software automation testing.

Appium - Choose Especial From Driblet Downwards Of Android App

Appium - Choose Especial From Driblet Downwards Of Android App

Selecting item/value from drib downward is needed inward android software app equally nearly of the apps comprise drib down. Earlier nosotros learnt how to choose value from spinner inward android appium software exam which is opening inward straight listing inward THIS POST. Now let's meet about other event of how to choose value from drib downward listing which is opening inward popup.

App To Use And Aim Of Test
We volition role API Demos software app inward this drib downward exceptional pick test. Our brain aim is to click on drib downward to opened upwards items listing popup as well as and thence selecting 1 exceptional from listing equally shown inward bellow image.

value from drib downward is needed inward android software app equally nearly of the apps comprise drib create Appium - Select Item From Drop Down Of Android App

You tin persuasion higher upwards covert from API Demos software app's Home -> Views -> Controls -> 2. Dark Theme. -> Tap on Drop Down.

Create And Run Test
I accept created real uncomplicated appium android drib downward exceptional pick software automation test. Create bellow given exam inward eclipse.

SelectValueDropDown.java
package Android;  import io.appium.java_client.android.AndroidDriver; import java.net.URL; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.remote.DesiredCapabilities; import org.testng.annotations.AfterTest; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test;  world class SelectValueDropDown {  AndroidDriver driver;   @BeforeTest  world void setUp() throws Exception {   DesiredCapabilities capabilities = novel DesiredCapabilities();   capabilities.setCapability("deviceName", "ZX1B32FFXF");   capabilities.setCapability("browserName", "Android");   capabilities.setCapability("platformVersion", "4.4.2");   capabilities.setCapability("platformName", "Android");   capabilities.setCapability("appPackage", "io.appium.android.apis");   capabilities.setCapability("appActivity","io.appium.android.apis.ApiDemos");   driver = novel AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);   driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);  }   @Test  world void select() throws InterruptedException {   // Scroll till chemical ingredient which contains "Views" text If It Is non visible on screen.   driver.scrollTo("Views");   // Click on Views.   driver.findElement(By.name("Views")).click();   // Scroll till chemical ingredient which contains "Controls" text If It Is non visible on screen.   driver.scrollTo("Controls");   // Click on Controls.   driver.findElement(By.name("Controls")).click();   // Scroll till chemical ingredient which contains "2. Dark Theme" text If It Is non visible on screen.   driver.scrollTo("2. Dark Theme");   // Click on 2. Dark Theme.   driver.findElement(By.name("2. Dark Theme")).click();   // Typing inward text box using sendKeys command.   driver.findElement(By.id("io.appium.android.apis:id/edit")).sendKeys("Test");   //To shroud keyboard    driver.hideKeyboard();   //Click on dropdown to opened upwards list.   driver.findElement(By.id("android:id/text1")).click();   //Select exceptional "Mars" from drib downward list.   driver.findElement(By.name("Mars")).click();     }   @AfterTest  world void End() {   driver.quit();  } }

Run higher upwards exam inward eclipse using appium as well as testng as well as notice exam execution. Last syntax volition choose exceptional "Mars" from listing items.

This agency you lot tin choose value from android software app's drib downward listing inward appium test.
Appium Tutorials - Think Driblet Downward Values Listing Of Android App

Appium Tutorials - Think Driblet Downward Values Listing Of Android App

Retrieving all values from drib downwards listing of android app software inwards appium software automation exam is fiddling tricky business but non hard. You tin sentiment how to SELECT VALUE from drib downwards list's popup inwards appium test. We tin use findElements() method of selenium webdriver to locate in addition to instruct all values from drib downwards list.

Aim Of Test And App To Use
Our primary aim is to shop all values from drib downwards listing of android software application. We volition purpose API Demos app inwards this android software automation test.


Manually yous tin sentiment higher upwards covert from API Demos app's Home -> Views -> Controls -> 2. Dark Theme. -> Tap on Drop Down.

Create And Run Test
Created really uncomplicated software automation exam to instruct all values from drib downwards of android application.

GetDropDownList.java
package Android;  import io.appium.java_client.MobileElement; import io.appium.java_client.android.AndroidDriver;  import java.net.URL; import java.util.List; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.remote.DesiredCapabilities; import org.testng.annotations.AfterTest; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test;  populace shape GetDropDownList {  AndroidDriver driver;   @BeforeTest  populace void setUp() throws Exception {   DesiredCapabilities capabilities = novel DesiredCapabilities();   capabilities.setCapability("deviceName", "ZX1B32FFXF");   capabilities.setCapability("browserName", "Android");   capabilities.setCapability("platformVersion", "4.4.2");   capabilities.setCapability("platformName", "Android");   capabilities.setCapability("appPackage", "io.appium.android.apis");   capabilities.setCapability("appActivity","io.appium.android.apis.ApiDemos");   driver = novel AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);   driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);  }   @Test  populace void select() throws InterruptedException {   // Scroll till chemical gene which contains "Views" text If It Is non visible on screen.   driver.scrollTo("Views");   // Click on Views.   driver.findElement(By.name("Views")).click();   // Scroll till chemical gene which contains "Controls" text If It Is non visible on screen.   driver.scrollTo("Controls");   // Click on Controls.   driver.findElement(By.name("Controls")).click();   // Scroll till chemical gene which contains "2. Dark Theme" text If It Is non visible on screen.   driver.scrollTo("2. Dark Theme");   // Click on 2. Dark Theme.   driver.findElement(By.name("2. Dark Theme")).click();   // Typing inwards text box using sendKeys command.   driver.findElement(By.id("io.appium.android.apis:id/edit")).sendKeys("Test");   //To cover keyboard    driver.hideKeyboard();   //Click on dropdown to opened upwards list.   driver.findElement(By.id("android:id/text1")).click();   //Locate all drib downwards listing elements    List dropList = driver.findElements(By.id("android:id/text1"));   //Extract text from each chemical gene of drib downwards listing 1 yesteryear one.     for(int i=0; i< dropList.size(); i++){    MobileElement listItem = (MobileElement) dropList.get(i);       System.out.println(listItem.getText());   }    }   @AfterTest  populace void End() {   driver.quit();  } }

Run higher upwards android software automation exam using appium to come across how to instruct all values from drib downwards list. It volition impress all values inwards console.

Monday, September 3, 2018

Appium Tutorials - Pick Out Radio Push Clit Of Android App

Appium Tutorials - Pick Out Radio Push Clit Of Android App

Selecting radio push clit of android software app inward appium automation exam is same activity every bit selecting check-box every bit described inward my Earlier article. Only deviation betwixt check-box pick in addition to radio push clit pick is you lot tin hand the axe pick out solely i radio push clit at a fourth dimension from given listing of radio buttons but you lot tin hand the axe pick out all check-box from given list. So it is slow to pick out radio push clit of whatsoever android software app using appium automation test. Let's accept unproblematic illustration to empathise how to pick out radio push clit of android app In appium software automation test.

App To Use And Aim To Achieve In Appium Test
We volition role API Demos app In this appium software automation exam to larn how to pick out radio push clit of android app every bit shown inward bellow given screenshot.

 Selecting radio push clit of android software app inward appium automation exam is same activity a Appium Tutorials - Select Radio Button Of Android App

Manually you lot tin hand the axe acquire to higher upward covert from API Demos app's Home -> Views -> Controls -> 2. Dark Theme.

Create And Run Test
Create in addition to bellow given radio push clit pick appium exam inward eclipse.

SelectingRadioButton.java
package Android;  import io.appium.java_client.android.AndroidDriver; import java.net.URL; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.remote.DesiredCapabilities; import org.testng.annotations.AfterTest; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test;  world class SelectingRadioButton {  AndroidDriver driver;   @BeforeTest  world void setUp() throws Exception {   DesiredCapabilities capabilities = novel DesiredCapabilities();   capabilities.setCapability("deviceName", "ZX1B32FFXF");   capabilities.setCapability("browserName", "Android");   capabilities.setCapability("platformVersion", "4.4.2");   capabilities.setCapability("platformName", "Android");   capabilities.setCapability("appPackage", "io.appium.android.apis");   capabilities.setCapability("appActivity","io.appium.android.apis.ApiDemos");   driver = novel AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);   driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);  }   @Test  world void select() throws InterruptedException {   // Scroll till chemical part which contains "Views" text If It Is non visible on screen.   driver.scrollTo("Views");   // Click on Views.   driver.findElement(By.name("Views")).click();   // Scroll till chemical part which contains "Controls" text If It Is non visible on screen.   driver.scrollTo("Controls");   // Click on Controls.   driver.findElement(By.name("Controls")).click();   // Scroll till chemical part which contains "2. Dark Theme" text If It Is non visible on screen.   driver.scrollTo("2. Dark Theme");   // Click on 2. Dark Theme.   driver.findElement(By.name("2. Dark Theme")).click();   // Click on RadioButton ii to pick out it.   driver.findElement(By.name("RadioButton 2")).click();  }   @AfterTest  world void End() {   driver.quit();  } }

Run higher upward exam inward eclipse using testng in addition to appium in addition to uncovering execution inward android mobile screen. Last syntax in @Test method volition pick out radio button.

This means you lot tin hand the axe pick out radio push clit of whatsoever android app using appium software automation test.
Appium Android - Develop Star Rating Bar Example

Appium Android - Develop Star Rating Bar Example

Automating star rating bar inwards appium android software bear witness is rattling easy, There volition move star rating bar inwards many android software applications. Generally star rating bar is used to charge per unit of measurement products, services inwards eCommerce android software applications. Mostly yous volition run across 3 star too 5 star rating bars inwards such android software applications. If yous wants to automate star ratings inwards appium android bear witness therefore it is picayune tricky but rattling tardily too nosotros tin produce it using TouchAction class. Let's run across how tin nosotros automate 3 star too 5 star rating bars of android software application using appium alongside example.

Aim Of Test And App To Use
We wants to automate 3 star too 5 star rating bars inwards android appium automation test. We volition move API Demos app to automate star ratings. 

As yous tin run across inwards bellow image, We wants to give i star on 3 star rating bar too iv star on 5 star rating bar.


In API Demos app, Manually yous tin navigate to to a higher house covert from Views -> Rating Bar.

Create And Run Test
Create bellow given bear witness inwards eclipse too run it using testng too appium.

SetStarRating.java
package Android;  import io.appium.java_client.TouchAction; import io.appium.java_client.android.AndroidDriver; import java.net.URL; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebElement; import org.openqa.selenium.remote.DesiredCapabilities; import org.testng.annotations.AfterTest; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test;  populace bird SetStarRating {  AndroidDriver driver;   @BeforeTest  populace void setUp() throws Exception {   DesiredCapabilities capabilities = novel DesiredCapabilities();   capabilities.setCapability("deviceName", "ZX1B32FFXF");   capabilities.setCapability("browserName", "Android");   capabilities.setCapability("platformVersion", "4.4.2");   capabilities.setCapability("platformName", "Android");   capabilities.setCapability("appPackage", "io.appium.android.apis");   capabilities.setCapability("appActivity","io.appium.android.apis.ApiDemos");   driver = novel AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);   driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);   // Scroll till chemical component subdivision which contains "Views" text If It Is non visible on screen.   driver.scrollTo("Views");   // Click on Views.   driver.findElement(By.name("Views")).click();   // Scroll till chemical component subdivision which contains "Rating Bar" text If It Is non visible on screen.   driver.scrollTo("Rating Bar");   // Click on Rating Bar.   driver.findElement(By.name("Rating Bar")).click();  }   //Set 3 StarRatingbar = i star.  @Test  populace void set3StarRatingbar(){     //Locate threeStarRatingbar.   WebElement threeStarRatingbar = driver.findElement(By.id("io.appium.android.apis:id/ratingbar1"));   //Get root signal of threeStarRatingbar.   int startX = threeStarRatingbar.getLocation().getX();   System.out.println(startX);   //Get halt signal of threeStarRatingbar.   int endX = threeStarRatingbar.getSize().getWidth();   System.out.println(endX);   //Get vertical place of threeStarRatingbar.   int yAxis = threeStarRatingbar.getLocation().getY();      //Set threeStarRatingbar tap seat to laid upwardly Rating = i star.   //You tin move endX * 0.3 for i star, endX * 0.6 for ii star, endX * i for 3 star.   int tapAt = (int) (endX * 0.3);       //Set threeStarRatingbar to Rating = 1.0 using TouchAction class.   TouchAction act=new TouchAction(driver);     act.press(tapAt,yAxis).release().perform();  }    //Set 5 StarRatingbar = iv star.  @Test  populace void set5StarRatingbar(){     //Locate fiveStarRatingbar.   WebElement fiveStarRatingbar = driver.findElement(By.id("io.appium.android.apis:id/ratingbar2"));   //Get root signal of fiveStarRatingbar.   int startX = fiveStarRatingbar.getLocation().getX();   System.out.println(startX);   //Get halt signal of fiveStarRatingbar.   int endX = fiveStarRatingbar.getSize().getWidth();   System.out.println(endX);   //Get vertical place of fiveStarRatingbar.   int yAxis = fiveStarRatingbar.getLocation().getY();      //Set fiveStarRatingbar tap seat to laid upwardly Rating = iv star.   //You tin move endX * 0.2 for i star, endX * 0.4 for ii star, endX * 0.6 for 3 star, endX * 0.8 for iv star, endX * i for 5 star.   int tapAt = (int) (endX * 0.8);     //Set fiveStarRatingbar to Rating = iv star using TouchAction class.   TouchAction act=new TouchAction(driver);     act.press(tapAt,yAxis).release().perform();  }   @AfterTest  populace void End() {   driver.quit();  } }

As yous tin run across inwards to a higher house test, I convey created 2 @Test methods. 1st @Test method volition give i star rating on 3 star rating bar too 2d @Test method volition give iv star rating on 5 star rating bar. If yous wants to increase or decrease star rating therefore yous tin laid upwardly value of tapAt every bit per your requirement every bit depict inwards bear witness comment.

This is the agency to handgrip star rating bar inwards android software application automation bear witness using appium.

Thursday, August 23, 2018

no image

Appium Interview Questions Alongside Answers

1. : What Is Appium?
Answer : Appium is an opened upward root mobile application automation testing tool. Using appium, We tin laissez passer on the axe automate native applications, Mobile spider web applications in addition to mobile hybrid applications on Android in addition to IOS platforms. VIEW MORE DETAIL

2. : What are the prerequisites to install appium inward windows?
Answer : You postulate to install few software earlier install in addition to purpose appium inward windows. Bellow given software are required to install appium inward windows.

  1. Java JDK in addition to set JAVA_HOME. VIEW DETAIL
  2. Android SDK(API Level >= 17)(VIEW DETAIL) in addition to set ANDROID_HOME(VIEW DETAIL).
  3. Microsoft .Net Framework, Node JS in addition to PDANet+ for Android(optional). VIEW DETAIL.
  4. Also you lot postulate other software, customer libraries in addition to jounce files similar Eclipse IDE amongst testng installed, Selenium Server JAR, Webdriver Language Binding Library, APPIUM for Windows.
3. : Appium is cross platform or platform independent?
Answer : Appium is cross platform software automation testing tool. You tin laissez passer on the axe write software automation tests for multiple platforms similar Android, IOS using same API of Appium.

4. : What is principal payoff of cross platform back upward of Appium?
Answer : Using cross platform back upward of Appium, You tin laissez passer on the axe cut down your software automation test-suite's code size every bit you lot tin laissez passer on the axe reuse code betwixt Android in addition to IOS test-suites.

5. : In which linguistic communication appium is written?
Answer : Appium server is written inward Node.js. You tin laissez passer on the axe install it straight from Node Package Manager(NPM) or you lot tin laissez passer on the axe fix in addition to install it from source.
no image

Interview Questions For Appium


6. : What is Node.js?
Answer : It is cross-platform runtime surround which is used to railroad train server-side software spider web applications. It is open-source thus you lot tin mail away purpose it without whatever cost.


7. : What is Desired Capabilities as well as how it is used inward Appium software testing tool?
Answer : Desired Capabilities is bunch of keys as well as it's value. Using this prepare of keys as well as values nosotros tin mail away tell to appium server that what sort of automation session nosotros are going to create. Example : If you lot prepare platformName = Android thus appium volition sympathise that you lot wants to practice automation session to run examination on Android.

8. : Tell me appium supported platforms to run automation tests.
Answer : VIEW ANSWER.

9. : Is at that topographic point whatever agency to access Android SDK tools from eclipse?
Answer : Yes, You tin mail away access Android SDK tools from eclipse using it's ADT Plugin. VIEW MORE

10. : Why appium?
Answer : There are principal 3 reasons to purpose appium inward mobile software automation.
  • When you lot perform software automation examination using appium, It is non required to alteration or recompile your software app every bit appium purpose criterion software automation APIs on all platforms.
  • You tin mail away write automation tests for mobile software app inward your favorite  WebDriver-compatible linguistic communication similar java, C#, PHP, Python etc.
  • Appium allows you lot to purpose whatever testing framework.
no image

Latest Appium Interview Questions

11. : How to configure android device to survive software examination using appium inward devices?
Answer : In guild to survive software automation tests using appium inward android device, You withdraw to enable USB debugging inward your android device. VIEW DETAILS on how to enable USB debugging inward android device.

12. : Tell me the ascendancy cite for windows to verify that android device is connected amongst PC.
Answer : You tin plough over the axe survive adb devices ascendancy inward windows to brand certain that device is connected properly amongst PC to survive appium tests on it.

13. : Appium back upwards multiple languages?
Answer : Yes, Appium back upwards multiple languages to practise examination cases. List of appium supported languages is given on THIS PAGE.

14. : Which tool you lot are using to locate elements of android software app? How to role it?
Answer : I am using UI Automator Viewer tool which is provided past times android SDK to locate elements of android app. How to role it exceptional is given on THIS PAGE.

15. : Can nosotros locate android app's elements from emulator using UI Automator Viewer tool?
Answer : Yes, UI Automator Viewer tool back upwards physical android devices equally good equally android emulators as well as thus you lot tin plough over the axe role it to inspect app's elements from android emulators too.
no image

Appium Android Interview Questions

16. : Can you lot enjoin me few appium limitations?
Answer : Limitations Of Appium are described on THIS PAGE.

17. : Tell me dissimilar ways to locate android app elements inwards appium automation.
Answer : You tin locate android app's elements using bellow given dissimilar ways.
  1. XPath
  2. ID
  3. Name
  4. className
  5. AccessibilityId
18. : Can you lot enjoin me dissimilar ways to locate chemical gene past times XPath?
Answer : You tin practice XPath inwards dissimilar ways to locate same element. Different XPath examples are given on THIS PAGE.

19. : What is role of package in addition to launcher action advert of android app inwards appium automation test?
Answer : In appium automation test, We demand to render android app's parcel in addition to launcher action advert in addition to thus that appium tin empathize which application to launch for testify when you lot foremost running appium test. We tin gear upwards parcel in addition to launcher action advert equally desired capability.

20. : How to transcend android app's package in addition to launcher activity name?
Answer : There are many dissimilar ways to transcend android app's package in addition to launcher activity name. I convey described two dissimilar ways to transcend android app's package in addition to launcher activity name. Other 2 ways are given on THIS PAGE too.

Wednesday, August 22, 2018

no image

Latest Interview Questions For Android App Automation

21. : Which android version is supported yesteryear appium?
Answer : Appium support Android 17+ API marker versions only. You demand to role selendroid if yous accept older version of android API level. View MORE DETAILS.

22. : How to configure appium projection inwards eclipse?
Answer : Appium projection configuration steps are given on THIS PAGE.
23. : What are the different desired capabilities required to function appium test?
Answer : In lodge to function appium test, You demand to define bellow given desired capabilities. You tin go VIEW EXAMPLE on how to fix desired capabilities inwards appium software automation test.

  • deviceName
  • BROWSER_NAME
  • VERSION
  • platformName
  • appPackage
  • appActivity
24. : Can nosotros function iOS automation exam inwards windows using appium?
Answer : No, You tin go non function iOS automation exam inwards windows every bit Appium relies on OS X-only libraries to back upwards iOS testing. You tin go use Remote Server selection to connect to appium server which is running on MAC.

25. : Is it possible to function android appium exam inwards emulator?
Answer : Yes, You tin go function android appium software automation inwards existent device every bit good inwards emulators too. VIEW EXAMPLE on how to function android software automation tests inwards emulator using appium.