Automate iOS application with amCharts element using Appium or Perfecto - selenium

Is it possible to automate iOS native application with amCharts elements using Appium or Perfecto ? [Sample amChart]

Perfecto is just mobile device cloud provider, where you can use Appium: so does not affect the possibility.
It may be tricky to parse amCharts for Appium just as it may be tricky to do so for XCUITest (that Appium use for iOS interactions). Since its Objective C wrapper chances are pretty good, but still you will be able to get only numbers and element position in best case.
I suggest to install appium-desktop, start session with your app and make screen snapshot. If appium won't parse it, you may try do it directly in XCode with XCUITest and maybe you need to add some attributes for parsing via Appium

Related

Is that possible test flutter apps with WebdriverIO?

Can I test flutter app (for example in apk) using WebdriverIO?
I saw there is a flutter driver for Appium. Is it supported with WebriverIO as well? How is it handled?
Yes you can. You have to use Appium Automation to interact with your Flutter mobile app.
Setup your own WebdriverIO Appium project, or start from a featured boilerplate, as such.
Integrate the appium-flutter-driver into your project and start using it inside your test cases.
LE: Alternatively, you can try SauceLab's Appium-Flutter-Driver implementation using WebdriverIO. See it here.
You can find multiple examples online for configurations. A simple Google search even gives you a full video tutorial on how to setup everything.

How to set fake GPS location in Appium

I saw that there is the method to set the Location driver.setLocation(Location);
But which driver do I need for this?
And is this usable for Android and iOS?
For emulators or simulators, which are the easiest to configure, use the following capabilities.
Android
gpsEnabled: true
iOS
locationServicesEnabled: true
locationServicesAuthorized: true
It is required to provide the bundleId capability for the latter to work.
For real devices, things are more tricky. In Android you should be able to enable mock locations in the Developer Settings, however, I haven't been able to put it to work using Appium setLocation method. This question invoking Appium settings app through adb might help you in that regard: https://android.stackexchange.com/questions/35716/is-it-possible-to-set-devices-latitude-and-longitude-using-adb-shell.
Finally, for iOS, you can use a run configuration with a fake location from XCode, but I haven't found any method to programatically run the app with a fake location from an Appium automation.

Mobile Game automation testing using Appium,Opencv and Bitbar Akaze (Image Recognition)

I want to learn how to test mobile games using Appium, so i found it could be done using Image Recognition.
I found this https://bitbar.com/appium-tip-27-using-appium-for-mobile-game-testing/
I'm truly stuck in it
couldn't understand what i should do or add in Eclipse to test mobile games using Appium.
If anyone know how to test mobile game using Appium rather than Image Recognition please tell me.
Please, if any one have any tutorial or a clear steps of mobile game testing automation tell me.
Appium is not a good option (unless you are ok with image recognition approach) to test mobile games. Appium is using native test frameworks like UIAutomator, Espresso (Android) and XCUITest (iOS), that are basically implemented to test apps build with native SDK
Mobile games are mostly build with engines like Unreal, Unity, Corona ,etc. that have no relation to native SDK and thus cannot be tested with native test frameworks without additional tweaks.
Basically following issues to be addressed and add support for:
find elements
check action occurring in game
check UI rendered
properly
There are some projects where engineers are trying to use Appium with some additional ports, e.g. Unity-Appium, but there is definitely nothing like Appium or Selenium that you can take and use like silver bullet.
Check the engine your game is based on and search for possible test frameworks.

Why in WEBVIEW Context the xpath generated by Appium isn't working using iOS simulator?

I want to know why in WEBVIEW Context the xpath generated by Appium isn't working using iOS simulator with java to write our scripts?
Other question is there a way to make the code generated by appium recorder working in our java classes, because for now while we are in WEBVIEW there is no chance with appium we have to take a look into html code to create code.
PS : I have already tried to change the context to NATIVE then turn
back to WEBVIEW_1 but no changes.

Calabash Automation Testing

I am new in Automating the apps for testing Android and i like to advance to this level... I have researched for Appium and Calabash... but knowing the difference pretty complicated.. There are my questions:
1: For Calabash, do we need the source code, i mean can i have APK and give test cases and so on? or do I NEED the source code even if im using the elements from app?
2: I heard i can use the Appium with cucumber, and same question do i need source code for that?
I have researched about it and all i get is for Apple apps... but nothing much for android...
You don't need source code. All you need is apk file, packageName and ActivityName to launch the app.
In Appium framework, all you need is app file (for android it will be simply .apk file).
Source code will be never needed, all elements from UI that you would like to interact with, can be simply get from Appium Inspector.
For both calabash and Appium you don't need to source code. you can automate application using apk file.
Yes you can use Appium with cucumber.
To find object locators of application use calabash console and Android UI Viewer, Appium GUI.