I am wanting to automate and write tests for my Flutter deployed application.
I am able to test the client side of Flutter apps on mobile using Appium & Codecept.js with no issues. (Built a testing project in VScode and used the built APK)
I have tried Playwright, Puppeteer, WebDriver, and Selenium with no luck on the deployed code for web. Piercing through <flt-glass-pane/> is possible but super messy and doesnt seem like a stable way to go about it. I am hoping to achieve this in my separate codebase that is responsible for UI testing.
I am wondering if anyone had some solid suggestions on automating a Flutter web app from the client side (UI, and clicks etc).
From the research I have done, I have not found a clear solution. I am very interested in what you have used before that works or if you know the right direction I should head toward.
Related
My company is creating a new mobile app and it seems that part of the tech stack will involve the use of flutter.
I want to use appium with webdriverIO because it a great tool to run my automated tests.
Is this possible with flutter?
Has anyone used flutter before and what were your opinions?
So I tried using appium and various other testing platforms like Selenium or Cypress. None of them helped me with the Automation Tests.
Though, Recently came across a github project, flutter_convenient_test, I not only helped be automate the tests but also helped me with the Assertions.
Here's a way of doing it perfectly.
await t.get(find.byTooltip('Home Page')).tap();
So here, so may need to add tooltip to each widget(also custom widgets you use), and then run this on the above platform.
OR you can use the Text widget if you have a Text heavy app.
await t.get(find.text('Add Account')).should(findsOneWidget);
I was wondering if it's possible to run Flutter application components (such as building a specific screen) with other web apps. And if there is a good resource to learn how to do this.
We have a GWT web-app that we have been considering upgrading some components to Flutter, but I have not seen much information online on how to implement this.
I can't see documentation of this process online though. I have seen that you can insert Flutter into existing Android/IOS apps but I don't know how compatible this is with GWT.
Our team is building a new store management app using Flutter.
In order to make our CI process better, I want to start building automated tests for it.
I want to make sure that our core features like adding products, purchasing goods, calculating reports and others work.
I was told that I can do such tests only in Dart. However, I haven't ever worked with it (I've originally built tests in Python) and curious if there any other ways to build test automation for Flutter apps except Dart.
Please advise if you have ideas about it!
Thanks!
I'd recommend using appium for Flutter App !
Look for appium-flutter-driver and appium-uiautomator2-driver and how you can integrate them in your automation project !
Recently, I have been exploring the Flutter API tools and builds, even the flutter-web project. So what I really want to understand is the flutter-web support which makes it possible to compile an existing or new app into a web app, to run on web browsers. The question is: "What are the possible side effects you are likely going to experience when using flutter-web to build web apps". Thanks in advance.
The main reason why it is not advised to use flutter-web is beacuse it is not yet in a stable version.
Therefore if offers low-performance compare to normal web-apps.
For more details on the advantages and disadvantages of using flutter-web.
Check the article below. It will be of help.
Read more on Flutter Web
I hope this answers your question.
I'm looking for a good tool to develop to Web and Mobile.
A friend of mine recommended me to learn NativeScript/Angular because with that tool is possible to write the services, models, and controllers only one time and create specific views for Mobile and Web platform, sharing almost 100% the business logic code.
But I think that native script is not so hyped as flutter and maybe flutter could be more used in the next days, so I'm searching for this type of tutorial (sharing logic between Mobile and Web) in a flutter, but I'm not sure if this is really possible.
I saw something about BLOC pattern, but I am not sure if this is the correct solution for this type of project, or even if it is possible to write logic code only one time and specific "views" for Mobile and Web in a flutter.
Can anybody help me with this issue?
Thanks in advance (and sorry about my English, I'm not fluent yet)
That's the whole propaganda of flutter. The framework is made to write one code and run everywhere (android, ios, web, desktop). So you definitely are on the right path.
Unfortunately flutter web is a bit unstable right now and maybe you can face some difficulty.