Automation (Mobile) – Appium and Saucelabs

Description:

This blog will help to automate mobile applications on various mobile testing platforms both Android and iOS. Here we are giving brief explanation about how to write testing scripts using various tools like Appium, TestNG, Junit and programming language Java for both Android and IOS on Saucelabs Cloud-based platform.

Prerequisites:

Steps to get username and accesskey of Saucelabs

    • Login to sauce labs
    • Go to ‘My Account’ from the username right arrow mark drop down
    • Click on ‘Show’ button to get the ‘Access Key’ check below image

sauce

Dependencies to add pom.xml

TestNG Dependency

test ng dependency

JUnit Dependency

JUnit plugin

Appium Dependency

appium dependency

Sample TestNG script

TestNG

Sample JUnit script

Junit script.PNG

Note: Refer sample git project here.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s