mobile app testing in watir - automation

I have been trying to locate WATIR/Webdriver gem for automating mobile applications. So far I am successful in finding the resources for Mobile Website testing but could not find Mobile Application automation testing like seeTest (experitest.com) provides. Like for example, i have an iPhone and it has tic-tac-toe app installed on it. I want to automate it through Watir/Webdriver or any other gem available to launch app from iphone and start playing it.
Can we accomplish such use case in watir?

Watir (and Selenium) can automate browsers only (including browsers on mobile devices). If you need to automate native mobile applications, take a look at appium, calabash, Frank or robotium.

As of now, still doesn't look like there's support for watir in Appium. It's good for selenium though, just the drawbacks are that you can't use the page object gem.

Related

Mobile used web app automation without Appium?

Can we use normal selenium web automation to test a mobile web app by changing window size to mobile resolution? or do we need to use an emulator and appium?
Currently, I'm working in a company. I didn't use appium for mobile web app automation. What I did is an automated web app with selenium ,Robot Framework as a normal web application and changed the window size to mobile resolution. Is it right?
sample code for window size set for mobile size is shown below for more understanding...!
open browser https://sample.com chrome
set window size 440 717
Thanks for your help guys!!
I would suggest you to use Appium if it's a mobile-based web application as this is the preferred way of end-to-end testing.
For mobile automation, you don't need to download Android Studio as it is an heavy-weight tool. You can make use of avdmanager.
To create emulators, you can refer https://gist.github.com/mrk-han/66ac1a724456cadf1c93f4218c6060ae
Hi guys, I found a clarification for this according to my question.I'm trying to automate a WebApp for mobile and I'm testing in a mobile chrome browser. So it is easy to find elements with appium.We will not need appium inspector to capture elements as we are automating a mobile web application.Not a Native Android app.
https://appiumpro.com/editions/57-how-to-determine-element-locators-for-mobile-web-and-hybrid-apps
Refer above link and inspect the elements. It's totally the same as we are doing normal web automation. The only difference is using the emulator and appium server to run the test.
It was a kind of major issue for me as a beginner.I think now it's been solved.

If I use Cypress and appium I would need 2 automation frameworks instead of 1 framework with webdriver/appium.Is 1 framework more advisable?

We have 2 types of users.
One that lead and support teams which has a web app. The other users are the people on those teams which has a web app along with a mobile app (android & ios)
I would like to use the Cypress automation framework for the web apps and appium for the mobile apps. However this would need 2 different frameworks for running the automation. If I choose to use webdriver and appium I will only need 1 framework to run both.
Is it better in the short or long term to go with only 1 framework (webdriver / appium)? If yes, why?
Would this lead to challenges for automators to switch teams if they wish to?
Or is it not very significant and I can go with 2 frameworks so I can use Cypress?
Somethings I would consider:
Is anything shared between the test setups for web & mobile?
If you are able to share (test) code it's a plus to use the same framework.
Are your Appium tests also in Javascript?
If all tests are in Javascript, there will be less friction to move between them, but if they are different, it's a plus to use the same framework/language
Cypress has zero support for native mobile apps
However, in my opinion, it is the best option for testing web sites/apps
How skilled is your team in Appium? Javascript?
If you have an Appium knowledgeable team, go with that. If your team is even moderately skilled with Javascript, cypress definitely deserves a trial.
My recommendation would be to try doing both for one or two features. See how it feels, see what overlap there is and find out if context switching is problematic or not.

Mobile hybrid app testing using Codedui

I was working on a ionic mobile hybrid app and looking for automation testing tools. I found Codedui a solution for testing windows/web application and I was wondering if this can be used for testing ionic apps as well. I will appreciate if someone who has done similar task can share his views. Many thanks.
Never hear about Codedui before, but I suggest to use Protractor to test automatically your App. Protractor runs tests against your application running in a real browser, interacting with it as a user would.

Is it possible to test PhoneGap applications using MonkeyTalk?

After reading monkeytalk faq from http://www.gorillalogic.com/testing-tools/monkeytalk/documentation/monkeytalk-faq :
How does it all work?
MonkeyTalk is a complete functional testing platform for mobile applications. Currently, it supports testing native iOS and Android apps.
Can I test HTML5 web apps?
No. Our initial release of MonkeyTalk comes with an iOS Agent and an Android Agent. That being said, we understand the importance of HTML5 apps, particularly in the mobile space. So don’t be surprised if you see an HTML5 Agent some time in the future.
Can I test desktop apps? Windows Phone 7? BlackBerry? Flex Mobile?
No. Our initial release of MonkeyTalk comes with a native iOS Agent and a native Android Agent. That being said, we hope to add more agents in the future.
... I am not really sure I can use monkeytalk to test phonegap applications. Does anyone have any experience?
I talked to the Gorilla Logic guys at the last AnDevCon and they had just cracked the ability to test a WebView inside of a native app. Sadly they could not record a test script but they can play back a manually created script. You may want to talk to Gorilla Logic directly.

BlackBerry web testing

I did a small web application for using PHP, HTML, and JavaScript.
I want to test my application in BlackBerry and iPhone, but I don't have either of them.
Is there any site providing facilities, something like a live BlackBerry tester site?
For Blackberry, you can download a simulator from RIM. You want to download the smartphone simulator and also the MDS simulator, which enables the smartphone simulator to connect to websites.
You could try downloading the Firefox add-on, User Agent Switcher, and have it act like a Blackberry. Granted though, it's not a true test. But if you are looking to see how your app reacts to this, it is a good first test.
You also have access to an iPhone simulator as a registered Apple developer. But this is for the Mac OS X platform, not Windows.