Testing Android and iOS with a flutter embedded parts - android

What's the best way to test the following scenario?
Open native android app
Go to screen B written in flutter - click on button "OK"
Go to screen C which is a pure Android view again
Currently I use Appium but I can not find specific elements of B's screen because labels of button are not always available in inspector. In order to select button in tests i have to specify X and Y coordinates to push a click. I'm looking for a robust solution which will cover automated integration e2e test both for Android, iOS and flutter. Separate Flutter parts are tested in standalone mode using flutter integration test.

It turns out that Flutter in most of cases build an app with accessibility id visible in Appium. This accessibility id is derived from Widget text and other UI elements. Unfortunately I couldn't find any accessibility id for Icon widget. In order to to find such Widget in Appium you have to wrap it in flutter with Semantics widget.
Semantics(
label: "EDIT_PROFILE",
child: Icon(
After it's done you can easily find any widget in Appium.Answering main question: Appium is a good solution to test such scenarios where Flutter is only a embedded screen in Android app. I hope that test will go smoothly on iOS as well.

Related

Can I run stackblitz on my android phone?

I run stackblitz site on my android phone, and create an angular project. But when I want to create a new component, I don't see any place for typing the name of the component and therefore I can't create the component.
When I touch the "angular generator", then touch "component" choice, the keyboard appears but there isn't any place for typing the name of the component.
Screenshot from stackblitz on my android phon](https://i.stack.imgur.com/Rgyqa.jpg)

Flutter app display message in another app

I want to display a msg box when another app is launched. The msg can be changed in a Flutter app. So this last one got to be responsible for displaying. It would run in the background. Any ideas?
This is part of a learning experience for Flutter. So, so far the technologies that was tried is basic Flutter
Flutter uses a different rendering canvas as compared to what native apps use. I don't think it is possible to display a message box or AlertDialog using Flutter's own rendering on top of another app. The only way I see in order to do this is implementing a platform-specific functionality.
For Android, you can use a BroadcastReceiver to check the app that have been launched. More info here.

Embed react native app inside existing android app

I want to create a page made with native android with a small portion (say a horizontal scroll view) made from react-native inside the same android page like an android page with a react-native widget plugged in, such that the app is completely widgetized.
I know that it is possible to do so because I read about it in this article and some companies are using it.
Can anyone help me how to achieve this?
My question is same to this question, I found a few useful articles related to this matter for iOS but I want a solution for android.

Flutter - handling logic part

Let's consider this use case:
I have an already developed app in android and iOS which is out here for a while. I would like to implement a library/package in Flutter that could run on Android and iOS projects. Let's say I want to store some data in the flutter part, trigger some events, and so on. I might not want to show any screen from flutter just a logic part would be here. Is it currently possible to do something like that? Just to reduce the effort to implement it natively in iOS and Android

how to create Floating window in android

I saw some android applications that has floating window like something in windows OS (or like picture below).I had searched but i could not find any thing.Is any api or library needed or this is just styling?
You can build App Widgets. App Widgets are miniature application views that can be embedded in other applications (such as the Home screen) and receive periodic update
go to link for more details
https://developer.android.com/guide/topics/appwidgets/index.html
http://www.vogella.com/tutorials/AndroidWidgets/article.html

Categories

Resources