Skip to content

Error waiting for no transient callbacks from Flutter driver: Failed assertion: boolean expression must not be null #1

@comerc

Description

@comerc
Using device Android SDK built for x86.
Starting application: test_driver/app.dart
Installing build/app/outputs/flutter-apk/app.apk...                 4,3s
[!] Your app isn't using AndroidX.
    To avoid potential build failures, you can quickly migrate your app by following the steps on https://goo.gl/CP92wY .
Running Gradle task 'assembleDebug'...                                  
Running Gradle task 'assembleDebug'... Done                        18,7s
✓ Built build/app/outputs/flutter-apk/app-debug.apk.
I/flutter ( 5883): Observatory listening on http://127.0.0.1:42852/XnwWdV-4asg=/
Starting Flutter app under test 'test_driver/app.dart', this might take a few moments
I/flutter ( 5954): Observatory listening on http://127.0.0.1:50758/5FACdXdbDug=/
before run hook
VMServiceFlutterDriver: Connecting to Flutter application at http://127.0.0.1:38029/5FACdXdbDug=/
VMServiceFlutterDriver: Isolate found with number: 3671038823464699
VMServiceFlutterDriver: Isolate is not paused. Assuming application is ready.
VMServiceFlutterDriver: Connected to Flutter application.
running hook before scenario 'Check App Title And Content'
Running scenario: Check App Title And Content # ./test_driver/features/hello_world.feature:3
   √ Given I expect the "firstTabTitle" to be "Jeresy Cool!" # ./test_driver/features/hello_world.feature:4 took 129ms
   √ Then I expect the "textField" to be "Hello, Jersey!" # ./test_driver/features/hello_world.feature:5 took 54ms
PASSED: Scenario Check App Title And Content # ./test_driver/features/hello_world.feature:3
Restarting Flutter app under test
running hook after scenario 'Check App Title And Content'
VMServiceFlutterDriver: Connecting to Flutter application at http://127.0.0.1:38029/5FACdXdbDug=/
Error waiting for no transient callbacks from Flutter driver:

`Failed assertion: boolean expression must not be null`

#0      VMServiceFlutterDriver.sendCommand (package:flutter_driver/src/driver/vmservice_driver.dart:351:29)
<asynchronous suspension>
#1      FlutterDriver.waitUntilNoTransientCallbacks (package:flutter_driver/src/driver/driver.dart:230:11)
#2      FlutterWorld._closeDriver (package:flutter_gherkin/src/flutter/flutter_world.dart:49:14)
#3      FlutterWorld.dispose (package:flutter_gherkin/src/flutter/flutter_world.dart:40:11)
#4      FeatureFileRunner._runScenario (package:gherkin/src/feature_file_runner.dart:276:16)
<asynchronous suspension>
#5      FeatureFileRunner._runScenarioInZone.<anonymous closure> (package:gherkin/src/feature_file_runner.dart:142:30)
#6      _rootRun (dart:async/zone.dart:1190:13)
#7      _CustomZone.run (dart:async/zone.dart:1093:19)
#8      _runZoned (dart:async/zone.dart:1630:10)
#9      runZonedGuarded (dart:async/zone.dart:1618:12)
#10     runZoned (dart:async/zone.dart:1547:12)
#11     FeatureFileRunner._runScenarioInZone (package:gherkin/src/feature_file_runner.dart:140:5)
#12     FeatureFileRunner._runFeature (package:gherkin/src/feature_file_runner.dart:74:21)
<asynchronous suspension>
#13     FeatureFileRunner.run (package:gherkin/src/feature_file_runner.dart:41:38)
#14     GherkinRunner.execute (package:gherkin/src/test_runner.dart:86:45)
<asynchronous suspension>
#15     main (file:///home/aka/try-flutter/flutter_bdd/test_driver/app_test.dart:32:26)
#16     _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:301:19)
#17     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)

VMServiceFlutterDriver: Isolate found with number: 1298931021565975
VMServiceFlutterDriver: Isolate is not paused. Assuming application is ready.
VMServiceFlutterDriver: Connected to Flutter application.
running hook before scenario 'Check App Title When Switch Page'
Running scenario: Check App Title When Switch Page # ./test_driver/features/hello_world.feature:7
Instance of 'VMServiceFlutterDriver'
   √ Given I go to second page # ./test_driver/features/hello_world.feature:8 took 611ms
Instance of 'VMServiceFlutterDriver'
   √ Then I expect second page title to be "Jersey Second Tab" # ./test_driver/features/hello_world.feature:9 took 201ms
Instance of 'VMServiceFlutterDriver'
   √ When I go to landing page # ./test_driver/features/hello_world.feature:10 took 453ms
Instance of 'VMServiceFlutterDriver'
   √ Then I expect landing page title to be "Jeresy Cool!" # ./test_driver/features/hello_world.feature:11 took 88ms
PASSED: Scenario Check App Title When Switch Page # ./test_driver/features/hello_world.feature:7
Restarting Flutter app under test
running hook after scenario 'Check App Title When Switch Page'
VMServiceFlutterDriver: Connecting to Flutter application at http://127.0.0.1:38029/5FACdXdbDug=/
Error waiting for no transient callbacks from Flutter driver:

`Failed assertion: boolean expression must not be null`

#0      VMServiceFlutterDriver.sendCommand (package:flutter_driver/src/driver/vmservice_driver.dart:351:29)
<asynchronous suspension>
#1      FlutterDriver.waitUntilNoTransientCallbacks (package:flutter_driver/src/driver/driver.dart:230:11)
#2      FlutterWorld._closeDriver (package:flutter_gherkin/src/flutter/flutter_world.dart:49:14)
#3      FlutterWorld.dispose (package:flutter_gherkin/src/flutter/flutter_world.dart:40:11)
#4      FeatureFileRunner._runScenario (package:gherkin/src/feature_file_runner.dart:276:16)
<asynchronous suspension>
#5      FeatureFileRunner._runScenarioInZone.<anonymous closure> (package:gherkin/src/feature_file_runner.dart:142:30)
#6      _rootRun (dart:async/zone.dart:1190:13)
#7      _CustomZone.run (dart:async/zone.dart:1093:19)
#8      _runZoned (dart:async/zone.dart:1630:10)
#9      runZonedGuarded (dart:async/zone.dart:1618:12)
#10     runZoned (dart:async/zone.dart:1547:12)
#11     FeatureFileRunner._runScenarioInZone (package:gherkin/src/feature_file_runner.dart:140:5)
#12     FeatureFileRunner._runFeature (package:gherkin/src/feature_file_runner.dart:74:21)
<asynchronous suspension>
#13     FeatureFileRunner.run (package:gherkin/src/feature_file_runner.dart:41:38)
#14     GherkinRunner.execute (package:gherkin/src/test_runner.dart:86:45)
<asynchronous suspension>
#15     main (file:///home/aka/try-flutter/flutter_bdd/test_driver/app_test.dart:32:26)
#16     _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:301:19)
#17     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)

VMServiceFlutterDriver: Isolate found with number: 248221512356987
VMServiceFlutterDriver: Isolate is not paused. Assuming application is ready.
VMServiceFlutterDriver: Connected to Flutter application.
running hook before scenario 'Check Counter Number'
Running scenario: Check Counter Number # ./test_driver/features/counter.feature:3
   √ Given I expect the "counterTextField" to be "0" # ./test_driver/features/counter.feature:4 took 234ms
Instance of 'VMServiceFlutterDriver'
   √ When I tap the "addBtn" button 20 times # ./test_driver/features/counter.feature:5 took 5140ms
   √ Then I expect the "counterTextField" to be "20" # ./test_driver/features/counter.feature:6 took 62ms
PASSED: Scenario Check Counter Number # ./test_driver/features/counter.feature:3
Restarting Flutter app under test
running hook after scenario 'Check Counter Number'
3 scenarios (3 passed)
9 steps (9 passed)
0:00:21.211000
Terminating Flutter app under test
Error waiting for no transient callbacks from Flutter driver:

`Failed assertion: boolean expression must not be null`

#0      VMServiceFlutterDriver.sendCommand (package:flutter_driver/src/driver/vmservice_driver.dart:351:29)
<asynchronous suspension>
#1      FlutterDriver.waitUntilNoTransientCallbacks (package:flutter_driver/src/driver/driver.dart:230:11)
#2      FlutterWorld._closeDriver (package:flutter_gherkin/src/flutter/flutter_world.dart:49:14)
#3      FlutterWorld.dispose (package:flutter_gherkin/src/flutter/flutter_world.dart:40:11)
#4      FeatureFileRunner._runScenario (package:gherkin/src/feature_file_runner.dart:276:16)
<asynchronous suspension>
#5      FeatureFileRunner._runScenarioInZone.<anonymous closure> (package:gherkin/src/feature_file_runner.dart:142:30)
#6      _rootRun (dart:async/zone.dart:1190:13)
#7      _CustomZone.run (dart:async/zone.dart:1093:19)
#8      _runZoned (dart:async/zone.dart:1630:10)
#9      runZonedGuarded (dart:async/zone.dart:1618:12)
#10     runZoned (dart:async/zone.dart:1547:12)
#11     FeatureFileRunner._runScenarioInZone (package:gherkin/src/feature_file_runner.dart:140:5)
#12     FeatureFileRunner._runFeature (package:gherkin/src/feature_file_runner.dart:74:21)
<asynchronous suspension>
#13     FeatureFileRunner.run (package:gherkin/src/feature_file_runner.dart:41:38)
#14     GherkinRunner.execute (package:gherkin/src/test_runner.dart:86:45)
<asynchronous suspension>
#15     main (file:///home/aka/try-flutter/flutter_bdd/test_driver/app_test.dart:32:26)
#16     _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:301:19)
#17     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)

after run hook
Stopping application instance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions