How to write Integration Tests in Flutter like no other, using the Robot Pattern

  Рет қаралды 3,831

Runtime Snippets

Runtime Snippets

Күн бұрын

Пікірлер: 13
@AbdulBari-jh8lj
@AbdulBari-jh8lj Жыл бұрын
Simple and to the point demonstration without any time waste, simple awesome. Would love to know if there is any way to achieve native UI communication like allowing notification/location permissions or connect to a WiFi network etc.
@runtimesnippets
@runtimesnippets Жыл бұрын
Hi there, Thanks for the comment! Would you like to explain more about "native communication for location permissions or connecting to a WiFi network"?
@AbdulBari-jh8lj
@AbdulBari-jh8lj Жыл бұрын
Native communication like if I have to allow GPS permission and the native iOS or Android GPS permission dialog appears, then how can I provide the permission through the integration test? And same goes for the WiFi network connection, if I want to connect to a Wifi network then how can I connect from the phone settings using the integration test? or is that even possible @@runtimesnippets
@muhammadfarooqzahid
@muhammadfarooqzahid 3 ай бұрын
Ahh I've to write more code now
@runtimesnippets
@runtimesnippets 3 ай бұрын
Do it!
@laugedyret
@laugedyret 7 ай бұрын
Thanks for a great video! I find that my tests work when I run them locally, but when I try to get my app approved in the Google Play Console, I can see from the short test videos that their robot can't find my fields for email and password. Have you experienced the same thing?
@runtimesnippets
@runtimesnippets 7 ай бұрын
This requires a bit of debugging. For example, which device is the test emulated on? Run the tests on that device locally inside your flutter project and see if it gives the same error. Mostly if the device height is too small, or the content is overflowing, the robot won’t be able to detect those fields. These integration tests are different from the ones that Google runs. But the idea for debugging is the same. Hope it helps!
@laugedyret
@laugedyret 7 ай бұрын
@@runtimesnippets Thank you!
@thabasumm1868
@thabasumm1868 10 ай бұрын
What if i have 2 files to execute after login? Can i do simply in one main method by calling the file names and without uninstalling the app after login?
@runtimesnippets
@runtimesnippets 9 ай бұрын
as I understand, you have two files with integration tests, you can both by running "flutter test integration_test" and it will run all the integration tests that are inside the integration_test directory
@squidwardmoney6492
@squidwardmoney6492 Жыл бұрын
very nice, very nice
@runtimesnippets
@runtimesnippets Жыл бұрын
Thankyou! If you like the content, please subscribe. It helps us stay motivated and keep pushing out new tutorials.
@carlosalbertobotinacarpio5650
@carlosalbertobotinacarpio5650 11 ай бұрын
awesome
Flutter Integration Testing Tutorial For Beginners - Practical Guide
17:06
Flutter: BLoC Testing in 10 Minutes
13:49
Code With Cypert
Рет қаралды 2,7 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 10 МЛН
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 265 МЛН
Automate your Testing on Devices with Flutter Integration Testing
20:33
Flutter Explained
Рет қаралды 50 М.
Flutter Testing For Beginners - The Ultimate Guide
13:05
Robert Brunhage
Рет қаралды 60 М.
What's new in Flutter 3.24 | Flutter 2024 Updates #flutter
3:43
Runtime Snippets
Рет қаралды 8 М.
Flutter Unit Testing Explained | Testing Series Codepur.dev
21:44
From Codemagic to Firebase Test Lab - CI / CD to Integration Tests
27:00
Flutter Explained
Рет қаралды 3,5 М.
This is the Only Right Way to Write React clean-code - SOLID
18:23
Integration Testing with Flutter
10:41
Tadas Petra
Рет қаралды 13 М.
Unit Test with Mockito in Flutter
11:26
AI with Flutter
Рет қаралды 3,8 М.
How to write Unit tests in Flutter using the AAA pattern
8:28
Runtime Snippets
Рет қаралды 308