Viewing 13 replies - 1 through 13 (of 13 total)
I used .env file in my flutter project which is not published at GITHUB for safety reason. How to deploy this kind of project into Github?
Connecting a real device to Appium over WiFi is achievable for both Android and iOS! This setup allows you to bypass the traditional USB connection and can be especially useful for remote testing.
To get a detailed, step-by-step guide on how to set this up, you can refer to my blog post here: How to Connect to Real Device in Appium Using WiFi. The guide covers everything from enabling developer options on Android to configuring iOS devices with WiFi. Each step is carefully outlined to help you get started seamlessly on both platforms.
Automating Flutter apps outside of the built-in Flutter test framework can indeed be challenging at times.
For automating a Flutter mobile app, I recommend using a framework like Patrol Test. This test framework is capable of testing Flutter mobile apps and capturing elements. However, please note that setting it up can be somewhat complex and may require some additional time and effort.
In the past, I’ve used other automation tools to automate Flutter apps, specifically for the web. These tools typically required adding a line of code to enable the ability to capture elements. While my experience with this approach is primarily web-based, I’m not entirely sure how it would translate to mobile app automation. If you have access to the Flutter code repository, you can check out this blog post I wrote, which details the process of enabling that line of code.
Once you have enabled this line, you could build a debug APK and use a tool like Appium to inspect elements. With Appium, you can potentially write tests against these elements
Hi Jahmal,
I also am a working QA engineer. I have a scenario to test the mobile app built in flutter. I need to make sure all the elements are loaded on the home page of app?
Also i’m using katalon studio to record the scenarios and it is not capturing the commands because app is in flutter. How to deal with this?
There’s nothing specific that needs to be enabled in your Flutter codebase to allow scrolling using Selenium. The issue you’re encountering can be resolved using the JavascriptExecutor in Selenium to scroll to desired or near by element on the page. For a detailed guide on how to set this up, you can refer to our guide here – How to Scroll in a Flutter Web App Using Java and Selenium
JavascriptExecutor
Good news enabling web elements for automation or accessibility testing is possible. Please read our post to find out more about viewing web elements in browser inspector for Flutter Web. How to Enable Web Elements for Automation Testing in Flutter Web.
To use the virtual keyboard while running the automated test on your flutter app, please refer to this guide – https://masteringqa.com/how-to-use-the-emulator-virtual-keyboard-in-flutter-app-with-appium/