I want to test Apps with and in Android Studios!
I know already Espresso, Robolectric, Robotium etc.
But the most tutorials are with Eclipse like testing with Selendroid!
Now I want to test with Selendroid writing the tests in Android Studio.
Do you have any suggestions how to get through or any tutorial links?
I would also be happy for other suggestions for Testing Android, mostly
UI testing with many fragments?
The Android SDK provides the following tools to support automated, functional UI testing on your application:
uiautomatorviewer - A GUI tool to scan and analyze the UI components
of an Android application.
uiautomator - A Java library containing APIs to create customized
functional UI tests, and an execution engine to automate and run the
tests.
To use these tools, you must have the following versions of the Android development tools installed: * Android SDK Tools, Revision 21 or higher * Android SDK Platform, API 16 or higher
Read about Analyzing Your Application's UI, Preparing to Test, Creating uiautomator Tests, Building and Deploying Your uiautomator Tests, Running uiautomator Tests you can here http://developer.android.com/tools/testing/testing_ui.html#running
Related
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.
I am looking for some free alternatives to Appium for test automations.
I'd prefer some platform-independent frameworks like Appium.
Appium is the most used cross-platform Mobile Testing Tool for hybrid and native iOS and android (from v2.3 onwards) apps from the market.
If you are looking for options for mobile testing can try other options like Selendroid, Robotium, Espresso
Or for web Playwright, WebdriverIO, Selenium, Cypress, or Robot Framework
There is a application which is built on top of electron.js acts as desktop application, is automated using protractor due to slight changes Dev team is providing build to QA as .exe file.
So I want to use the existing scripts.
Please let me know if there is any possibility that Electron app can be integrated with protractor framework, if not suggest any other open source tool which can we used to automate Electron app other than Spectron.
I want to create automatic tests for an application written in react native. I want to test only logic (not the UI).
Jest seems to be great solution for unit or even integration tests which will be run on a computer. But I would like to test the application on a real device. I have a component without UI that does some logic, wireless communication with other devices etc. I need to test that communication especially, which cannot be done without a device.
Are there any frameworks or standard solutions to do such thing?
Ok, I did my research about testing react native applications.
At the moment ReactNative doesn't provide a platform independent test framework that could run integration (not UI) tests on real device. In fact there is a RCTTestRunner but it's functionality is limited and it works only for iOS devices.
Functional tests
There are multiple functional test frameworks. These tests mainly depend on UI components and are used for black-box testing of user interactions. There are two mature cross platform frameworks that could be used for that: Calabash and Appium. Appium seems to be better solution as it's a single tool for both platforms (Calabash is actually set of two projects for iOS and Android). Also Appium supports multiple languages (JavaScript, Python, Java, ...) when Calabash supports only Ruby.
There is also a Cavy project that looks promising but uses React ref generating functions in a hacky way and needs multiple modifications in the application code.
But all of that is intended to do only UI testing.
Workaroud solution
The solution which I used to test logic of the application (without being influenced by UI changes) is following. I created special version of the application (by creating new target) which have replaced the main UI component with test one. That test component runs on the top of the application. It is just triggering tests and displaying the logs. These logs are then read and parsed by functional test framework to produce the report.
Please suggest the recommended open source tools for mobile automation testing which supports ios and android?
For Android I would recommend
UI automator framework and Robotium
I recommend Monkeytalk. Try it-
http://www.gorillalogic.com/monkeytalk
It has very good online documentation and tutorials.
I would recommend to use appium: http://appium.io/ which is open source, cross-platform test automation tool for native, hybrid and mobile web apps
Selenium webdriver is good for Android as well as iphone.
On iphone it works slowly but accurate result.
Appium is really coming up in these days to capture Android and IPhone mobile automation market though it has some limitation for Android automation like support for Toast messages is missing etc.
Robotium can be a good choice for Android automation as it comes with a flexible API with a large number of utility methods included inside.
If you looking to automation Android or IPhone Web applications, Selenium Android Driver and IPhone driver can be a good choice.
Today you have plenty of approaches, you can use Appium as everyone said, here you have the advantage that is similar to Selenium and same code can run for Android and iOS. It's black box testing and it's slow, 8 times more slow than native approaches.
So, you have native approaches, Espresso for Android and XcuiTest for iOS. This approaches are faster that Appium and are white or grey box testing. The disadvantage is that you need to code Java/Kotlin and Swift for the tests and maybe you testers have no skills in this languages but developers can help.