Can we automate website testing on a mobile device? - android

I am doing UI testing for a web application which needs to be tested on mobile devices as well. I have been using selenium for desktop testing, but I can't find any information on a mobile equivalent. I am learning swift and I'm experienced with java so if it's possible to do this,any pointers in the right direction would be of great help!

You can use selenium for the same using appium as a bridge.
http://appium.io/docs/en/writing-running-appium/web/mobile-web/#android-mobile-web-automation
should provide you more info.

You need to use Appium tool for testing. Download and Install the Android SDk,Appium server, node.js, microsoft .Net framework, Appium Jar file.
Yu can follow the link for Installation and Writing/running the Script using Java As language
https://www.guru99.com/implicit-explicit-waits-selenium.html
http://www.seleniumeasy.com/appium-tutorials/install-appium-on-windows-step-by-step

Related

Compare tools for Android Application testing between Appium and MonkeyTalk

I'm brand new to Mobile application automation. So, I did a research for selecting a good automation tool for test Android applications.
I need a tool with following requirements
Functional testing
UI testing for different devices, different Android versions
Can write scripts using Java
According to my reading Appium is the best option for functional testing. Can someone give a comment about the best testing tool to cover both functional and UI testing.
Thanks in advance. :)
Appium is a cross-platform tool and works for hybrid as well as native apps where as MonkeyTalk doesn't support hybrid apps.

What is difference between Selenium and Appium?

I can not see the exact difference between Selenium and Appium. Both of these server and framework is it right?
But I see lots of codes in github, when use appium, but the sample code contains of only selenium webdriver elements. Please somebody inform me about two tools. So we use appium and selenium together?
Thank you,
Appium is a casing for Selenium to test native apps (IOS and Android). From Appium introduction
...wrapping the vendor-provided frameworks in one API, the WebDriver API. WebDriver (aka "Selenium WebDriver") specifies a client-server protocol (known as the JSON Wire Protocol).
...In other words, Appium & WebDriver clients are not technically "test frameworks" -- they are "automation libraries".
...WebDriver has become the de facto standard for automating web browsers, and is a W3C Working Draft. Why do something totally different for mobile? Instead we have extended the protocol with extra API methods useful for mobile automation.
Basic difference between selenium and appium
Appium :
It is used in mobile application(android & ios).
Having specific driver eg : AndroidDriver and IOSDriver
If you want to run automation below 17 api in android you have to use selendroid for it.
Selenium :
It is used for mobile web application.
It is having web driver which runs on web application.
Common Things :
Both are opensource.
Both can be customize.
Both use Json-Wire protocol.
for details refer https://www.quora.com/Which-one-is-better-Selenium-or-Appium-for-app-testing
In a nutshell, Appium is a mobile test automation framework (with a tool) that works for all: native, hybrid and mobile-web apps for iOS and Android. Appium is a great choice for test automation framework as it can be used for all these different app/web types. Basically, Appium derives its roots from Selenium and it uses JSONWireProtocol internally to interact with iOS and Android apps using Selenium’s WebDriver.
Selenium is meant for both when encaptulated with appium can be used for mobile automation as well as independently it is for web automation
Appium :
Appium is an automation tool that was built for testing all types of applications whether mobile, web or hybrid applications. It is open-source software that was built using the C# programming language. Dan Cuellar developed the Appium in 2011, it has Apache 2 Licence. At first, it was known as iOSAuto but in 2013 it was named Appium when it came as open-source software.
Selenium :
Selenium is an open-source browser automation tool with Apache Licence 2.0 and it contains a large number of inbuilt libraries for web application testing. It is capable of automating nearly all the web browsers like Chrome, Brave, Firefox, etc. Its stable version was released in October 2021. It is a cross-platform software that was written using different programming languages like Python, Ruby, JavaScript, etc.

is it possible to automate hybrid app(ios and android) by using protractor without using appium

Can any one clear this up for me, is protractor a tool or a framework?
As per my understanding protractor is a framework on which selenium on built on top of.
If I want to make a mobile app (hybrid and native) automating using protractor what are the possibilities? please make recommendations to me.
Thanks in advance.
Take a look at Appium: http://appium.io/
That is a go-to tool + framework for testing hybrid and native mobile apps.
And it is also built on top of selenium.
Basically protractor designed for angular web pages. It mostly used for developer unit testing purposes. But if you need a mobile automation tool use appium. It built on selenium. you can find most of the features which selenium supports. Appium supports Native , Hybrid and mobile web as well.

Can we do mobile automation directly with Ruby without cucumber?

I am a newbie to mobile test automation. I searched a bit and read a lot about using calabash (cucumber + ruby) to automate the testing for Android and iOS.
If we don't use the cucumber layer in between (i.e. if we don't have cross functional teams), is it possible to do mobile test automation for android or iOS directly with the programming language through Eclipse/Rubymine?
I do not think cucumber layer is between something. Its the front end using which you write the feature and scenarios. I have been using Calabash for both android and ios automation testing and I do not think it can work without cucumber. But there are cases where people try to use Java or C# instead of Ruby with cucumber. Here is the github link https://github.com/cucumber/cuke4duke. It looks old and i am not sure if there is active development on cuke4duke

Start rails development environment on android

Is it possible to run the ruby on rails, development environment on android, like we do on mac/ubuntu/windows. If not then, please post comments to why isn't possible?
You might want to consider Rhodes. Rhodes is a Ruby MVC environment for building mobile apps for both Android and iOS. It's folder structure is not exactly like rails, but similar enough that it should be an easy transition.
Scripting Layer for Android (SL4A): http://code.google.com/p/android-scripting/
For Ruby specifically: http://code.google.com/p/android-ruby/
The idea of running Rails on Android devices is very appealing to me. However, I'm afraid it may not be easy or even possible at the moment.
Key requirement for developing Rails applications is having a Ruby interpreter on device. As for as I know, the only real candidates for this are:
Having Scripting Layer for Android (SL4A) along with JRuby for Android, or alternatively
Using Ruboto
After somehow getting the Ruby running, you still would need to figure out how to install and use RubyGems, Rails itself as well as all other libraries your web application may depend on (they may or may not work on Android).
As a summary, at this moment I would be rather looking into some alternatives. For instance, installing RoR on some remove machine and connecting to it from Android device with some SSH application.

Categories

Resources