Appium Tutorial




Hi everyone, thanks for visiting my blog. During my career I have used many android automation tools like Appium, Espresso , Selendroid etc. I have started this blog to share my expereince in simple and short tutorials so that any one who wants to shift from Manual to Automation can do it from the scratch.

Appium is very popularly used Automation Testing toll which supports both android and IOS and hence it is used by many organization. Below are links to the posts of Appium Tutorial which you can explore to start setting up Appium and writing your test cases

Appium Tutorials -

  Advance Appium Tutorials -

     1. Implicit and Explicit Wait in Appium
     2. Database Testing with Appium & JDBC
     3. Creating Maven Project with Appium 
     4. Jenkins Setup for Appium & Maven project
     5. Page Object Model ( POM ) in Appium 
     6. Swipe Left, Right , Up & Down using Appium
  
Note - Learn More About Android Studio HERE

20 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. Thanks for sharing your ideas on mobile application.Really useful to me.Continue sharing more like this.
    Regards,
    Mobile Application Training in Chennai | Mobile Apps Testing Training | Mobile Application Testing Training

    ReplyDelete
  3. Hi Anuja Jain

    Can you tell me how to start and stop appium server programmatically using java code in ubuntu OS

    ReplyDelete
    Replies
    1. Sure I will check and share that post as well.. stay connected via social media for latest update

      Delete
    2. Hi you can check this post http://www.qaautomated.com/2016/01/how-to-start-appium-server-using-java.html
      You need to give path as per UNIX Environment and make sure you have install node.js via npm -(Refer http://www.qaautomated.com/2016/11/how-to-install-appium-on-ubuntu.html)

      Delete
  4. Hello Anuja
    can you please help in verifying the toast message in appium

    ReplyDelete
  5. hi getting the below error in appium


    info: [debug] The following desired capabilities were provided, but not recognized by appium. They will be passed on to any other services running on this server. : version
    > info: [debug] Didn't get app but did get Android package, will attempt to launch it on the device
    > info: [debug] Creating new appium session 8ec1d872-bce5-499e-9a5d-0260e353001b
    > info: Starting android appium
    > info: [debug] Getting Java version
    > info: [debug] Cleaning up android objects
    > info: [debug] Cleaning up appium session
    > info: [debug] Error: 'java -version' failed. Error: spawn ENOENT
    > at [object Object]. (C:\Program Files\Appium\node_modules\appium\lib\devices\android\android-common.js:1057:17)
    > at exithandler (child_process.js:633:7)
    > at ChildProcess.errorhandler (child_process.js:649:5)
    > at ChildProcess.EventEmitter.emit (events.js:95:17)
    > at Process.ChildProcess._handle.onexit (child_process.js:795:12)
    > info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: 'java -version' failed. Error: spawn ENOENT)","origValue":"'java -version' failed. Error: spawn ENOENT"},"sessionId":null}
    > info: <-- POST /wd/hub/session 500 29.641 ms - 208

    ReplyDelete
  6. Can I tap using screen coordinates If not able to find id etc of elements ?

    ReplyDelete
    Replies
    1. Hi,
      Yes in Appium you can perform tap using co-ordinates.

      Regards,
      Anuja

      Delete
  7. Thank you by the tutorials, I helped me a lot. I am new about moviles test theme and i have a doubt: How am i generate the code of the application who i want to test? that is, the bibliographies almost always give me a example code but they dont tell me where are they generate the test code?
    I would like I know this, please help me.

    ReplyDelete
  8. I started the test´s world with visual studio, microsoft test manager and selenium for web and desktop application the last year, and i liked it.
    At present I am interested in automated mobile testing and i am working with appium and android studio. I have accomplished to do test examples but i dont understand How am i generate the code of the application who i want to test? the examples come with yours code.
    I saw examples with Appium on Mac and i have seen how is it generate the code.
    I have not seen test examples on windows where it is explain the generate test code whit appium and android studio.
    Thank you for yours attention

    ReplyDelete
  9. Thanks for the tutorial, I been searching for this for a long time, At last reached to the got post. Thank you giving a information

    ReplyDelete
  10. I am expecting more interesting topics from you. And this was nice content and definitely it will be useful for many people.
    Mobile App Development Company
    Mobile App Development Company
    Mobile app Development Companies

    ReplyDelete
  11. Exception in thread "main" org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
    Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
    System info: host: 'DESKTOP-1M92PA5', ip: '192.168.0.109', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_121'
    Driver info: driver.version: RemoteWebDriver
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:641)


    I m getting this error when i m trying to execute my script. The thing is the the contact to the appium server is not happening

    driver = new RemoteWebDriver(new URL("http://127.0.0.1:4723/wd/hub"),capabilities);
    //driver = new AndroidDriver(new URL("http://172.20.67.130:4723/wd/hub/"), capabilities);
    System.out.println("driver in try method executed");

    I have tried with some other URL and no luck, could anyone help me resolve it ?

    ReplyDelete
  12. Hi,

    how can i select grid view element in appium

    ReplyDelete
  13. can u tell me how to run test case of android without using apk file and using of android source code in android studio

    ReplyDelete
  14. Hi, Good job.. nice tutorials :) is there any real time example source code available? for practicing?
    Thanks, Ranjith

    ReplyDelete
  15. Hello, Anuja!
    I am facing one problem in automating my application.
    I select a radio button first and then try to click OKAY, but what happens is only the radio button gets selected and OKAY button does not.
    Tried the code elsewhere, it runs perfectly.
    Also tried executing following two commands separately, with success.
    Test case gets passed, but actually it does not work.
    Please review the following two commands:

    @Test public void SelectGroupsAndStudents() {

    // Select Group
    driver.findElement(By.xpath("//android.widget.RadioButton[@text='Mahatma Fhule']")).click();

    driver.findElement(By.xpath("//android.widget.RadioButton[@text='Select Groups']")).click();

    Please note that the second command does not get executed.

    Any help will be appreciated!
    Thanks!

    ReplyDelete
  16. Can you please one sample project video.

    ReplyDelete